diff options
author | Andre Brait <andrebrait@gmail.com> | 2020-09-14 19:59:54 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2020-09-24 22:25:15 +0200 |
commit | ee6c0ca7f2274b24571afdc8586eff9052f5eda1 (patch) | |
tree | dd31672a46b827f47875e104ec9214cb0b8bab21 /src | |
parent | 8d004c0638e4b865c38527a500c493288328eac8 (diff) | |
download | lombok-ee6c0ca7f2274b24571afdc8586eff9052f5eda1.tar.gz lombok-ee6c0ca7f2274b24571afdc8586eff9052f5eda1.tar.bz2 lombok-ee6c0ca7f2274b24571afdc8586eff9052f5eda1.zip |
Remove warning for final classes
Diffstat (limited to 'src')
-rwxr-xr-x | src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java | 4 | ||||
-rw-r--r-- | src/core/lombok/javac/handlers/HandleEqualsAndHashCode.java | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java b/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java index d5fa5618..2f0ce227 100755 --- a/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java +++ b/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java @@ -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); - } } } diff --git a/src/core/lombok/javac/handlers/HandleEqualsAndHashCode.java b/src/core/lombok/javac/handlers/HandleEqualsAndHashCode.java index d90fdada..ea1820f8 100644 --- a/src/core/lombok/javac/handlers/HandleEqualsAndHashCode.java +++ b/src/core/lombok/javac/handlers/HandleEqualsAndHashCode.java @@ -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); - } } } |