prefer isEmpty over length() == 0

This commit is contained in:
thatsIch
2015-09-25 23:18:27 +02:00
parent 7a220e253d
commit 734d50d086
12 changed files with 15 additions and 15 deletions
@@ -201,7 +201,7 @@ public class GuiCraftAmount extends AEBaseGui
this.amountToCraft.setText( out );
}
if( out.length() == 0 )
if( out.isEmpty() )
{
out = "0";
}
@@ -275,7 +275,7 @@ public class GuiCraftAmount extends AEBaseGui
this.amountToCraft.setText( out );
}
if( out.length() == 0 )
if( out.isEmpty() )
{
out = "0";
}