-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1235 from bulgakovalexander/bugfix/builderWithTol…
…erate Bugfix/builder with tolerate
- Loading branch information
Showing
7 changed files
with
135 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
test/transform/resource/after-delombok/BuilderWithTolerate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
|
||
import lombok.experimental.Tolerate; | ||
|
||
public class BuilderWithTolerate { | ||
private final int value; | ||
|
||
public static void main(String[] args) { | ||
BuilderWithTolerate.builder().value("42").build(); | ||
} | ||
|
||
|
||
public static class BuilderWithTolerateBuilder { | ||
@java.lang.SuppressWarnings("all") | ||
@javax.annotation.Generated("lombok") | ||
private int value; | ||
|
||
@Tolerate | ||
public BuilderWithTolerateBuilder value(String s) { | ||
return this.value(Integer.parseInt(s)); | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
@javax.annotation.Generated("lombok") | ||
BuilderWithTolerateBuilder() { | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
@javax.annotation.Generated("lombok") | ||
public BuilderWithTolerateBuilder value(final int value) { | ||
this.value = value; | ||
return this; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
@javax.annotation.Generated("lombok") | ||
public BuilderWithTolerate build() { | ||
return new BuilderWithTolerate(value); | ||
} | ||
|
||
@java.lang.Override | ||
@java.lang.SuppressWarnings("all") | ||
@javax.annotation.Generated("lombok") | ||
public java.lang.String toString() { | ||
return "BuilderWithTolerate.BuilderWithTolerateBuilder(value=" + this.value + ")"; | ||
} | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
@javax.annotation.Generated("lombok") | ||
BuilderWithTolerate(final int value) { | ||
this.value = value; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
@javax.annotation.Generated("lombok") | ||
public static BuilderWithTolerateBuilder builder() { | ||
return new BuilderWithTolerateBuilder(); | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
test/transform/resource/after-ecj/BuilderWithTolerate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import lombok.Builder; | ||
import lombok.experimental.Tolerate; | ||
public @Builder class BuilderWithTolerate { | ||
public static class BuilderWithTolerateBuilder { | ||
private @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") int value; | ||
public @Tolerate BuilderWithTolerateBuilder value(String s) { | ||
return this.value(Integer.parseInt(s)); | ||
} | ||
@java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderWithTolerateBuilder() { | ||
super(); | ||
} | ||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderWithTolerateBuilder value(final int value) { | ||
this.value = value; | ||
return this; | ||
} | ||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderWithTolerate build() { | ||
return new BuilderWithTolerate(value); | ||
} | ||
public @java.lang.Override @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") java.lang.String toString() { | ||
return (("BuilderWithTolerate.BuilderWithTolerateBuilder(value=" + this.value) + ")"); | ||
} | ||
} | ||
private final int value; | ||
public static void main(String[] args) { | ||
BuilderWithTolerate.builder().value("42").build(); | ||
} | ||
@java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderWithTolerate(final int value) { | ||
super(); | ||
this.value = value; | ||
} | ||
public static @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderWithTolerateBuilder builder() { | ||
return new BuilderWithTolerateBuilder(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import lombok.Builder; | ||
import lombok.experimental.Tolerate; | ||
|
||
@Builder | ||
public class BuilderWithTolerate { | ||
private final int value; | ||
|
||
public static void main(String[] args) { | ||
BuilderWithTolerate.builder().value("42").build(); | ||
} | ||
|
||
public static class BuilderWithTolerateBuilder { | ||
@Tolerate | ||
public BuilderWithTolerateBuilder value(String s) { | ||
return this.value(Integer.parseInt(s)); | ||
} | ||
} | ||
} |