Remove redundant casts, unnecessary object creation, and string ==

This commit is contained in:
mezz committed 2016-10-21 00:32:06 -07:00
1 parent 100784b51b
commit a4cd13282a
57 files changed
+180 -156

No files matched your search

@@ -119,7 +119,7 @@ public class ModuleCore implements IInitializable {
if (wood4 == null) {
outputDesigns.println("<td></td>");
} else {
final String texture = ((EnumPattern) wood4.getTopPattern().getPattern()).toString().toLowerCase();
final String texture = wood4.getTopPattern().getPattern().toString().toLowerCase();
final String img2 = "<img alt=\"" + texture + "\" src=\"images/pattern/" + texture + ".png\">";
outputDesigns.println("<td>" + img2 + " " + wood4.getName() + "</td>");
}