mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 22:16:11 +00:00
Remove warning for final classes
This commit is contained in:
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.
|
||||
Reference in new issue
Block a user