mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-03 07:13:15 +00:00
[test] Fix tests to reflect updates to @CheckReturnValue feature.
This commit is contained in:
10 files changed
+10
-41
No files matched your search
@@ -45,6 +45,7 @@ class CheckReturnValueBuilder {
|
||||
return new CheckReturnValueBuilder(this.x, this.name);
|
||||
}
|
||||
@java.lang.Override
|
||||
@lombok.CheckReturnValue
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public java.lang.String toString() {
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
class CheckReturnValueOff {
|
||||
final int x;
|
||||
CheckReturnValueOff(int x) {
|
||||
this.x = x;
|
||||
}
|
||||
/**
|
||||
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
|
||||
*/
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public CheckReturnValueOff withX(final int x) {
|
||||
return this.x == x ? this : new CheckReturnValueOff(x);
|
||||
}
|
||||
}
|
||||
@@ -70,6 +70,7 @@ class CheckerFrameworkBasic {
|
||||
public java.lang.String toString() {
|
||||
return "CheckerFrameworkBasic(x=" + this.getX() + ", y=" + this.getY() + ", z=" + this.getZ() + ")";
|
||||
}
|
||||
@org.checkerframework.dataflow.qual.SideEffectFree
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public CheckerFrameworkBasic(final int x, final int y, final int z) {
|
||||
|
||||
@@ -11,6 +11,7 @@ class CheckerFrameworkBuilder {
|
||||
private static int $default$x() {
|
||||
return 5;
|
||||
}
|
||||
@org.checkerframework.dataflow.qual.SideEffectFree
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
CheckerFrameworkBuilder(final int x, final int y, final int z, final List<String> names) {
|
||||
@@ -37,6 +38,7 @@ class CheckerFrameworkBuilder {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
private java.util.ArrayList<String> names;
|
||||
@org.checkerframework.dataflow.qual.SideEffectFree
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
CheckerFrameworkBuilderBuilder() {
|
||||
|
||||
@@ -100,6 +100,7 @@ class CheckerFrameworkSuperBuilder {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
private static final class ParentBuilderImpl extends CheckerFrameworkSuperBuilder.Parent.ParentBuilder<CheckerFrameworkSuperBuilder.Parent, CheckerFrameworkSuperBuilder.Parent.ParentBuilderImpl> {
|
||||
@org.checkerframework.dataflow.qual.SideEffectFree
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
private ParentBuilderImpl() {
|
||||
@@ -207,6 +208,7 @@ class CheckerFrameworkSuperBuilder {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
private static final class ZChildBuilderImpl extends CheckerFrameworkSuperBuilder.ZChild.ZChildBuilder<CheckerFrameworkSuperBuilder.ZChild, CheckerFrameworkSuperBuilder.ZChild.ZChildBuilderImpl> {
|
||||
@org.checkerframework.dataflow.qual.SideEffectFree
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
private ZChildBuilderImpl() {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
public @lombok.CheckReturnValue @java.lang.SuppressWarnings("all") @lombok.Generated CheckReturnValueBuilder build() {
|
||||
return new CheckReturnValueBuilder(this.x, this.name);
|
||||
}
|
||||
public @java.lang.Override @java.lang.SuppressWarnings("all") @lombok.Generated java.lang.String toString() {
|
||||
public @java.lang.Override @lombok.CheckReturnValue @java.lang.SuppressWarnings("all") @lombok.Generated java.lang.String toString() {
|
||||
return (((("CheckReturnValueBuilder.CheckReturnValueBuilderBuilder(x=" + this.x) + ", name=") + this.name) + ")");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
import lombok.With;
|
||||
class CheckReturnValueOff {
|
||||
final @With int x;
|
||||
CheckReturnValueOff(int x) {
|
||||
super();
|
||||
this.x = x;
|
||||
}
|
||||
/**
|
||||
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
|
||||
*/
|
||||
public @java.lang.SuppressWarnings("all") @lombok.Generated CheckReturnValueOff withX(final int x) {
|
||||
return ((this.x == x) ? this : new CheckReturnValueOff(x));
|
||||
}
|
||||
}
|
||||
@@ -58,7 +58,7 @@ import lombok.With;
|
||||
public @java.lang.Override @org.checkerframework.dataflow.qual.SideEffectFree @java.lang.SuppressWarnings("all") @lombok.Generated java.lang.String toString() {
|
||||
return (((((("CheckerFrameworkBasic(x=" + this.getX()) + ", y=") + this.getY()) + ", z=") + this.getZ()) + ")");
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") @lombok.Generated CheckerFrameworkBasic(final int x, final int y, final int z) {
|
||||
public @org.checkerframework.dataflow.qual.SideEffectFree @java.lang.SuppressWarnings("all") @lombok.Generated CheckerFrameworkBasic(final int x, final int y, final int z) {
|
||||
super();
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
|
||||
@@ -8,7 +8,7 @@ import lombok.Singular;
|
||||
private @java.lang.SuppressWarnings("all") @lombok.Generated int y;
|
||||
private @java.lang.SuppressWarnings("all") @lombok.Generated int z;
|
||||
private @java.lang.SuppressWarnings("all") @lombok.Generated java.util.ArrayList<String> names;
|
||||
@java.lang.SuppressWarnings("all") @lombok.Generated CheckerFrameworkBuilderBuilder() {
|
||||
@org.checkerframework.dataflow.qual.SideEffectFree @java.lang.SuppressWarnings("all") @lombok.Generated CheckerFrameworkBuilderBuilder() {
|
||||
super();
|
||||
}
|
||||
/**
|
||||
@@ -82,7 +82,7 @@ import lombok.Singular;
|
||||
private static @java.lang.SuppressWarnings("all") @lombok.Generated int $default$x() {
|
||||
return 5;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all") @lombok.Generated CheckerFrameworkBuilder(final int x, final int y, final int z, final List<String> names) {
|
||||
@org.checkerframework.dataflow.qual.SideEffectFree @java.lang.SuppressWarnings("all") @lombok.Generated CheckerFrameworkBuilder(final int x, final int y, final int z, final List<String> names) {
|
||||
super();
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
//CONF: lombok.checkReturnValueAnnotation = none
|
||||
import lombok.With;
|
||||
class CheckReturnValueOff {
|
||||
@With final int x;
|
||||
|
||||
CheckReturnValueOff(int x) {
|
||||
this.x = x;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user