Replaced hard not empty test (string != "") with a method call of

string.isEmpty
This commit is contained in:
Lennart Hensler committed 2013-01-25 10:33:15 +01:00
1 parent 311576db6e
commit f867a208b2
1 file changed
+1 -1
@@ -70,7 +70,7 @@ public class RaceColumnInLeaderboardDialog extends DataEntryDialog<RaceColumnInL
String errorMessage;
String racename = valueToValidate.getName();
Boolean isMedalRace = valueToValidate.isMedalRace();
boolean isNameNotEmpty = racename != null & racename != "";
boolean isNameNotEmpty = racename != null & !racename.isEmpty();
boolean medalRaceNotNull = isMedalRace != null;
boolean unique = true;