File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed
driver/src/main/java/org/neo4j/driver Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public class InternalRecord extends InternalMapAccessorWithDefaultValue implemen
41
41
{
42
42
private final List <String > keys ;
43
43
private final Value [] values ;
44
- private int hashcode = 0 ;
44
+ private int hashCode = 0 ;
45
45
46
46
public InternalRecord ( List <String > keys , Value [] values )
47
47
{
@@ -132,6 +132,7 @@ public String toString()
132
132
return format ( "Record<%s>" , formatPairs ( InternalValue .Format .VALUE_ONLY , asMap ( ofValue () ) ) );
133
133
}
134
134
135
+ @ Override
135
136
public boolean equals ( Object other )
136
137
{
137
138
if ( this == other )
@@ -167,12 +168,13 @@ else if ( other instanceof Record )
167
168
}
168
169
}
169
170
170
- public int hashcode ()
171
+ @ Override
172
+ public int hashCode ()
171
173
{
172
- if ( hashcode == 0 )
174
+ if ( hashCode == 0 )
173
175
{
174
- hashcode = 31 * keys .hashCode () + Arrays .hashCode ( values );
176
+ hashCode = 31 * keys .hashCode () + Arrays .hashCode ( values );
175
177
}
176
- return hashcode ;
178
+ return hashCode ;
177
179
}
178
180
}
Original file line number Diff line number Diff line change @@ -129,11 +129,4 @@ public interface Record extends MapAccessorWithDefaultValue
129
129
*/
130
130
List <Pair <String , Value >> fields ();
131
131
132
- // Force implementation
133
- @ Override
134
- boolean equals ( Object other );
135
-
136
- // Force implementation
137
- @ Override
138
- int hashCode ();
139
132
}
You can’t perform that action at this time.
0 commit comments