From 2aea0cb3d2bdc1d52a90dc52e44029e9b213f1be Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Mon, 13 Jul 2020 19:01:21 +0200 Subject: Fix delombok tests --- test/transform/resource/after-delombok/EqualsAndHashCodeCache.java | 2 +- .../resource/messages-delombok/EqualsAndHashCodeCache.java.messages | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 test/transform/resource/messages-delombok/EqualsAndHashCodeCache.java.messages 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 -- cgit