From b718fbf4975bb8fa2f33e8533cde77ad7899e3df Mon Sep 17 00:00:00 2001 From: Rawi01 Date: Sun, 15 Jan 2023 23:50:41 +0100 Subject: [fixes #3327] Inject fields after generated record fields --- test/transform/resource/after-ecj/LoggerFloggerRecord.java | 4 ++-- test/transform/resource/after-ecj/LoggerSlf4jOnRecord.java | 4 ++-- test/transform/resource/after-ecj/SynchronizedInRecord.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'test/transform/resource/after-ecj') diff --git a/test/transform/resource/after-ecj/LoggerFloggerRecord.java b/test/transform/resource/after-ecj/LoggerFloggerRecord.java index fde69e74..dc64c335 100644 --- a/test/transform/resource/after-ecj/LoggerFloggerRecord.java +++ b/test/transform/resource/after-ecj/LoggerFloggerRecord.java @@ -1,9 +1,9 @@ // version 19: import lombok.extern.flogger.Flogger; class LoggerFloggerRecord { - public @Flogger record Inner(com log) { - private static final com.google.common.flogger.FluentLogger log = com.google.common.flogger.FluentLogger.forEnclosingClass(); + public @Flogger record Inner(String x) { /* Implicit */ private final String x; + private static final com.google.common.flogger.FluentLogger log = com.google.common.flogger.FluentLogger.forEnclosingClass(); () { } public Inner(String x) { diff --git a/test/transform/resource/after-ecj/LoggerSlf4jOnRecord.java b/test/transform/resource/after-ecj/LoggerSlf4jOnRecord.java index 673f83a3..91343ff2 100644 --- a/test/transform/resource/after-ecj/LoggerSlf4jOnRecord.java +++ b/test/transform/resource/after-ecj/LoggerSlf4jOnRecord.java @@ -1,9 +1,9 @@ // version 14: import lombok.extern.slf4j.Slf4j; -public @Slf4j record LoggerSlf4jOnRecord(org log, String a) { - private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LoggerSlf4jOnRecord.class); +public @Slf4j record LoggerSlf4jOnRecord(String a, String b) { /* Implicit */ private final String a; /* Implicit */ private final String b; + private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LoggerSlf4jOnRecord.class); () { } public LoggerSlf4jOnRecord(String a, String b) { diff --git a/test/transform/resource/after-ecj/SynchronizedInRecord.java b/test/transform/resource/after-ecj/SynchronizedInRecord.java index b4dc3770..4b586f3f 100644 --- a/test/transform/resource/after-ecj/SynchronizedInRecord.java +++ b/test/transform/resource/after-ecj/SynchronizedInRecord.java @@ -1,8 +1,8 @@ import lombok.Synchronized; -public record SynchronizedInRecord(java $lock, String a) { - private final java.lang.Object $lock = new java.lang.Object[0]; +public record SynchronizedInRecord(String a, String b) { /* Implicit */ private final String a; /* Implicit */ private final String b; + private final java.lang.Object $lock = new java.lang.Object[0]; public SynchronizedInRecord(String a, String b) { super(); .a = a; -- cgit