mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 00:17:45 +00:00
[tests] This seemingly humongous commit is actually nothing: All test-cases now have @Generated annotations where before they did not.
This commit is contained in:
292 files changed
+2545
-432
No files matched your search
@@ -1,61 +1,52 @@
|
||||
import java.util.logging.Level;
|
||||
|
||||
enum InjectField1 {
|
||||
A, B;
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
|
||||
|
||||
@lombok.Generated
|
||||
private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(InjectField1.class.getName());
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
private final java.lang.Object $lock = new java.lang.Object[0];
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
private static final java.lang.Object $LOCK = new java.lang.Object[0];
|
||||
|
||||
private static final String LOG_MESSAGE = "static initializer";
|
||||
|
||||
private String fieldA;
|
||||
|
||||
static {
|
||||
log.log(Level.FINE, LOG_MESSAGE);
|
||||
}
|
||||
|
||||
private String fieldB;
|
||||
|
||||
void generateLockField() {
|
||||
synchronized (this.$lock) {
|
||||
System.out.println("lock field");
|
||||
}
|
||||
}
|
||||
|
||||
static void generateStaticLockField() {
|
||||
synchronized (InjectField1.$LOCK) {
|
||||
System.out.println("static lock field");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class InjectField2 {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(InjectField2.class.getName());
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
private final java.lang.Object $lock = new java.lang.Object[0];
|
||||
|
||||
private static final String LOG_MESSAGE = "static initializer";
|
||||
|
||||
static {
|
||||
log.log(Level.FINE, LOG_MESSAGE);
|
||||
}
|
||||
|
||||
void generateLockField() {
|
||||
synchronized (this.$lock) {
|
||||
System.out.println("lock field");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class InjectField3 {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(InjectField3.class.getName());
|
||||
static {
|
||||
log.log(Level.FINE, "static initializer");
|
||||
|
||||
Reference in new issue
Block a user