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

@@ -104,8 +104,9 @@ public abstract class Window extends TopLevelWidget implements INetwork.RecieveG
}
public String showInfoButton() {
if (Machine.getInterface(IMachineInformation.class, this.getInventory()) != null) {
return Machine.getInterface(IMachineInformation.class, this.getInventory()).getInformation();
IMachineInformation machineInformation = Machine.getInterface(IMachineInformation.class, this.getInventory());
if (machineInformation != null) {
return machineInformation.getInformation();
}
return null;
}