Răsfoiți Sursa

BETA: Some changes to visibility and some spelling corrections.

Ahmed 12 ani în urmă
părinte
comite
17e9fdcfae

+ 2 - 2
L2J_Server_BETA/java/com/l2jserver/L2DatabaseFactory.java

@@ -39,7 +39,7 @@ public class L2DatabaseFactory
 	/**
 	 * The Enum ProviderType.
 	 */
-	public static enum ProviderType
+	private static enum ProviderType
 	{
 		MySql,
 		MsSql
@@ -329,7 +329,7 @@ public class L2DatabaseFactory
 	/**
 	 * Close the connection.
 	 * @param con the con the connection
-	 * @deprecated now database connections are closed using try-with-resoruce.
+	 * @deprecated now database connections are closed using try-with-resource.
 	 */
 	@Deprecated
 	public static void close(Connection con)

+ 1 - 1
L2J_Server_BETA/java/com/l2jserver/Server.java

@@ -20,7 +20,7 @@ package com.l2jserver;
 public class Server
 {
 	// constants for the server mode
-	public static final int MODE_NONE = 0;
+	private static final int MODE_NONE = 0;
 	public static final int MODE_GAMESERVER = 1;
 	public static final int MODE_LOGINSERVER = 2;
 	

+ 2 - 2
L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/L2Attackable.java

@@ -1940,7 +1940,7 @@ public class L2Attackable extends L2Npc
 	 * Set the over-hit values like the attacker who did the strike and the amount of damage done by the skill.
 	 *
 	 * @param attacker The L2Character who hit on the L2Attackable using the over-hit enabled skill
-	 * @param damage The ammount of damage done by the over-hit enabled skill on the L2Attackable
+	 * @param damage The amount of damage done by the over-hit enabled skill on the L2Attackable
 	 */
 	public void setOverhitValues(L2Character attacker, double damage)
 	{
@@ -1972,7 +1972,7 @@ public class L2Attackable extends L2Npc
 	}
 	
 	/**
-	 * Return the ammount of damage done on the L2Attackable using an over-hit enabled skill.
+	 * Return the amount of damage done on the L2Attackable using an over-hit enabled skill.
 	 *
 	 * @return double damage
 	 */