mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-02 18:33:54 +00:00
Replaced hard not empty test (string != "") with a method call of
string.isEmpty
This commit is contained in:
1 parent
311576db6e
commit
f867a208b2
1 file changed
+1
-1
+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;
|
||||
|
||||
Reference in new issue
Block a user