File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
vertx-core/src/main/java/io/vertx/core/json Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1717import io .vertx .core .shareddata .Shareable ;
1818
1919import java .time .Instant ;
20- import java .util .*;
20+ import java .util .ArrayList ;
21+ import java .util .Iterator ;
22+ import java .util .List ;
23+ import java .util .Map ;
2124import java .util .function .Function ;
2225import java .util .stream .Stream ;
2326
24- import static io .vertx .core .json .impl .JsonUtil .compare ;
2527import static io .vertx .core .json .impl .JsonUtil .*;
2628import static java .time .format .DateTimeFormatter .ISO_INSTANT ;
2729
@@ -694,9 +696,9 @@ public boolean equals(Object o) {
694696
695697 @ Override
696698 public int hashCode () {
697- int h = 0 ;
699+ int h = 1 ;
698700 for (Object value : this ) {
699- h += JsonUtil .hashCode (value );
701+ h = 31 * h + JsonUtil .hashCode (value );
700702 }
701703 return h ;
702704 }
You can’t perform that action at this time.
0 commit comments