Skip to content

Commit e590edc

Browse files
committed
#79: fixed sonar issue
1 parent 471bc1e commit e590edc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/de/doubleslash/keeptime/view/ManageWorkController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import javafx.application.Platform;
3535
import javafx.beans.binding.Bindings;
3636
import javafx.beans.binding.BooleanBinding;
37-
import javafx.beans.binding.BooleanExpression;
3837
import javafx.beans.property.BooleanProperty;
3938
import javafx.beans.property.SimpleBooleanProperty;
4039
import javafx.beans.property.StringProperty;
@@ -136,7 +135,7 @@ private void setUpTimeRestriction() {
136135
this.isValidProperty.bind(isValidBinding);
137136

138137
errorLabel.textProperty().bind(Bindings.createStringBinding(() -> {
139-
if (isValidProperty.getValue()) {
138+
if (Boolean.TRUE.equals(isValidProperty.get())) {
140139
return "";
141140
} else {
142141
return "startDate has to be before endDate";

0 commit comments

Comments
 (0)