diff options
Diffstat (limited to 'client')
4 files changed, 5 insertions, 5 deletions
diff --git a/client/src/main/java/com/vaadin/client/DateTimeService.java b/client/src/main/java/com/vaadin/client/DateTimeService.java index ec7c18e94d..88cc0923e6 100644 --- a/client/src/main/java/com/vaadin/client/DateTimeService.java +++ b/client/src/main/java/com/vaadin/client/DateTimeService.java @@ -177,7 +177,7 @@ public class DateTimeService { public static int getNumberOfDaysInMonth(Date date) { final int month = date.getMonth(); - if (month == 1 && true == isLeapYear(date)) { + if (month == 1 && isLeapYear(date)) { return 29; } return maxDaysInMonth[month]; diff --git a/client/src/main/java/com/vaadin/client/VTooltip.java b/client/src/main/java/com/vaadin/client/VTooltip.java index 7cbd951114..0804e67666 100644 --- a/client/src/main/java/com/vaadin/client/VTooltip.java +++ b/client/src/main/java/com/vaadin/client/VTooltip.java @@ -617,7 +617,7 @@ public class VTooltip extends VOverlay { Element element = Element.as(event.getEventTarget()); // We can ignore move event if it's handled by move or over already - if (currentElement == element && handledByFocus == true) { + if (currentElement == element && handledByFocus) { return; } diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VOr.java b/client/src/main/java/com/vaadin/client/ui/dd/VOr.java index 2856f692dc..43a9db0524 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VOr.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VOr.java @@ -39,7 +39,7 @@ public final class VOr extends VAcceptCriterion implements VAcceptCallback { for (int i = 0; i < childCount; i++) { VAcceptCriterion crit = VAnd.getCriteria(drag, configuration, i); crit.accept(drag, configuration.getChildUIDL(i), this); - if (accepted == true) { + if (accepted) { callback.accepted(drag); return; } diff --git a/client/src/main/java/com/vaadin/client/widgets/Grid.java b/client/src/main/java/com/vaadin/client/widgets/Grid.java index dd9353155e..92765eec89 100755 --- a/client/src/main/java/com/vaadin/client/widgets/Grid.java +++ b/client/src/main/java/com/vaadin/client/widgets/Grid.java @@ -1753,10 +1753,10 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>, * if the editor handler is not set */ public void setEnabled(boolean enabled) { - if (enabled == false && state != State.INACTIVE) { + if (!enabled && state != State.INACTIVE) { throw new IllegalStateException( "Cannot disable: editor is in edit mode"); - } else if (enabled == true && getHandler() == null) { + } else if (enabled && getHandler() == null) { throw new IllegalStateException( "Cannot enable: EditorHandler not set"); } |