Skip to content

Commit 272f3d3

Browse files
committed
remove redundant ‘if’ statement
1 parent 37caaea commit 272f3d3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/org/apache/ibatis/mapping/ResultMapping.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,7 @@ public boolean equals(Object o) {
262262

263263
ResultMapping that = (ResultMapping) o;
264264

265-
if (property == null || !property.equals(that.property)) {
266-
return false;
267-
}
268-
269-
return true;
265+
return property != null && property.equals(that.property);
270266
}
271267

272268
@Override

0 commit comments

Comments
 (0)