aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Brait <andrebrait@gmail.com>2020-07-13 19:01:21 +0200
committerRoel Spilker <r.spilker@gmail.com>2020-09-24 22:25:15 +0200
commit2aea0cb3d2bdc1d52a90dc52e44029e9b213f1be (patch)
tree2fa4fad3534832ae7e3c62560c523b6f9be8069a
parent03d1119e08956f8940edb6fe600af16fb9f424a0 (diff)
downloadlombok-2aea0cb3d2bdc1d52a90dc52e44029e9b213f1be.tar.gz
lombok-2aea0cb3d2bdc1d52a90dc52e44029e9b213f1be.tar.bz2
lombok-2aea0cb3d2bdc1d52a90dc52e44029e9b213f1be.zip
Fix delombok tests
-rw-r--r--test/transform/resource/after-delombok/EqualsAndHashCodeCache.java2
-rw-r--r--test/transform/resource/messages-delombok/EqualsAndHashCodeCache.java.messages2
2 files changed, 3 insertions, 1 deletions
diff --git a/test/transform/resource/after-delombok/EqualsAndHashCodeCache.java b/test/transform/resource/after-delombok/EqualsAndHashCodeCache.java
index 8fecbdbe..a028cca7 100644
--- a/test/transform/resource/after-delombok/EqualsAndHashCodeCache.java
+++ b/test/transform/resource/after-delombok/EqualsAndHashCodeCache.java
@@ -126,7 +126,7 @@ class EqualsAndHashCode4 extends EqualsAndHashCode {
return result;
}
}
-class EqualsAndHashCode5 extends EqualsAndHashCode {
+final class EqualsAndHashCode5 extends EqualsAndHashCode {
@java.lang.SuppressWarnings("all")
private transient int $hashCodeCache = 0;
@java.lang.Override
diff --git a/test/transform/resource/messages-delombok/EqualsAndHashCodeCache.java.messages b/test/transform/resource/messages-delombok/EqualsAndHashCodeCache.java.messages
new file mode 100644
index 00000000..24d202bd
--- /dev/null
+++ b/test/transform/resource/messages-delombok/EqualsAndHashCodeCache.java.messages
@@ -0,0 +1,2 @@
+1 Not caching the result of hashCode: Annotated type is not final.
+23 Not caching the result of hashCode: Annotated type is not final. \ No newline at end of file