diff options
Diffstat (limited to 'usage_examples/DataExample_pre.jpage')
-rw-r--r-- | usage_examples/DataExample_pre.jpage | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usage_examples/DataExample_pre.jpage b/usage_examples/DataExample_pre.jpage index 775f82ed..404d3458 100644 --- a/usage_examples/DataExample_pre.jpage +++ b/usage_examples/DataExample_pre.jpage @@ -1,14 +1,17 @@ import lombok.AccessLevel; import lombok.Setter; import lombok.Data; +import lombok.ToString; -public @Data class DataExample { +@Data public class DataExample { private final String name; - private @Setter(AccessLevel.PACKAGE) int age; + @Setter(AccessLevel.PACKAGE) private int age; private double score; private String[] tags; - public static @Data(staticConstructor="of") class Exercise<T> { + @ToString(includeFieldNames=true) + @Data(staticConstructor="of") + public static class Exercise<T> { private final String name; private final T value; } |