This commit is contained in:
Andre Brait authored and Roel Spilker committed 2020-09-24 22:25:15 +02:00
1 parent 4788df3fb3
commit b62ce8fb2f
1 file changed
+1 -1
+1 -1
View File
@@ -148,7 +148,7 @@ public @interface EqualsAndHashCode {
NEVER,
/**
* Cache the result of the first invocation of {@code hashCode} and use it for subsequent invocations.
* This can improve performance in if all fields used for calculating the {@code hashCode} are immutable
* This can improve performance if all fields used for calculating the {@code hashCode} are immutable
* and thus every invocation of {@code hashCode} will always return the same value.
* <strong>Do not use this if there's <em>any</em> chance that different invocations of {@code hashCode}
* might return different values.</strong>