prefer isEmpty over length() == 0
This commit is contained in:
@@ -220,7 +220,7 @@ public class GuiPriority extends AEBaseGui
|
||||
this.priority.setText( out );
|
||||
}
|
||||
|
||||
if( out.length() == 0 )
|
||||
if( out.isEmpty() )
|
||||
{
|
||||
out = "0";
|
||||
}
|
||||
@@ -266,7 +266,7 @@ public class GuiPriority extends AEBaseGui
|
||||
this.priority.setText( out );
|
||||
}
|
||||
|
||||
if( out.length() == 0 )
|
||||
if( out.isEmpty() )
|
||||
{
|
||||
out = "0";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user