quick fix : 'StringBuilder' can be replaced with 'String'

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent 2d13e6185e
commit a7bc4185c7
5 files changed
+7 -30

No files matched your search

@@ -183,13 +183,7 @@ public class Arrow extends ToolCore {
else color = "\u00a76";
}
String energy = new StringBuilder()
.append(color)
.append(tags.getInteger("Energy"))
.append("/")
.append(getMaxEnergyStored(stack))
.append(" RF")
.toString();
String energy = color + tags.getInteger("Energy") + "/" + getMaxEnergyStored(stack) + " RF";
list.add(energy);
}
if (tags.hasKey("InfiTool")) {