File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111import java .util .LinkedHashMap ;
1212import java .util .List ;
1313import java .util .Map ;
14+ import java .util .Objects ;
1415import java .util .function .Consumer ;
1516
1617import static graphql .Assert .assertNotNull ;
@@ -77,7 +78,7 @@ public boolean isEqualTo(Node o) {
7778
7879 FloatValue that = (FloatValue ) o ;
7980
80- return !( value != null ? ! value .equals (that . value ) : that .value != null );
81+ return Objects .equals (value , that .value );
8182
8283 }
8384
Original file line number Diff line number Diff line change 1111import java .util .LinkedHashMap ;
1212import java .util .List ;
1313import java .util .Map ;
14+ import java .util .Objects ;
1415import java .util .function .Consumer ;
1516
1617import static graphql .Assert .assertNotNull ;
@@ -70,8 +71,7 @@ public boolean isEqualTo(Node o) {
7071
7172 IntValue that = (IntValue ) o ;
7273
73- return !(value != null ? !value .equals (that .value ) : that .value != null );
74-
74+ return Objects .equals (value , that .value );
7575 }
7676
7777 @ Override
Original file line number Diff line number Diff line change 1111import java .util .LinkedHashMap ;
1212import java .util .List ;
1313import java .util .Map ;
14+ import java .util .Objects ;
1415import java .util .function .Consumer ;
1516
1617import static graphql .Assert .assertNotNull ;
@@ -81,7 +82,7 @@ public boolean isEqualTo(Node o) {
8182
8283 ObjectField that = (ObjectField ) o ;
8384
84- return !( name != null ? ! name .equals (that . name ) : that .name != null );
85+ return Objects .equals (name , that .name );
8586
8687 }
8788
Original file line number Diff line number Diff line change 1010import java .util .LinkedHashMap ;
1111import java .util .List ;
1212import java .util .Map ;
13+ import java .util .Objects ;
1314import java .util .function .Consumer ;
1415
1516import static graphql .Assert .assertNotNull ;
@@ -76,7 +77,7 @@ public boolean isEqualTo(Node o) {
7677
7778 StringValue that = (StringValue ) o ;
7879
79- return !( value != null ? ! value .equals (that . value ) : that .value != null );
80+ return Objects .equals (value , that .value );
8081
8182 }
8283
Original file line number Diff line number Diff line change 3030import java .util .LinkedHashSet ;
3131import java .util .List ;
3232import java .util .Map ;
33+ import java .util .Objects ;
3334import java .util .Set ;
3435
3536import static graphql .collect .ImmutableKit .addToList ;
@@ -374,12 +375,12 @@ public boolean equals(Object o) {
374375
375376 FieldAndType that = (FieldAndType ) o ;
376377
377- return field != null ? field .equals (that . field ) : that .field == null ;
378+ return Objects .equals (field , that .field ) ;
378379 }
379380
380381 @ Override
381382 public int hashCode () {
382- return field != null ? field .hashCode () : 0 ;
383+ return Objects .hashCode (field ) ;
383384 }
384385 }
385386
You can’t perform that action at this time.
0 commit comments