File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/test/java/org/apache/ibatis/submitted/foreach_map Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
package org .apache .ibatis .submitted .foreach_map ;
17
17
18
+ import java .util .Objects ;
19
+
18
20
public class NestedBeanMapEntry {
19
21
public NestedBeanMapEntry () {
20
22
}
@@ -67,13 +69,13 @@ public boolean equals(Object o) {
67
69
68
70
NestedBeanMapEntry map3Entry = (NestedBeanMapEntry ) o ;
69
71
70
- if (keya != null ? ! keya .equals (map3Entry . keya ) : map3Entry .keya != null )
72
+ if (! Objects .equals (keya , map3Entry .keya ) )
71
73
return false ;
72
- if (keyb != null ? ! keyb .equals (map3Entry . keyb ) : map3Entry .keyb != null )
74
+ if (! Objects .equals (keyb , map3Entry .keyb ) )
73
75
return false ;
74
- if (valuea != null ? ! valuea .equals (map3Entry . valuea ) : map3Entry .valuea != null )
76
+ if (! Objects .equals (valuea , map3Entry .valuea ) )
75
77
return false ;
76
- if (valueb != null ? ! valueb .equals (map3Entry . valueb ) : map3Entry .valueb != null )
78
+ if (! Objects .equals (valueb , map3Entry .valueb ) )
77
79
return false ;
78
80
79
81
return true ;
You can’t perform that action at this time.
0 commit comments