aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndre Brait <andrebrait@gmail.com>2020-09-14 19:59:54 +0200
committerRoel Spilker <r.spilker@gmail.com>2020-09-24 22:25:15 +0200
commitee6c0ca7f2274b24571afdc8586eff9052f5eda1 (patch)
treedd31672a46b827f47875e104ec9214cb0b8bab21 /src
parent8d004c0638e4b865c38527a500c493288328eac8 (diff)
downloadlombok-ee6c0ca7f2274b24571afdc8586eff9052f5eda1.tar.gz
lombok-ee6c0ca7f2274b24571afdc8586eff9052f5eda1.tar.bz2
lombok-ee6c0ca7f2274b24571afdc8586eff9052f5eda1.zip
Remove warning for final classes
Diffstat (limited to 'src')
-rwxr-xr-xsrc/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java4
-rw-r--r--src/core/lombok/javac/handlers/HandleEqualsAndHashCode.java4
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);
- }
}
}