Removed boxing for String conversions.
This commit is contained in:
@@ -831,7 +831,7 @@ public class L2Npc extends L2Character
|
||||
|
||||
if (val == 0)
|
||||
{
|
||||
pom = "" + npcId;
|
||||
pom = Integer.toString(npcId);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -39,7 +39,7 @@ public class L2AdventurerInstance extends L2NpcInstance
|
||||
|
||||
if (val == 0)
|
||||
{
|
||||
pom = "" + npcId;
|
||||
pom = Integer.toString(npcId);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -55,7 +55,7 @@ public final class L2ClassMasterInstance extends L2MerchantInstance
|
||||
|
||||
if (val == 0)
|
||||
{
|
||||
pom = "" + npcId;
|
||||
pom = Integer.toString(npcId);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -186,7 +186,7 @@ public class L2DungeonGatekeeperInstance extends L2Npc
|
||||
String pom = "";
|
||||
if (val == 0)
|
||||
{
|
||||
pom = "" + npcId;
|
||||
pom = Integer.toString(npcId);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -52,7 +52,7 @@ public final class L2FishermanInstance extends L2MerchantInstance
|
||||
|
||||
if (val == 0)
|
||||
{
|
||||
pom = "" + npcId;
|
||||
pom = Integer.toString(npcId);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -101,7 +101,7 @@ public class L2GuardInstance extends L2Attackable
|
||||
String pom = "";
|
||||
if (val == 0)
|
||||
{
|
||||
pom = "" + npcId;
|
||||
pom = Integer.toString(npcId);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -58,7 +58,7 @@ public class L2MerchantInstance extends L2NpcInstance
|
||||
|
||||
if (val == 0)
|
||||
{
|
||||
pom = "" + npcId;
|
||||
pom = Integer.toString(npcId);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -41,7 +41,7 @@ public class L2PetManagerInstance extends L2MerchantInstance
|
||||
|
||||
if (val == 0)
|
||||
{
|
||||
pom = "" + npcId;
|
||||
pom = Integer.toString(npcId);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -370,7 +370,7 @@ public class L2RaceManagerInstance extends L2Npc
|
||||
}
|
||||
else
|
||||
{
|
||||
html.replace(search, "" + val);
|
||||
html.replace(search, Integer.toString(val));
|
||||
player.setRace(0, val);
|
||||
}
|
||||
}
|
||||
@@ -382,7 +382,7 @@ public class L2RaceManagerInstance extends L2Npc
|
||||
}
|
||||
filename = getHtmlPath(npcId, 3);
|
||||
html.setFile(player, filename);
|
||||
html.replace("0place", "" + player.getRace(0));
|
||||
html.replace("0place", Integer.toString(player.getRace(0)));
|
||||
search = "Mob1";
|
||||
replace = MonsterRace.getInstance().getMonsters()[player.getRace(0) - 1].getTemplate().getName();
|
||||
html.replace(search, replace);
|
||||
@@ -393,7 +393,7 @@ public class L2RaceManagerInstance extends L2Npc
|
||||
}
|
||||
else
|
||||
{
|
||||
html.replace(search, "" + _cost[val - 11]);
|
||||
html.replace(search, Integer.toString(_cost[val - 11]));
|
||||
player.setRace(1, val - 10);
|
||||
}
|
||||
}
|
||||
@@ -405,19 +405,19 @@ public class L2RaceManagerInstance extends L2Npc
|
||||
}
|
||||
filename = getHtmlPath(npcId, 4);
|
||||
html.setFile(player, filename);
|
||||
html.replace("0place", "" + player.getRace(0));
|
||||
html.replace("0place", Integer.toString(player.getRace(0)));
|
||||
search = "Mob1";
|
||||
replace = MonsterRace.getInstance().getMonsters()[player.getRace(0) - 1].getTemplate().getName();
|
||||
html.replace(search, replace);
|
||||
search = "0adena";
|
||||
final int price = _cost[player.getRace(1) - 1];
|
||||
html.replace(search, "" + price);
|
||||
html.replace(search, Integer.toString(price));
|
||||
search = "0tax";
|
||||
final int tax = 0;
|
||||
html.replace(search, "" + tax);
|
||||
html.replace(search, Integer.toString(tax));
|
||||
search = "0total";
|
||||
final int total = price + tax;
|
||||
html.replace(search, "" + total);
|
||||
html.replace(search, Integer.toString(total));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -229,7 +229,7 @@ public class L2SchemeBufferInstance extends L2Npc
|
||||
String filename = "";
|
||||
if (val == 0)
|
||||
{
|
||||
filename = "" + npcId;
|
||||
filename = Integer.toString(npcId);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -258,7 +258,7 @@ public class L2SepulcherNpcInstance extends L2Npc
|
||||
String pom = "";
|
||||
if (val == 0)
|
||||
{
|
||||
pom = "" + npcId;
|
||||
pom = Integer.toString(npcId);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -163,7 +163,7 @@ public final class L2TeleporterInstance extends L2Npc
|
||||
String pom = "";
|
||||
if (val == 0)
|
||||
{
|
||||
pom = "" + npcId;
|
||||
pom = Integer.toString(npcId);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -37,7 +37,7 @@ public class L2TrainerInstance extends L2NpcInstance
|
||||
String pom = "";
|
||||
if (val == 0)
|
||||
{
|
||||
pom = "" + npcId;
|
||||
pom = Integer.toString(npcId);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -82,7 +82,7 @@ public class L2VillageMasterInstance extends L2NpcInstance
|
||||
|
||||
if (val == 0)
|
||||
{
|
||||
pom = "" + npcId;
|
||||
pom = Integer.toString(npcId);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -44,7 +44,7 @@ public class L2WarehouseInstance extends L2NpcInstance
|
||||
|
||||
if (val == 0)
|
||||
{
|
||||
pom = "" + npcId;
|
||||
pom = Integer.toString(npcId);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user