Various unnecessary code changes.
This commit is contained in:
@@ -39,8 +39,8 @@ import com.l2jmobius.Config;
|
||||
public class frmAbout
|
||||
{
|
||||
private JFrame frmAbout;
|
||||
static final String URL = "www.l2jmobius.com";
|
||||
URI uri;
|
||||
private static final String URL = "www.l2jmobius.com";
|
||||
final URI uri;
|
||||
|
||||
public frmAbout()
|
||||
{
|
||||
@@ -122,7 +122,7 @@ public class frmAbout
|
||||
frmAbout.setLocationRelativeTo(null);
|
||||
}
|
||||
|
||||
public static URI createURI(String str)
|
||||
private static URI createURI(String str)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@@ -13,7 +13,6 @@ package com.l2jmobius.gameserver.util;
|
||||
|
||||
import static java.util.concurrent.TimeUnit.DAYS;
|
||||
import static java.util.concurrent.TimeUnit.MILLISECONDS;
|
||||
import static java.util.concurrent.TimeUnit.NANOSECONDS;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Locale;
|
||||
@@ -32,16 +31,6 @@ public class TimeAmountInterpreter
|
||||
// utility class
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls {@link #consolidate(long, TimeUnit)} with {@link TimeUnit#NANOSECONDS}.
|
||||
* @param timeAmountInNanos amount of time in nanoseconds
|
||||
* @return an user-friendly description of the given time amount
|
||||
*/
|
||||
public static String consolidateNanos(long timeAmountInNanos)
|
||||
{
|
||||
return consolidate(timeAmountInNanos, NANOSECONDS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls {@link #consolidate(long, TimeUnit)} with {@link TimeUnit#MILLISECONDS}.
|
||||
* @param timeAmountInMillis amount of time in milliseconds
|
||||
@@ -58,7 +47,7 @@ public class TimeAmountInterpreter
|
||||
* @param timeUnit unit of the given amount
|
||||
* @return an user-friendly description of the given time amount
|
||||
*/
|
||||
public static String consolidate(long timeAmount, TimeUnit timeUnit)
|
||||
private static String consolidate(long timeAmount, TimeUnit timeUnit)
|
||||
{
|
||||
return consolidate(timeAmount, timeUnit, timeUnit, DAYS, "0 " + timeUnit.name().toLowerCase(Locale.ENGLISH));
|
||||
}
|
||||
@@ -92,7 +81,7 @@ public class TimeAmountInterpreter
|
||||
* @throws RuntimeException if {@code textBuilder} throws an {@link IOException}
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static <T extends Appendable & CharSequence> T appendConsolidated(T textBuilder, long timeAmount, TimeUnit timeUnit, TimeUnit minConsolidationUnit, TimeUnit maxConsolidationUnit, String noTimeUsedIndicator) throws RuntimeException
|
||||
private static <T extends Appendable & CharSequence> T appendConsolidated(T textBuilder, long timeAmount, TimeUnit timeUnit, TimeUnit minConsolidationUnit, TimeUnit maxConsolidationUnit, String noTimeUsedIndicator) throws RuntimeException
|
||||
{
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user