瀏覽代碼

Tidy Up....

Ahmed 17 年之前
父節點
當前提交
96be97a45e

+ 2 - 1
L2_GameServer/java/net/sf/l2j/AuditFilter.java

@@ -23,7 +23,8 @@ import java.util.logging.LogRecord;
  */
 public class AuditFilter implements Filter
 {
-	public boolean isLoggable(LogRecord record) {
+	public boolean isLoggable(LogRecord record)
+	{
 		return record.getLoggerName().equalsIgnoreCase("audit");
 	}
 }

+ 1 - 1
L2_GameServer/java/net/sf/l2j/Base64.java

@@ -675,7 +675,7 @@ public class Base64
                 System.out.println("" + source[srcOffset + 3] + ": "
                     + (DECODABET[source[srcOffset + 3]]));
                 return -1;
-            } //e nd catch
+            } // end catch
         }
     } // end decodeToBytes
 

+ 4 - 2
L2_GameServer/java/net/sf/l2j/ChatFilter.java

@@ -17,9 +17,11 @@ package net.sf.l2j;
 import java.util.logging.Filter;
 import java.util.logging.LogRecord;
 
-public class ChatFilter implements Filter {
+public class ChatFilter implements Filter
+{
 
-	public boolean isLoggable(LogRecord record) {
+	public boolean isLoggable(LogRecord record)
+	{
 		return record.getLoggerName() == "chat";
 	}
 

+ 4 - 2
L2_GameServer/java/net/sf/l2j/ChatLogFormatter.java

@@ -42,8 +42,10 @@ public class ChatLogFormatter extends Formatter
 		output.append(dateFmt.format(new Date(record.getMillis())));
 		output.append(']');
 		output.append(' ');
-		if (params != null) {
-			for (Object p : params) {
+		if (params != null)
+		{
+			for (Object p : params)
+			{
 				output.append(p);
 				output.append(' ');
 			}

+ 4 - 2
L2_GameServer/java/net/sf/l2j/ChatLogHandler.java

@@ -17,9 +17,11 @@ package net.sf.l2j;
 import java.io.IOException;
 import java.util.logging.FileHandler;
 
-public class ChatLogHandler extends FileHandler {
+public class ChatLogHandler extends FileHandler
+{
 
-	public ChatLogHandler() throws IOException, SecurityException {
+	public ChatLogHandler() throws IOException, SecurityException
+	{
 		super();
 	}
 }

+ 8 - 4
L2_GameServer/java/net/sf/l2j/ConsoleLogFormatter.java

@@ -45,18 +45,22 @@ public class ConsoleLogFormatter extends Formatter
 //		output.append(_);
 		output.append(record.getMessage());
 		output.append(CRLF);
-		if (record.getThrown() != null) {
-		    try {
+		if (record.getThrown() != null)
+		{
+		    try
+		    {
 		        StringWriter sw = new StringWriter();
 		        PrintWriter pw = new PrintWriter(sw);
 		        record.getThrown().printStackTrace(pw);
 		        pw.close();
 				output.append(sw.toString());
 				output.append(CRLF);
-		    } catch (Exception ex) {
+		    }
+		    catch (Exception ex)
+		    {
+		    	
 		    }
 		}
-
 		return output.toString();
 	}
 }

+ 4 - 2
L2_GameServer/java/net/sf/l2j/ErrorFilter.java

@@ -17,9 +17,11 @@ package net.sf.l2j;
 import java.util.logging.Filter;
 import java.util.logging.LogRecord;
 
-public class ErrorFilter implements Filter {
+public class ErrorFilter implements Filter
+{
 
-	public boolean isLoggable(LogRecord record) {
+	public boolean isLoggable(LogRecord record)
+	{
 		return record.getThrown() != null;
 	}
 

+ 4 - 2
L2_GameServer/java/net/sf/l2j/ErrorLogHandler.java

@@ -17,9 +17,11 @@ package net.sf.l2j;
 import java.io.IOException;
 import java.util.logging.FileHandler;
 
-public class ErrorLogHandler extends FileHandler {
+public class ErrorLogHandler extends FileHandler
+{
 
-	public ErrorLogHandler() throws IOException, SecurityException {
+	public ErrorLogHandler() throws IOException, SecurityException
+	{
 		super();
 	}
 }

+ 4 - 2
L2_GameServer/java/net/sf/l2j/GMAuditFilter.java

@@ -17,9 +17,11 @@ package net.sf.l2j;
 import java.util.logging.Filter;
 import java.util.logging.LogRecord;
 
-public class GMAuditFilter implements Filter {
+public class GMAuditFilter implements Filter
+{
 
-	public boolean isLoggable(LogRecord record) {
+	public boolean isLoggable(LogRecord record)
+	{
 		return record.getLoggerName().equalsIgnoreCase("gmaudit");
 	}
 }

+ 4 - 2
L2_GameServer/java/net/sf/l2j/GMAuditFormatter.java

@@ -18,10 +18,12 @@ package net.sf.l2j;
 import java.util.logging.Formatter;
 import java.util.logging.LogRecord;
 
-public class GMAuditFormatter extends Formatter {
+public class GMAuditFormatter extends Formatter
+{
 
 	@Override
-	public String format(LogRecord record) {
+	public String format(LogRecord record)
+	{
 		return record.getMessage()+"\r\n";
 	}
 

+ 4 - 2
L2_GameServer/java/net/sf/l2j/GMAuditLogHandler.java

@@ -17,9 +17,11 @@ package net.sf.l2j;
 import java.io.IOException;
 import java.util.logging.FileHandler;
 
-public class GMAuditLogHandler extends FileHandler {
+public class GMAuditLogHandler extends FileHandler
+{
 
-	public GMAuditLogHandler() throws IOException, SecurityException {
+	public GMAuditLogHandler() throws IOException, SecurityException
+	{
 		super();
 	}
 }

+ 1 - 1
L2_GameServer/java/net/sf/l2j/ItemFilter.java

@@ -28,7 +28,7 @@ public class ItemFilter implements Filter
 //	private String _excludeProcess;
 //	private String _excludeItemType;
 
-//	This is example how to exclude consuming of shots and arrows from logging
+	//	This is an example how to exclude consuming of shots and arrows from logging
 	private String _excludeProcess = "Consume";
 	private String _excludeItemType = "Arrow, Shot";
 

+ 4 - 4
L2_GameServer/java/net/sf/l2j/L2DatabaseFactory.java

@@ -46,7 +46,7 @@ public class L2DatabaseFactory
 			if (Config.DATABASE_MAX_CONNECTIONS < 2)
             {
                 Config.DATABASE_MAX_CONNECTIONS = 2;
-                _log.warning("at least " + Config.DATABASE_MAX_CONNECTIONS + " db connections are required.");
+                _log.warning("A minimum of " + Config.DATABASE_MAX_CONNECTIONS + " db connections are required.");
             }
 
 			_source = new ComboPooledDataSource();
@@ -58,7 +58,7 @@ public class L2DatabaseFactory
 
 
 			_source.setAcquireRetryAttempts(0); // try to obtain connections indefinitely (0 = never quit)
-			_source.setAcquireRetryDelay(500);  // 500 miliseconds wait before try to acquire connection again
+			_source.setAcquireRetryDelay(500);  // 500 milliseconds wait before try to acquire connection again
 			_source.setCheckoutTimeout(0);      // 0 = wait indefinitely for new connection
 			// if pool is exhausted
 			_source.setAcquireIncrement(5);     // if pool is exhausted, get 5 more connections at a time
@@ -105,7 +105,7 @@ public class L2DatabaseFactory
 		catch (SQLException x)
 		{
 			if (Config.DEBUG) _log.fine("Database Connection FAILED");
-			// rethrow the exception
+			// re-throw the exception
 			throw x;
 		}
 		catch (Exception e)
@@ -199,4 +199,4 @@ public class L2DatabaseFactory
 	}
 
     public final ProviderType getProviderType() { return _providerType; }
-}
+}

+ 0 - 1
L2_GameServer/java/net/sf/l2j/Server.java

@@ -26,5 +26,4 @@ public class Server
 	public static final int MODE_LOGINSERVER = 2;
 
 	public static int serverMode = MODE_NONE;
-
 }

+ 0 - 1
L2_GameServer/java/net/sf/l2j/gameserver/model/ChanceSkillList.java

@@ -15,7 +15,6 @@
 package net.sf.l2j.gameserver.model;
 
 import javolution.util.FastMap;
-
 import net.sf.l2j.gameserver.handler.ISkillHandler;
 import net.sf.l2j.gameserver.handler.SkillHandler;
 import net.sf.l2j.gameserver.serverpackets.MagicSkillLaunched;