Merge pull request #183 from thatsIch/Equals
Replaces String == comparison with .equals()
This commit is contained in:
commit
1404a2fe97
4 changed files with 4 additions and 4 deletions
|
@ -39,7 +39,7 @@ public class FMP implements IIntegrationModule, IPartFactory, IPartConverter, IF
|
|||
{
|
||||
for (PartRegistry pr : PartRegistry.values())
|
||||
{
|
||||
if ( pr.getName() == name )
|
||||
if ( pr.getName().equals( name ) )
|
||||
return pr.construct( 0 );
|
||||
}
|
||||
|
||||
|
|
|
@ -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() );
|
||||
|
|
|
@ -447,7 +447,7 @@ public class Platform
|
|||
return ((NBTTagLong) A).func_150291_c() == ((NBTTagLong) B).func_150291_c();
|
||||
|
||||
case 8: // else if ( A instanceof NBTTagString )
|
||||
return ((NBTTagString) A).func_150285_a_() == ((NBTTagString) B).func_150285_a_()
|
||||
return ((NBTTagString) A).func_150285_a_().equals( ((NBTTagString) B).func_150285_a_() )
|
||||
|| ((NBTTagString) A).func_150285_a_().equals( ((NBTTagString) B).func_150285_a_() );
|
||||
|
||||
case 6: // else if ( A instanceof NBTTagDouble )
|
||||
|
|
Loading…
Reference in a new issue