mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-19 00:15:04 +00:00
[i623] added eclipse code for generating @javax.annotation.Generated, and refactored java impl to reduce DRY violations. -f pretty now includes skipping generation of this annotation, and updated ALL the test cases.
This commit is contained in:
1 parent
7efbecfe49
commit
a7bd812893
193 files changed
+1199
-613
No files matched your search
@@ -1,5 +1,6 @@
|
||||
class SynchronizedPlain1 {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
private final java.lang.Object $lock = new java.lang.Object[0];
|
||||
void test() {
|
||||
synchronized (this.$lock) {
|
||||
@@ -14,6 +15,7 @@ class SynchronizedPlain1 {
|
||||
}
|
||||
class SynchronizedPlain2 {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
private static final java.lang.Object $LOCK = new java.lang.Object[0];
|
||||
static void test() {
|
||||
synchronized (SynchronizedPlain2.$LOCK) {
|
||||
|
||||
Reference in new issue
Block a user