Skip to content

Commit bf548d9

Browse files
javier-godoypaodb
authored andcommitted
refactor: remove redundant condition
1 parent 68ce82e commit bf548d9

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/main/java/com/flowingcode/vaadin/jsonmigration/ClassInstrumentationUtil.java

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -199,19 +199,10 @@ private List<Method> getInstrumentableMethods(Class<?> parent) {
199199

200200
if (hasLegacyVaadin()) {
201201
return isLegacyCallable;
202+
} else {
203+
return (isCallable && hasJsonValueReturn) || isLegacyCallable;
202204
}
203205

204-
if (isCallable || isLegacyCallable) {
205-
206-
if (isCallable && hasJsonValueReturn) {
207-
return true;
208-
} else if (isLegacyCallable) {
209-
return true;
210-
}
211-
}
212-
213-
return false;
214-
215206
}).collect(Collectors.toList());
216207
}
217208

0 commit comments

Comments
 (0)