mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-18 00:15:24 +00:00
[i623] added eclipse code for generating @javax.annotation.Generated, and refactored java impl to reduce DRY violations. -f pretty now includes skipping generation of this annotation, and updated ALL the test cases.
This commit is contained in:
1 parent
7efbecfe49
commit
a7bd812893
193 files changed
+1199
-613
No files matched your search
@@ -2,6 +2,7 @@ class SetterOnClass1 {
|
||||
boolean isNone;
|
||||
boolean isPublic;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
public void setPublic(final boolean isPublic) {
|
||||
this.isPublic = isPublic;
|
||||
}
|
||||
@@ -11,10 +12,12 @@ class SetterOnClass2 {
|
||||
boolean isProtected;
|
||||
boolean isPackage;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
protected void setProtected(final boolean isProtected) {
|
||||
this.isProtected = isProtected;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
void setPackage(final boolean isPackage) {
|
||||
this.isPackage = isPackage;
|
||||
}
|
||||
@@ -23,6 +26,7 @@ class SetterOnClass3 {
|
||||
boolean isNone;
|
||||
boolean isPackage;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
void setPackage(final boolean isPackage) {
|
||||
this.isPackage = isPackage;
|
||||
}
|
||||
@@ -31,6 +35,7 @@ class SetterOnClass4 {
|
||||
boolean isNone;
|
||||
boolean isPrivate;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
private void setPrivate(final boolean isPrivate) {
|
||||
this.isPrivate = isPrivate;
|
||||
}
|
||||
@@ -39,6 +44,7 @@ class SetterOnClass5 {
|
||||
boolean isNone;
|
||||
boolean isPublic;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
public void setPublic(final boolean isPublic) {
|
||||
this.isPublic = isPublic;
|
||||
}
|
||||
@@ -48,10 +54,12 @@ class SetterOnClass6 {
|
||||
@lombok.NonNull
|
||||
String nonNull;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
public void setCouldBeNull(final String couldBeNull) {
|
||||
this.couldBeNull = couldBeNull;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
public void setNonNull(@lombok.NonNull final String nonNull) {
|
||||
if (nonNull == null) {
|
||||
throw new java.lang.NullPointerException("nonNull");
|
||||
|
||||
Reference in new issue
Block a user