Removed boxing for String conversions.

This commit is contained in:
MobiusDev
2018-09-08 23:55:08 +00:00
parent bb7e3b8e1b
commit b6e4ce2ebf
116 changed files with 252 additions and 252 deletions

View File

@ -683,7 +683,7 @@ public class L2Npc extends L2Character
if (val == 0)
{
pom = "" + npcId;
pom = Integer.toString(npcId);
}
else
{

View File

@ -154,7 +154,7 @@ public class FriendlyNpcInstance extends L2Attackable
String pom = "";
if (val == 0)
{
pom = "" + npcId;
pom = Integer.toString(npcId);
}
else
{

View File

@ -42,7 +42,7 @@ public final class L2FishermanInstance extends L2MerchantInstance
if (val == 0)
{
pom = "" + npcId;
pom = Integer.toString(npcId);
}
else
{

View File

@ -106,7 +106,7 @@ public class L2GuardInstance extends L2Attackable
String pom = "";
if (val == 0)
{
pom = "" + npcId;
pom = Integer.toString(npcId);
}
else
{

View File

@ -55,7 +55,7 @@ public class L2MerchantInstance extends L2NpcInstance
String pom;
if (val == 0)
{
pom = "" + npcId;
pom = Integer.toString(npcId);
}
else
{

View File

@ -36,7 +36,7 @@ public class L2PetManagerInstance extends L2MerchantInstance
if (val == 0)
{
pom = "" + npcId;
pom = Integer.toString(npcId);
}
else
{

View File

@ -413,7 +413,7 @@ public class L2RaceManagerInstance extends L2Npc
}
else
{
html.replace(search, "" + val);
html.replace(search, Integer.toString(val));
player.setRace(0, val);
}
}
@ -425,7 +425,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);
@ -436,7 +436,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);
}
}
@ -448,19 +448,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
{

View File

@ -81,7 +81,7 @@ public class L2VillageMasterInstance extends L2NpcInstance
if (val == 0)
{
pom = "" + npcId;
pom = Integer.toString(npcId);
}
else
{

View File

@ -52,7 +52,7 @@ public class L2WarehouseInstance extends L2NpcInstance
if (val == 0)
{
pom = "" + npcId;
pom = Integer.toString(npcId);
}
else
{