aboutsummaryrefslogtreecommitdiffstats
path: root/compatibility-server
diff options
context:
space:
mode:
Diffstat (limited to 'compatibility-server')
-rw-r--r--compatibility-server/src/main/java/com/vaadin/v7/data/util/MethodProperty.java10
-rw-r--r--compatibility-server/src/main/java/com/vaadin/v7/ui/NativeSelect.java4
2 files changed, 7 insertions, 7 deletions
diff --git a/compatibility-server/src/main/java/com/vaadin/v7/data/util/MethodProperty.java b/compatibility-server/src/main/java/com/vaadin/v7/data/util/MethodProperty.java
index 9d225c831a..0e564087bf 100644
--- a/compatibility-server/src/main/java/com/vaadin/v7/data/util/MethodProperty.java
+++ b/compatibility-server/src/main/java/com/vaadin/v7/data/util/MethodProperty.java
@@ -386,8 +386,8 @@ public class MethodProperty<T> extends AbstractProperty<T> {
}
if (j == c.length) {
- // all paramteters matched
- if (found == true) {
+ // all parameters matched
+ if (found) {
throw new MethodException(this,
"Could not uniquely identify " + getMethodName
+ "-method");
@@ -397,7 +397,7 @@ public class MethodProperty<T> extends AbstractProperty<T> {
}
}
}
- if (found != true) {
+ if (!found) {
throw new MethodException(this,
"Could not find " + getMethodName + "-method");
}
@@ -440,7 +440,7 @@ public class MethodProperty<T> extends AbstractProperty<T> {
if (j == c.length) {
// all parameters match
- if (found == true) {
+ if (found) {
throw new MethodException(this,
"Could not identify unique " + setMethodName
+ "-method");
@@ -450,7 +450,7 @@ public class MethodProperty<T> extends AbstractProperty<T> {
}
}
}
- if (found != true) {
+ if (!found) {
throw new MethodException(this,
"Could not identify " + setMethodName + "-method");
}
diff --git a/compatibility-server/src/main/java/com/vaadin/v7/ui/NativeSelect.java b/compatibility-server/src/main/java/com/vaadin/v7/ui/NativeSelect.java
index e69f7c620b..4696e6c707 100644
--- a/compatibility-server/src/main/java/com/vaadin/v7/ui/NativeSelect.java
+++ b/compatibility-server/src/main/java/com/vaadin/v7/ui/NativeSelect.java
@@ -119,7 +119,7 @@ public class NativeSelect extends AbstractSelect
@Override
public void setMultiSelect(boolean multiSelect)
throws UnsupportedOperationException {
- if (multiSelect == true) {
+ if (multiSelect) {
throw new UnsupportedOperationException(
"Multiselect not supported");
}
@@ -128,7 +128,7 @@ public class NativeSelect extends AbstractSelect
@Override
public void setNewItemsAllowed(boolean allowNewOptions)
throws UnsupportedOperationException {
- if (allowNewOptions == true) {
+ if (allowNewOptions) {
throw new UnsupportedOperationException(
"newItemsAllowed not supported");
}