diff options
| author | Jan Rieke <rieke@subshell.com> | 2018-08-16 18:37:34 +0200 |
|---|---|---|
| committer | Jan Rieke <rieke@subshell.com> | 2018-08-16 18:37:34 +0200 |
| commit | 16fc34f36c77832b2bb7d383105c0b4c4dc5ddb6 (patch) | |
| tree | ddfeea4f78090f1b1e66d666da287247c6467407 /test/transform/resource/after-ecj | |
| parent | 76f6013b5950b64dbc776d6ddebdca439653381b (diff) | |
| download | lombok-16fc34f36c77832b2bb7d383105c0b4c4dc5ddb6.tar.gz lombok-16fc34f36c77832b2bb7d383105c0b4c4dc5ddb6.tar.bz2 lombok-16fc34f36c77832b2bb7d383105c0b4c4dc5ddb6.zip | |
adapted existing tests to changed default assignment generation
Diffstat (limited to 'test/transform/resource/after-ecj')
| -rw-r--r-- | test/transform/resource/after-ecj/SuperBuilderWithDefaults.java | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/test/transform/resource/after-ecj/SuperBuilderWithDefaults.java b/test/transform/resource/after-ecj/SuperBuilderWithDefaults.java index 731bd9f2..ef0713c5 100644 --- a/test/transform/resource/after-ecj/SuperBuilderWithDefaults.java +++ b/test/transform/resource/after-ecj/SuperBuilderWithDefaults.java @@ -46,11 +46,13 @@ public class SuperBuilderWithDefaults { }
protected @java.lang.SuppressWarnings("all") Parent(final ParentBuilder<N, ?, ?> b) {
super();
- this.millis = b.millis;
- if ((! b.millis$set))
+ if (b.millis$set)
+ this.millis = b.millis;
+ else
this.millis = Parent.<N>$default$millis();
- this.numberField = b.numberField;
- if ((! b.numberField$set))
+ if (b.numberField$set)
+ this.numberField = b.numberField;
+ else
this.numberField = Parent.<N>$default$numberField();
}
public static @java.lang.SuppressWarnings("all") <N extends Number>ParentBuilder<N, ?, ?> builder() {
@@ -92,8 +94,9 @@ public class SuperBuilderWithDefaults { }
protected @java.lang.SuppressWarnings("all") Child(final ChildBuilder<?, ?> b) {
super(b);
- this.doubleField = b.doubleField;
- if ((! b.doubleField$set))
+ if (b.doubleField$set)
+ this.doubleField = b.doubleField;
+ else
this.doubleField = Child.$default$doubleField();
}
public static @java.lang.SuppressWarnings("all") ChildBuilder<?, ?> builder() {
|
