Remove warning for final classes

This commit is contained in:
Andre Brait authored and Roel Spilker committed 2020-09-24 22:25:15 +02:00
1 parent 8d004c0638
commit ee6c0ca7f2
4 files changed
-12

No files matched your search

@@ -237,10 +237,6 @@ public class HandleEqualsAndHashCode extends EclipseAnnotationHandler<EqualsAndH
cacheHashCode = false;
} else {
createHashCodeCacheField(typeNode, errorNode.get());
if (!isFinal) {
String msg = "Caching the result of hashCode for non-final type.";
errorNode.addWarning(msg);
}
}
}
@@ -211,10 +211,6 @@ public class HandleEqualsAndHashCode extends JavacAnnotationHandler<EqualsAndHas
cacheHashCode = false;
} else {
createHashCodeCacheField(typeNode, source.get());
if (!isFinal) {
String msg = "Caching the result of hashCode for non-final type.";
source.addWarning(msg);
}
}
}
@@ -1,2 +0,0 @@
1 Caching the result of hashCode for non-final type.
23 Caching the result of hashCode for non-final type.
@@ -1,2 +0,0 @@
1 Caching the result of hashCode for non-final type.
23 Caching the result of hashCode for non-final type.