Code review Part 5.
This commit is contained in:
@@ -130,7 +130,7 @@ public class GameServer extends Thread
|
||||
if (!Config.SERVER_HOST_NAME.equals("*"))
|
||||
{
|
||||
final InetAddress adr = InetAddress.getByName(Config.SERVER_HOST_NAME);
|
||||
String ip = adr.getHostAddress();
|
||||
final String ip = adr.getHostAddress();
|
||||
_serverSocket = new ServerSocket(Config.SERVER_PORT, 50, adr);
|
||||
_log.config("GameServer listening on IP:" + ip + " Port " + Config.SERVER_PORT);
|
||||
}
|
||||
|
@@ -707,7 +707,7 @@ public abstract class Creature extends WorldObject
|
||||
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this._title = title;
|
||||
_title = title;
|
||||
}
|
||||
|
||||
public int getRunSpeed()
|
||||
|
@@ -266,7 +266,7 @@ public class NpcInstance extends Creature
|
||||
{
|
||||
try
|
||||
{
|
||||
FileInputStream fis = new FileInputStream(file);
|
||||
final FileInputStream fis = new FileInputStream(file);
|
||||
final byte[] raw = new byte[fis.available()];
|
||||
fis.read(raw);
|
||||
final String content = new String(raw, StandardCharsets.UTF_8);
|
||||
|
@@ -46,7 +46,7 @@ public class TradeStart extends ServerBasePacket
|
||||
}
|
||||
_tradelist.add(item);
|
||||
}
|
||||
int count = _tradelist.size();
|
||||
final int count = _tradelist.size();
|
||||
writeH(count);
|
||||
for (int i = 0; i < count; ++i)
|
||||
{
|
||||
|
@@ -49,7 +49,7 @@ public class WareHouseDepositList extends ServerBasePacket
|
||||
}
|
||||
itemlist.add(item);
|
||||
}
|
||||
int count = itemlist.size();
|
||||
final int count = itemlist.size();
|
||||
writeH(count);
|
||||
for (i = 0; i < count; ++i)
|
||||
{
|
||||
|
Reference in New Issue
Block a user