Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NonNull annotations to test cases for testing annotation copying #3589

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions test/transform/resource/after-delombok/DataPlain.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class Data1 {
final int x;
String name;
@lombok.NonNull String name;
@java.lang.SuppressWarnings("all")
public Data1(final int x) {
this.x = x;
Expand All @@ -9,12 +9,13 @@ public Data1(final int x) {
public int getX() {
return this.x;
}
@lombok.NonNull
@java.lang.SuppressWarnings("all")
public String getName() {
return this.name;
}
@java.lang.SuppressWarnings("all")
public void setName(final String name) {
public void setName(@lombok.NonNull final String name) {
this.name = name;
}
@java.lang.Override
Expand Down
4 changes: 3 additions & 1 deletion test/transform/resource/after-delombok/ValuePlain.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
final class Value1 {
private final int x;
@lombok.NonNull
private final String name;
@java.lang.SuppressWarnings("all")
public Value1(final int x, final String name) {
public Value1(final int x, @lombok.NonNull final String name) {
this.x = x;
this.name = name;
}
@java.lang.SuppressWarnings("all")
public int getX() {
return this.x;
}
@lombok.NonNull
@java.lang.SuppressWarnings("all")
public String getName() {
return this.name;
Expand Down
2 changes: 1 addition & 1 deletion test/transform/resource/before/DataPlain.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import lombok.Data;
@lombok.Data class Data1 {
final int x;
String name;
@lombok.NonNull String name;
}
@Data class Data2 {
final int x;
Expand Down
2 changes: 1 addition & 1 deletion test/transform/resource/before/ValuePlain.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import lombok.Value;
@lombok.Value class Value1 {
final int x;
String name;
@lombok.NonNull String name;
}
@Value @lombok.experimental.NonFinal class Value2 {
public int x;
Expand Down