mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 06:17:44 +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
@@ -38,6 +38,11 @@ final @lombok.Value class Value1 {
|
||||
this.x = x;
|
||||
this.name = name;
|
||||
}
|
||||
private @java.lang.SuppressWarnings("all") Value1() {
|
||||
super();
|
||||
this.x = 0;
|
||||
this.name = null;
|
||||
}
|
||||
}
|
||||
@Value @lombok.experimental.NonFinal class Value2 {
|
||||
public final int x;
|
||||
@@ -83,6 +88,11 @@ final @lombok.Value class Value1 {
|
||||
this.x = x;
|
||||
this.name = name;
|
||||
}
|
||||
private @java.lang.SuppressWarnings("all") Value2() {
|
||||
super();
|
||||
this.x = 0;
|
||||
this.name = null;
|
||||
}
|
||||
}
|
||||
final @Value class Value3 {
|
||||
private @lombok.experimental.NonFinal int x;
|
||||
@@ -120,4 +130,8 @@ final @Value class Value3 {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
}
|
||||
private @java.lang.SuppressWarnings("all") Value3() {
|
||||
super();
|
||||
this.y = 0;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user