mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-16 10:15:22 +00:00
[annotation based ToString] hey.. we have annotation based ToString now, where you can include/exclude fields by annotating the fields.
This commit is contained in:
1 parent
82a7354a84
commit
ad21a1573b
24 files changed
+639
-192
No files matched your search
@@ -0,0 +1,18 @@
|
||||
public class ToStringNewStyle {
|
||||
int b;
|
||||
double c;
|
||||
int f;
|
||||
int d;
|
||||
int f() {
|
||||
return 0;
|
||||
}
|
||||
int g;
|
||||
int h;
|
||||
int i;
|
||||
int j;
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public java.lang.String toString() {
|
||||
return "ToStringNewStyle(a=" + this.b + ", c=" + this.c + ", e=" + this.d + ", f=" + this.f() + ", g=" + this.g + ", i=" + this.i + ", h=" + this.h + ")";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user