mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-18 12:14:29 +00:00
Generate default no-args constructor
This commit is contained in:
1 parent
4fb9c6f7f8
commit
6045c1b8f5
31 files changed
+383
-18
No files matched your search
@@ -7,6 +7,11 @@ final class Value1 {
|
||||
this.name = name;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
private Value1() {
|
||||
this.x = 0;
|
||||
this.name = null;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public int getX() {
|
||||
return this.x;
|
||||
}
|
||||
@@ -51,6 +56,11 @@ class Value2 {
|
||||
this.name = name;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
private Value2() {
|
||||
this.x = 0;
|
||||
this.name = null;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public int getX() {
|
||||
return this.x;
|
||||
}
|
||||
@@ -100,6 +110,10 @@ final class Value3 {
|
||||
this.y = y;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
private Value3() {
|
||||
this.y = 0;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public int getX() {
|
||||
return this.x;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user