Fix issues pointed out by the FindBugs plugin

This commit is contained in:
TfT_02
2014-01-19 11:49:30 +01:00
parent 79155887b0
commit a1c1271d21
8 changed files with 35 additions and 26 deletions

View File

@ -69,7 +69,8 @@ public class AlchemyManager extends SkillManager {
}
public String getIngredientList() {
String list = "";
StringBuilder list = new StringBuilder();
for (ItemStack ingredient : getIngredients()) {
String string = StringUtils.getPrettyItemString(ingredient.getType()) + (ingredient.getDurability() != 0 ? ":" + ingredient.getDurability() : "");
if (string.equals("Long Grass:2")) {
@ -79,7 +80,7 @@ public class AlchemyManager extends SkillManager {
string = "Pufferfish";
}
list += ", " + string;
list.append(", " + string);
}
return list.substring(2);
}