Replaces String == comparison with .equals()

This commit is contained in:
thatsIch
2014-09-29 09:28:58 +02:00
parent 72106c877d
commit 1d1ea7a03e
4 changed files with 4 additions and 4 deletions
@@ -75,7 +75,7 @@ public class ToolMemoryCard extends AEBaseItem implements IMemoryCard
{
NBTTagCompound c = Platform.openNbtData( is );
String name = c.getString( "Config" );
return name == null || name == "" ? GuiText.Blank.getUnlocalized() : name;
return name == null || name.equals( "" ) ? GuiText.Blank.getUnlocalized() : name;
}
@Override
@@ -59,7 +59,7 @@ public class ToolWirelessTerminal extends AEBasePoweredItem implements IWireless
{
String encKey = tag.getString( "encryptionKey" );
if ( encKey == null || encKey == "" )
if ( encKey == null || encKey.equals( "" ) )
l.add( GuiText.Unlinked.getLocal() );
else
l.add( GuiText.Linked.getLocal() );