Removed boxing for String conversions.
This commit is contained in:
@@ -193,7 +193,7 @@ public class AdminAnnouncements implements IAdminCommandHandler
|
||||
if (!st.hasMoreTokens())
|
||||
{
|
||||
String content = HtmCache.getInstance().getHtm(activeChar, "data/html/admin/announces-edit.htm");
|
||||
final String announcementId = "" + announce.getId();
|
||||
final String announcementId = Integer.toString(announce.getId());
|
||||
final String announcementType = announce.getType().name();
|
||||
String announcementInital = "0";
|
||||
String announcementDelay = "0";
|
||||
@@ -203,9 +203,9 @@ public class AdminAnnouncements implements IAdminCommandHandler
|
||||
if (announce instanceof AutoAnnouncement)
|
||||
{
|
||||
final AutoAnnouncement autoAnnounce = (AutoAnnouncement) announce;
|
||||
announcementInital = "" + (autoAnnounce.getInitial() / 1000);
|
||||
announcementDelay = "" + (autoAnnounce.getDelay() / 1000);
|
||||
announcementRepeat = "" + autoAnnounce.getRepeat();
|
||||
announcementInital = Long.toString(autoAnnounce.getInitial() / 1000);
|
||||
announcementDelay = Long.toString(autoAnnounce.getDelay() / 1000);
|
||||
announcementRepeat = Integer.toString(autoAnnounce.getRepeat());
|
||||
}
|
||||
content = content.replaceAll("%id%", announcementId);
|
||||
content = content.replaceAll("%type%", announcementType);
|
||||
@@ -419,7 +419,7 @@ public class AdminAnnouncements implements IAdminCommandHandler
|
||||
if (announce != null)
|
||||
{
|
||||
String content = HtmCache.getInstance().getHtm(activeChar, "data/html/admin/announces-show.htm");
|
||||
final String announcementId = "" + announce.getId();
|
||||
final String announcementId = Integer.toString(announce.getId());
|
||||
final String announcementType = announce.getType().name();
|
||||
String announcementInital = "0";
|
||||
String announcementDelay = "0";
|
||||
@@ -429,9 +429,9 @@ public class AdminAnnouncements implements IAdminCommandHandler
|
||||
if (announce instanceof AutoAnnouncement)
|
||||
{
|
||||
final AutoAnnouncement autoAnnounce = (AutoAnnouncement) announce;
|
||||
announcementInital = "" + (autoAnnounce.getInitial() / 1000);
|
||||
announcementDelay = "" + (autoAnnounce.getDelay() / 1000);
|
||||
announcementRepeat = "" + autoAnnounce.getRepeat();
|
||||
announcementInital = Long.toString(autoAnnounce.getInitial() / 1000);
|
||||
announcementDelay = Long.toString(autoAnnounce.getDelay() / 1000);
|
||||
announcementRepeat = Integer.toString(autoAnnounce.getRepeat());
|
||||
}
|
||||
content = content.replaceAll("%id%", announcementId);
|
||||
content = content.replaceAll("%type%", announcementType);
|
||||
|
||||
@@ -56,7 +56,7 @@ public class TerritoryStatus implements IBypassHandler
|
||||
}
|
||||
}
|
||||
html.replace("%castlename%", npc.getCastle().getName());
|
||||
html.replace("%taxpercent%", "" + npc.getCastle().getTaxPercent(TaxType.BUY));
|
||||
html.replace("%taxpercent%", Integer.toString(npc.getCastle().getTaxPercent(TaxType.BUY)));
|
||||
html.replace("%objectId%", String.valueOf(npc.getObjectId()));
|
||||
{
|
||||
if (npc.getCastle().getResidenceId() > 6)
|
||||
|
||||
@@ -47,7 +47,7 @@ public class Time implements IUserCommandHandler
|
||||
}
|
||||
|
||||
final int t = GameTimeController.getInstance().getGameTime();
|
||||
final String h = "" + ((t / 60) % 24);
|
||||
final String h = Integer.toString(((t / 60) % 24));
|
||||
String m;
|
||||
if ((t % 60) < 10)
|
||||
{
|
||||
@@ -55,7 +55,7 @@ public class Time implements IUserCommandHandler
|
||||
}
|
||||
else
|
||||
{
|
||||
m = "" + (t % 60);
|
||||
m = Integer.toString((t % 60));
|
||||
}
|
||||
|
||||
SystemMessage sm;
|
||||
|
||||
Reference in New Issue
Block a user