Merge pull request #2684 from Rawi01/npe-javadoc

Fix NullPointerException during Javadoc copy
This commit is contained in:
Reinier Zwitserloot authored and GitHub committed 2020-12-27 05:36:51 +01:00
commit 11b6f8f97a
155 files changed
+1002 -295

No files matched your search

+16 -2
View File
@@ -762,12 +762,14 @@ public class HandlerUtil {
private static final Pattern LINE_BREAK_FINDER = Pattern.compile("(\\r?\\n)?");
public static String stripLinesWithTagFromJavadoc(String javadoc, String regexpFragment) {
if (javadoc == null || javadoc.isEmpty()) return javadoc;
Pattern p = Pattern.compile("^\\s*\\**\\s*" + regexpFragment + "\\s*\\**\\s*$", Pattern.MULTILINE | Pattern.CASE_INSENSITIVE);
Matcher m = p.matcher(javadoc);
return m.replaceAll("");
}
public static String stripSectionsFromJavadoc(String javadoc) {
if (javadoc == null || javadoc.isEmpty()) return javadoc;
Matcher sectionMatcher = SECTION_FINDER.matcher(javadoc);
if (!sectionMatcher.find()) return javadoc;
@@ -775,6 +777,7 @@ public class HandlerUtil {
}
public static String getJavadocSection(String javadoc, String sectionNameSpec) {
if (javadoc == null || javadoc.isEmpty()) return null;
String[] sectionNames = sectionNameSpec.split("\\|");
Matcher sectionMatcher = SECTION_FINDER.matcher(javadoc);
Matcher lineBreakMatcher = LINE_BREAK_FINDER.matcher(javadoc);
@@ -805,19 +808,30 @@ public class HandlerUtil {
private static final Pattern FIND_RETURN = Pattern.compile("^\\s*\\**\\s*@returns?\\s+.*$", Pattern.MULTILINE | Pattern.CASE_INSENSITIVE);
public static String addReturnsThisIfNeeded(String in) {
if (FIND_RETURN.matcher(in).find()) return in;
if (in != null && FIND_RETURN.matcher(in).find()) return in;
return addJavadocLine(in, "@return {@code this}.");
}
public static String addReturnsUpdatedSelfIfNeeded(String in) {
if (FIND_RETURN.matcher(in).find()) return in;
if (in != null && FIND_RETURN.matcher(in).find()) return in;
return addJavadocLine(in, "@return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).");
}
public static String addJavadocLine(String in, String line) {
if (in == null) return line;
if (in.endsWith("\n")) return in + line + "\n";
return in + "\n" + line;
}
public static String getParamJavadoc(String methodComment, String param) {
if (methodComment == null || methodComment.isEmpty()) return methodComment;
Pattern pattern = Pattern.compile("@param " + param + " (\\S|\\s)+?(?=^ ?@)", Pattern.MULTILINE | Pattern.CASE_INSENSITIVE);
Matcher matcher = pattern.matcher(methodComment);
if (matcher.find()) {
return matcher.group();
}
return null;
}
}
+2 -1
View File
@@ -28,6 +28,7 @@ import java.util.concurrent.ConcurrentMap;
import org.eclipse.jdt.internal.compiler.ast.ASTNode;
import org.eclipse.jdt.internal.compiler.ast.Annotation;
import org.eclipse.jdt.internal.compiler.ast.FieldDeclaration;
import org.eclipse.jdt.internal.compiler.env.ICompilationUnit;
import org.eclipse.jdt.internal.core.CompilationUnit;
import org.eclipse.jdt.internal.core.SourceMethod;
@@ -42,13 +43,13 @@ public final class EcjAugments {
public static final FieldAugment<ASTNode, Boolean> ASTNode_handled = FieldAugment.augment(ASTNode.class, boolean.class, "lombok$handled");
public static final FieldAugment<ASTNode, ASTNode> ASTNode_generatedBy = FieldAugment.augment(ASTNode.class, ASTNode.class, "$generatedBy");
public static final FieldAugment<Annotation, Boolean> Annotation_applied = FieldAugment.augment(Annotation.class, boolean.class, "lombok$applied");
public static final FieldAugment<ICompilationUnit, Map<String, String>> CompilationUnit_javadoc = FieldAugment.augment(ICompilationUnit.class, Map.class, "$javadoc");
public static final class EclipseAugments {
private EclipseAugments() {
// Prevent instantiation
}
public static final FieldAugment<CompilationUnit, Map<String, String>> CompilationUnit_javadoc = FieldAugment.augment(CompilationUnit.class, Map.class, "$javadoc");
public static final FieldAugment<CompilationUnit, ConcurrentMap<String, List<SourceMethod>>> CompilationUnit_delegateMethods = FieldAugment.augment(CompilationUnit.class, ConcurrentMap.class, "$delegateMethods");
}
}
@@ -39,7 +39,6 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.eclipse.jdt.core.Signature;
import org.eclipse.jdt.core.compiler.CharOperation;
import org.eclipse.jdt.internal.compiler.ast.ASTNode;
import org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration;
@@ -106,7 +105,6 @@ import org.eclipse.jdt.internal.compiler.lookup.TypeBinding;
import org.eclipse.jdt.internal.compiler.lookup.TypeConstants;
import org.eclipse.jdt.internal.compiler.lookup.TypeIds;
import org.eclipse.jdt.internal.compiler.lookup.WildcardBinding;
import org.eclipse.jdt.internal.core.CompilationUnit;
import lombok.AccessLevel;
import lombok.ConfigurationKeys;
@@ -125,6 +123,7 @@ import lombok.core.configuration.TypeName;
import lombok.core.debug.ProblemReporter;
import lombok.core.handlers.HandlerUtil;
import lombok.core.handlers.HandlerUtil.FieldAccess;
import lombok.eclipse.EcjAugments;
import lombok.eclipse.Eclipse;
import lombok.eclipse.EclipseAST;
import lombok.eclipse.EclipseNode;
@@ -2643,42 +2642,20 @@ public class EclipseHandlerUtil {
return null;
}
private static class EclipseOnlyUtil {
public static void setDocComment(CompilationUnitDeclaration cud, TypeDeclaration type, ASTNode node, String doc) {
if (cud.compilationResult.compilationUnit instanceof CompilationUnit) {
CompilationUnit compilationUnit = (CompilationUnit) cud.compilationResult.compilationUnit;
Map<String, String> docs = EclipseAugments.CompilationUnit_javadoc.setIfAbsent(compilationUnit, new HashMap<String, String>());
if (node instanceof AbstractMethodDeclaration) {
AbstractMethodDeclaration methodDeclaration = (AbstractMethodDeclaration) node;
String signature = getSignature(type, methodDeclaration);
/* Add javadoc start marker, add leading asterisks to each line, add javadoc end marker */
docs.put(signature, String.format("/**%n%s%n */", doc.replaceAll("(?m)^", " * ")));
}
}
}
}
private static Boolean eclipseMode;
private static boolean eclipseMode() {
if (eclipseMode != null) return eclipseMode.booleanValue();
try {
Class.forName("org.eclipse.jdt.internal.core.CompilationUnit");
eclipseMode = true;
} catch (Throwable t) {
eclipseMode = false;
}
return eclipseMode;
}
public static void setDocComment(CompilationUnitDeclaration cud, EclipseNode eclipseNode, String doc) {
if (!eclipseMode()) return;
setDocComment(cud, (TypeDeclaration) upToTypeNode(eclipseNode).get(), eclipseNode.get(), doc);
}
public static void setDocComment(CompilationUnitDeclaration cud, TypeDeclaration type, ASTNode node, String doc) {
if (!eclipseMode()) return;
EclipseOnlyUtil.setDocComment(cud, type, node, doc);
if (doc == null) return;
Map<String, String> docs = EcjAugments.CompilationUnit_javadoc.setIfAbsent(cud.compilationResult.compilationUnit, new HashMap<String, String>());
if (node instanceof AbstractMethodDeclaration) {
AbstractMethodDeclaration methodDeclaration = (AbstractMethodDeclaration) node;
String signature = getSignature(type, methodDeclaration);
/* Add javadoc start marker, remove trailing line break, add leading asterisks to each line, add javadoc end marker */
docs.put(signature, String.format("/**%n%s%n */", doc.replaceAll("$\\r?\\n", "").replaceAll("(?m)^", " * ")));
}
}
public static String getSignature(TypeDeclaration type, AbstractMethodDeclaration methodDeclaration) {
@@ -2690,8 +2667,7 @@ public class EclipseHandlerUtil {
Argument[] arguments = methodDeclaration.arguments;
if (arguments != null) {
for (Argument argument : arguments) {
String signature = Signature.createTypeSignature(argument.type.getLastToken(), false);
sb.append(signature);
sb.append(String.valueOf(argument.type));
}
}
sb.append(")");
@@ -2786,10 +2762,10 @@ public class EclipseHandlerUtil {
try {
CompilationUnitDeclaration cud = ((CompilationUnitDeclaration) from.top().get());
String newJavadoc = copyMode.apply(cud, from);
if (newJavadoc != null) {
if (forceAddReturn) newJavadoc = addReturnsThisIfNeeded(newJavadoc);
setDocComment(cud, type, to, newJavadoc);
if (forceAddReturn) {
newJavadoc = addReturnsThisIfNeeded(newJavadoc);
}
setDocComment(cud, type, to, newJavadoc);
} catch (Exception ignore) {}
}
}
@@ -29,8 +29,6 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.eclipse.jdt.internal.compiler.ast.ASTNode;
import org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration;
@@ -1045,14 +1043,8 @@ public class HandleBuilder extends EclipseAnnotationHandler<Builder> {
try {
CompilationUnitDeclaration cud = (CompilationUnitDeclaration) from.top().get();
String methodComment = getDocComment(cud, from.get());
if (methodComment == null) return;
Pattern pattern = Pattern.compile("@param " + param + " (\\S|\\s)+?(?=^ ?@)", Pattern.MULTILINE | Pattern.CASE_INSENSITIVE);
Matcher matcher = pattern.matcher(methodComment);
if (matcher.find()) {
String newJavadoc = addReturnsThisIfNeeded(matcher.group());
setDocComment(cud, type, to, newJavadoc);
}
String newJavadoc = addReturnsThisIfNeeded(getParamJavadoc(methodComment, param));
setDocComment(cud, type, to, newJavadoc);
} catch (Exception ignore) {}
}
@@ -27,8 +27,6 @@ import static lombok.javac.JavacTreeMaker.TypeTag.typeTag;
import static lombok.javac.handlers.JavacHandlerUtil.*;
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.lang.model.element.Modifier;
@@ -927,16 +925,10 @@ public class HandleBuilder extends JavacAnnotationHandler<Builder> {
try {
JCCompilationUnit cu = ((JCCompilationUnit) from.top().get());
String methodComment = Javac.getDocComment(cu, from.get());
if (methodComment == null) return;
Pattern pattern = Pattern.compile("@param " + param + " (\\S|\\s)+?(?=^ ?@)", Pattern.MULTILINE | Pattern.CASE_INSENSITIVE);
Matcher matcher = pattern.matcher(methodComment);
if (matcher.find()) {
String newJavadoc = addReturnsThisIfNeeded(matcher.group());
Javac.setDocComment(cu, to, newJavadoc);
}
String newJavadoc = addReturnsThisIfNeeded(getParamJavadoc(methodComment, param));
Javac.setDocComment(cu, to, newJavadoc);
} catch (Exception ignore) {}
}
}
public JavacNode makeBuilderClass(BuilderJob job) {
//boolean isStatic, JavacNode source, JavacNode tdParent, String builderClassName, List<JCTypeParameter> typeParams, JCAnnotation ast, AccessLevel access) {
@@ -2120,10 +2120,10 @@ public class JavacHandlerUtil {
try {
JCCompilationUnit cu = ((JCCompilationUnit) from.top().get());
String newJavadoc = copyMode.apply(cu, from);
if (newJavadoc != null) {
if (forceAddReturn) newJavadoc = addReturnsThisIfNeeded(newJavadoc);
Javac.setDocComment(cu, to, newJavadoc);
if (forceAddReturn) {
newJavadoc = addReturnsThisIfNeeded(newJavadoc);
}
Javac.setDocComment(cu, to, newJavadoc);
} catch (Exception ignore) {}
}
@@ -916,7 +916,7 @@ public class EclipsePatcher implements AgentLauncher.AgentLaunchable {
.requestExtra(StackRequest.PARAM1)
.build());
sm.addScriptIfWitness(OSGI_TYPES, ScriptBuilder.replaceMethodCall()
sm.addScript(ScriptBuilder.replaceMethodCall()
.target(new MethodTarget("org.eclipse.jdt.internal.compiler.ast.TypeDeclaration", "printBody", "java.lang.StringBuffer", "int", "java.lang.StringBuffer"))
.methodToReplace(new Hook("org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration", "print", "java.lang.StringBuffer", "int", "java.lang.StringBuffer"))
.replacementMethod(new Hook("lombok.launch.PatchFixesHider$Javadoc", "printMethod", "java.lang.StringBuffer", "org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration", "int", "java.lang.StringBuffer", "org.eclipse.jdt.internal.compiler.ast.TypeDeclaration"))
@@ -21,7 +21,7 @@
*/
package lombok.eclipse.agent;
import static lombok.eclipse.EcjAugments.EclipseAugments.CompilationUnit_javadoc;
import static lombok.eclipse.EcjAugments.CompilationUnit_javadoc;
import java.lang.reflect.Method;
import java.util.Map;
@@ -41,7 +41,7 @@ import lombok.permit.Permit;
public class PatchJavadoc {
public static String getHTMLContentFromSource(String original, IJavaElement member) {
public static String getHTMLContentFromSource(String original, Object member) {
if (original != null) {
return original;
}
@@ -51,15 +51,14 @@ public class PatchJavadoc {
ICompilationUnit iCompilationUnit = sourceMethod.getCompilationUnit();
if (iCompilationUnit instanceof CompilationUnit) {
CompilationUnit compilationUnit = (CompilationUnit) iCompilationUnit;
Map<String, String> docs = CompilationUnit_javadoc.get(compilationUnit);
if (docs == null) return null;
String signature = getSignature(sourceMethod);
String signature = Signature.getSignature(sourceMethod);
String rawJavadoc = docs.get(signature);
if (rawJavadoc == null) return null;
return Reflection.javadoc2HTML((IMember) member, member, rawJavadoc);
return Reflection.javadoc2HTML((IMember) member, (IJavaElement) member, rawJavadoc);
}
}
@@ -67,33 +66,33 @@ public class PatchJavadoc {
}
public static StringBuffer printMethod(AbstractMethodDeclaration methodDeclaration, Integer tab, StringBuffer output, TypeDeclaration type) {
if (methodDeclaration.compilationResult.compilationUnit instanceof CompilationUnit) {
Map<String, String> docs = CompilationUnit_javadoc.get((CompilationUnit) methodDeclaration.compilationResult.compilationUnit);
if (docs != null) {
String signature = EclipseHandlerUtil.getSignature(type, methodDeclaration);
String rawJavadoc = docs.get(signature);
if (rawJavadoc != null) {
for (String line : rawJavadoc.split("\r?\n")) {
ASTNode.printIndent(tab, output).append(line).append("\n");
}
Map<String, String> docs = CompilationUnit_javadoc.get(methodDeclaration.compilationResult.compilationUnit);
if (docs != null) {
String signature = EclipseHandlerUtil.getSignature(type, methodDeclaration);
String rawJavadoc = docs.get(signature);
if (rawJavadoc != null) {
for (String line : rawJavadoc.split("\r?\n")) {
ASTNode.printIndent(tab, output).append(line).append("\n");
}
}
}
return methodDeclaration.print(tab, output);
}
private static String getSignature(SourceMethod sourceMethod) {
StringBuilder sb = new StringBuilder();
sb.append(sourceMethod.getParent().getElementName());
sb.append(".");
sb.append(sourceMethod.getElementName());
sb.append("(");
for (String type : sourceMethod.getParameterTypes()) {
sb.append(type);
private static class Signature {
static final String getSignature(SourceMethod sourceMethod) {
StringBuilder sb = new StringBuilder();
sb.append(sourceMethod.getParent().getElementName());
sb.append(".");
sb.append(sourceMethod.getElementName());
sb.append("(");
for (String type : sourceMethod.getParameterTypes()) {
sb.append(org.eclipse.jdt.core.Signature.toString(type));
}
sb.append(")");
return sb.toString();
}
sb.append(")");
return sb.toString();
}
/**
@@ -332,7 +332,7 @@ final class PatchFixesHider {
static {
Class<?> shadowed = Util.shadowLoadClass("lombok.eclipse.agent.PatchJavadoc");
GET_HTML = Util.findMethod(shadowed, "getHTMLContentFromSource", String.class, IJavaElement.class);
GET_HTML = Util.findMethod(shadowed, "getHTMLContentFromSource", String.class, Object.class);
PRINT_METHOD = Util.findMethod(shadowed, "printMethod", AbstractMethodDeclaration.class, Integer.class, StringBuffer.class, TypeDeclaration.class);
}
+53
View File
@@ -24,6 +24,7 @@ package lombok.core;
import java.lang.ref.WeakReference;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.HashMap;
import java.util.Map;
import java.util.WeakHashMap;
@@ -69,6 +70,10 @@ public abstract class FieldAugment<T, F> {
checkNotNull(fieldType, "fieldType");
checkNotNull(name, "name");
if (type.isInterface()) {
return new InterfaceFieldAugment<T, F>(name, fieldType);
}
@SuppressWarnings("unchecked")
F defaultValue = (F) getDefaultValue(fieldType);
FieldAugment<T, F> ret = tryCreateReflectionAugment(type, fieldType, name, defaultValue);
@@ -175,6 +180,54 @@ public abstract class FieldAugment<T, F> {
*/
public abstract F compareAndSet(T object, F expected, F value);
private static final class InterfaceFieldAugment<T, F> extends FieldAugment<T, F> {
private final String name;
private final Class<? super F> fieldType;
private Map<Class<T>, FieldAugment<T, F>> map = new HashMap<Class<T>, FieldAugment<T,F>>();
private InterfaceFieldAugment(String name, Class<? super F> fieldType) {
this.name = name;
this.fieldType = fieldType;
}
private synchronized FieldAugment<T, F> getDelegate(T object) {
@SuppressWarnings("unchecked")
Class<T> c = (Class<T>) object.getClass();
FieldAugment<T,F> fieldAugment = map.get(c);
if (fieldAugment == null) {
fieldAugment = augment(c, fieldType, name);
map.put(c, fieldAugment);
}
return fieldAugment;
}
@Override public F get(T object) {
return getDelegate(object).get(object);
}
@Override public F getAndSet(T object, F value) {
return getDelegate(object).getAndSet(object, value);
}
@Override public F clear(T object) {
return getDelegate(object).clear(object);
}
@Override public F compareAndClear(T object, F expected) {
return getDelegate(object).compareAndClear(object, expected);
}
@Override public F setIfAbsent(T object, F value) {
return getDelegate(object).setIfAbsent(object, value);
}
@Override public F compareAndSet(T object, F expected, F value) {
return getDelegate(object).compareAndSet(object, expected, value);
}
}
private static class ReflectionFieldAugment<T, F> extends FieldAugment<T, F> {
private final Object lock = new Object();
private final Field field;
+1
View File
@@ -281,6 +281,7 @@ public class Javac {
@SuppressWarnings("unchecked")
public static void setDocComment(JCCompilationUnit cu, JCTree node, String javadoc) {
if (javadoc == null) return;
Object dc = getDocComments(cu);
if (dc instanceof Map) {
((Map<JCTree, String>) dc).put(node, javadoc);
@@ -4,6 +4,9 @@ class AccessorsFluent {
public String fieldName() {
return this.fieldName;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public AccessorsFluent fieldName(final String fieldName) {
this.fieldName = fieldName;
@@ -21,6 +24,9 @@ class AccessorsFluentOnClass {
public String getOtherFieldWithOverride() {
return this.otherFieldWithOverride;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public AccessorsFluentOnClass fieldName(final String fieldName) {
this.fieldName = fieldName;
@@ -29,6 +35,9 @@ class AccessorsFluentOnClass {
}
class AccessorsChain {
private boolean isRunning;
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public AccessorsChain setRunning(final boolean isRunning) {
this.isRunning = isRunning;
@@ -93,6 +102,9 @@ class AccessorsPrefix3 {
}
class AccessorsFluentGenerics<T extends Number> {
private String name;
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public AccessorsFluentGenerics<T> name(final String name) {
this.name = name;
@@ -18,6 +18,9 @@ class AccessorsConfiguration2 {
}
class AccessorsConfiguration3 {
private String fFieldName = "";
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public AccessorsConfiguration3 setFieldName(final String fFieldName) {
this.fFieldName = fFieldName;
@@ -15,21 +15,33 @@ class BuilderComplex {
@java.lang.SuppressWarnings("all")
TestVoidName() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderComplex.TestVoidName<T> number(final T number) {
this.number = number;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderComplex.TestVoidName<T> arg2(final int arg2) {
this.arg2 = arg2;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderComplex.TestVoidName<T> arg3(final String arg3) {
this.arg3 = arg3;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderComplex.TestVoidName<T> selfRef(final BuilderComplex selfRef) {
this.selfRef = selfRef;
@@ -9,6 +9,9 @@ class BuilderCustomName<T> {
protected abstract B self();
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B field(final int field) {
this.field = field;
@@ -31,17 +31,26 @@ public final class BuilderDefaults {
@java.lang.SuppressWarnings("all")
BuilderDefaultsBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderDefaults.BuilderDefaultsBuilder x(final int x) {
this.x$value = x;
x$set = true;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderDefaults.BuilderDefaultsBuilder name(final String name) {
this.name = name;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderDefaults.BuilderDefaultsBuilder z(final long z) {
this.z$value = z;
@@ -38,18 +38,27 @@ public class BuilderDefaultsGenerics<N extends Number, T, R extends List<T>> {
@java.lang.SuppressWarnings("all")
BuilderDefaultsGenericsBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderDefaultsGenerics.BuilderDefaultsGenericsBuilder<N, T, R> callable(final java.util.concurrent.Callable<N> callable) {
this.callable$value = callable;
callable$set = true;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderDefaultsGenerics.BuilderDefaultsGenericsBuilder<N, T, R> tee(final T tee) {
this.tee$value = tee;
tee$set = true;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderDefaultsGenerics.BuilderDefaultsGenericsBuilder<N, T, R> arrr(final R arrr) {
this.arrr$value = arrr;
@@ -23,11 +23,17 @@ public class BuilderDefaultsWarnings {
@java.lang.SuppressWarnings("all")
BuilderDefaultsWarningsBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderDefaultsWarnings.BuilderDefaultsWarningsBuilder x(final long x) {
this.x = x;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderDefaultsWarnings.BuilderDefaultsWarningsBuilder z(final int z) {
this.z = z;
@@ -13,11 +13,17 @@ class BuilderGenericMethod<T> {
@java.lang.SuppressWarnings("all")
MapBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderGenericMethod<T>.MapBuilder<N> a(final int a) {
this.a = a;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderGenericMethod<T>.MapBuilder<N> b(final long b) {
this.b = b;
@@ -16,21 +16,33 @@ class BuilderInstanceMethod<T> {
@java.lang.SuppressWarnings("all")
StringBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderInstanceMethod<T>.StringBuilder show(final int show) {
this.show = show;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderInstanceMethod<T>.StringBuilder yes(final int yes) {
this.yes = yes;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderInstanceMethod<T>.StringBuilder also(final List<T> also) {
this.also = also;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderInstanceMethod<T>.StringBuilder $andMe(final int $andMe) {
this.$andMe = $andMe;
@@ -18,11 +18,17 @@ class BuilderSimple<T> {
@java.lang.SuppressWarnings("all")
BuilderSimpleBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderSimple.BuilderSimpleBuilder<T> yes(final int yes) {
this.yes = yes;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderSimple.BuilderSimpleBuilder<T> also(final List<T> also) {
this.also = also;
@@ -12,6 +12,9 @@ class BuilderSimpleWithSetterPrefix<T> {
@java.lang.SuppressWarnings("all")
BuilderSimpleWithSetterPrefixBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderSimpleWithSetterPrefix.BuilderSimpleWithSetterPrefixBuilder<T> withUnprefixed(final int unprefixed) {
this.unprefixed = unprefixed;
@@ -22,6 +22,9 @@ class BuilderTypeAnnos {
@java.lang.SuppressWarnings("all")
BuilderTypeAnnosBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderTypeAnnos.BuilderTypeAnnosBuilder foo(@TA final List<String> foo) {
this.foo = foo;
@@ -22,6 +22,9 @@ class BuilderTypeAnnosWithSetterPrefix {
@java.lang.SuppressWarnings("all")
BuilderTypeAnnosWithSetterPrefixBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderTypeAnnosWithSetterPrefix.BuilderTypeAnnosWithSetterPrefixBuilder withFoo(@TA final List<String> foo) {
this.foo = foo;
@@ -23,21 +23,33 @@ class BuilderWithAccessors {
@java.lang.SuppressWarnings("all")
BuilderWithAccessorsBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderWithAccessors.BuilderWithAccessorsBuilder plower(final int plower) {
this.plower = plower;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderWithAccessors.BuilderWithAccessorsBuilder upper(final int upper) {
this.upper = upper;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderWithAccessors.BuilderWithAccessorsBuilder foo(final int foo) {
this.foo = foo;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderWithAccessors.BuilderWithAccessorsBuilder _bar(final int _bar) {
this._bar = _bar;
@@ -15,11 +15,17 @@ public class BuilderWithBadNames {
@java.lang.SuppressWarnings("all")
BuilderWithBadNamesBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderWithBadNames.BuilderWithBadNamesBuilder build(final String build) {
this.build = build;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderWithBadNames.BuilderWithBadNamesBuilder toString(final String toString) {
this.toString = toString;
@@ -40,6 +40,9 @@ public class BuilderWithDeprecated {
this.dep1 = dep1;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
public BuilderWithDeprecated.BuilderWithDeprecatedBuilder dep2(final int dep2) {
@@ -23,6 +23,9 @@ public class BuilderWithDeprecatedAnnOnly {
@java.lang.SuppressWarnings("all")
BuilderWithDeprecatedAnnOnlyBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
public BuilderWithDeprecatedAnnOnly.BuilderWithDeprecatedAnnOnlyBuilder dep1(final int dep1) {
@@ -13,11 +13,17 @@ class BuilderWithExistingBuilderClass<T, K extends Number> {
@java.lang.SuppressWarnings("all")
BuilderWithExistingBuilderClassBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderWithExistingBuilderClass.BuilderWithExistingBuilderClassBuilder<Z> arg1(final Z arg1) {
this.arg1 = arg1;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderWithExistingBuilderClass.BuilderWithExistingBuilderClassBuilder<Z> arg3(final String arg3) {
this.arg3 = arg3;
@@ -13,11 +13,17 @@ class BuilderWithExistingBuilderClassWithSetterPrefix<T, K extends Number> {
@java.lang.SuppressWarnings("all")
BuilderWithExistingBuilderClassWithSetterPrefixBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderWithExistingBuilderClassWithSetterPrefix.BuilderWithExistingBuilderClassWithSetterPrefixBuilder<Z> withArg1(final Z arg1) {
this.arg1 = arg1;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderWithExistingBuilderClassWithSetterPrefix.BuilderWithExistingBuilderClassWithSetterPrefixBuilder<Z> withArg3(final String arg3) {
this.arg3 = arg3;
@@ -11,6 +11,9 @@ class BuilderWithNoBuilderMethod {
@java.lang.SuppressWarnings("all")
BuilderWithNoBuilderMethodBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderWithNoBuilderMethod.BuilderWithNoBuilderMethodBuilder a(final String a) {
this.a = a;
@@ -15,6 +15,9 @@ class BuilderWithNonNull {
@java.lang.SuppressWarnings("all")
BuilderWithNonNullBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderWithNonNull.BuilderWithNonNullBuilder id(@lombok.NonNull final String id) {
if (id == null) {
@@ -15,6 +15,9 @@ class BuilderWithNonNullWithSetterPrefix {
@java.lang.SuppressWarnings("all")
BuilderWithNonNullWithSetterPrefixBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderWithNonNullWithSetterPrefix.BuilderWithNonNullWithSetterPrefixBuilder withId(@lombok.NonNull final String id) {
if (id == null) {
@@ -19,11 +19,17 @@ public class BuilderWithRecursiveGenerics {
@java.lang.SuppressWarnings("all")
TestBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderWithRecursiveGenerics.Test.TestBuilder<Foo, Bar, Quz> foo(final Foo foo) {
this.foo = foo;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderWithRecursiveGenerics.Test.TestBuilder<Foo, Bar, Quz> bar(final Bar bar) {
this.bar = bar;
@@ -27,16 +27,25 @@ class BuilderWithToBuilder<T> {
@java.lang.SuppressWarnings("all")
BuilderWithToBuilderBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderWithToBuilder.BuilderWithToBuilderBuilder<T> one(final String one) {
this.one = one;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderWithToBuilder.BuilderWithToBuilderBuilder<T> two(final String two) {
this.two = two;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderWithToBuilder.BuilderWithToBuilderBuilder<T> foo(final T foo) {
this.foo = foo;
@@ -114,16 +123,25 @@ class ConstructorWithToBuilder<T> {
@java.lang.SuppressWarnings("all")
ConstructorWithToBuilderBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public ConstructorWithToBuilder.ConstructorWithToBuilderBuilder<T> mOne(final String mOne) {
this.mOne = mOne;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public ConstructorWithToBuilder.ConstructorWithToBuilderBuilder<T> baz(final T baz) {
this.baz = baz;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public ConstructorWithToBuilder.ConstructorWithToBuilderBuilder<T> bars(final com.google.common.collect.ImmutableList<T> bars) {
this.bars = bars;
@@ -167,7 +185,9 @@ class StaticMethodWithToBuilder<T> {
@java.lang.SuppressWarnings("all")
StaticMethodWithToBuilderBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public StaticMethodWithToBuilder.StaticMethodWithToBuilderBuilder<T> foo(final T foo) {
this.foo = foo;
@@ -14,6 +14,9 @@ public class BuilderWithTolerate {
@java.lang.SuppressWarnings("all")
BuilderWithTolerateBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public BuilderWithTolerate.BuilderWithTolerateBuilder value(final int value) {
this.value = value;
@@ -17,6 +17,9 @@ class CheckerFrameworkBasic {
public int getZ() {
return this.z;
}
/**
* @return {@code this}.
*/
@org.checkerframework.common.returnsreceiver.qual.This
@java.lang.SuppressWarnings("all")
public CheckerFrameworkBasic setZ(final int z) {
@@ -64,6 +67,9 @@ class CheckerFrameworkBasic {
this.y = y;
this.z = z;
}
/**
* @return {@code this}.
*/
@org.checkerframework.dataflow.qual.SideEffectFree
@java.lang.SuppressWarnings("all")
public CheckerFrameworkBasic withX(final int x) {
@@ -31,6 +31,9 @@ class CheckerFrameworkBuilder {
@java.lang.SuppressWarnings("all")
CheckerFrameworkBuilderBuilder() {
}
/**
* @return {@code this}.
*/
@org.checkerframework.common.returnsreceiver.qual.This
@java.lang.SuppressWarnings("all")
public CheckerFrameworkBuilder.CheckerFrameworkBuilderBuilder x(CheckerFrameworkBuilder.@org.checkerframework.checker.calledmethods.qual.NotCalledMethods("x") CheckerFrameworkBuilderBuilder this, final int x) {
@@ -38,12 +41,18 @@ class CheckerFrameworkBuilder {
x$set = true;
return this;
}
/**
* @return {@code this}.
*/
@org.checkerframework.common.returnsreceiver.qual.This
@java.lang.SuppressWarnings("all")
public CheckerFrameworkBuilder.CheckerFrameworkBuilderBuilder y(CheckerFrameworkBuilder.@org.checkerframework.checker.calledmethods.qual.NotCalledMethods("y") CheckerFrameworkBuilderBuilder this, final int y) {
this.y = y;
return this;
}
/**
* @return {@code this}.
*/
@org.checkerframework.common.returnsreceiver.qual.This
@java.lang.SuppressWarnings("all")
public CheckerFrameworkBuilder.CheckerFrameworkBuilderBuilder z(CheckerFrameworkBuilder.@org.checkerframework.checker.calledmethods.qual.NotCalledMethods("z") CheckerFrameworkBuilderBuilder this, final int z) {
@@ -29,6 +29,9 @@ class CheckerFrameworkSuperBuilder {
@org.checkerframework.dataflow.qual.SideEffectFree
@java.lang.SuppressWarnings("all")
public abstract C build(CheckerFrameworkSuperBuilder.Parent.@org.checkerframework.checker.calledmethods.qual.CalledMethods({"y", "z"}) ParentBuilder<C, B> this);
/**
* @return {@code this}.
*/
@org.checkerframework.common.returnsreceiver.qual.This
@java.lang.SuppressWarnings("all")
public B x(CheckerFrameworkSuperBuilder.Parent.@org.checkerframework.checker.calledmethods.qual.NotCalledMethods("x") ParentBuilder<C, B> this, final int x) {
@@ -36,12 +39,18 @@ class CheckerFrameworkSuperBuilder {
x$set = true;
return self();
}
/**
* @return {@code this}.
*/
@org.checkerframework.common.returnsreceiver.qual.This
@java.lang.SuppressWarnings("all")
public B y(CheckerFrameworkSuperBuilder.Parent.@org.checkerframework.checker.calledmethods.qual.NotCalledMethods("y") ParentBuilder<C, B> this, final int y) {
this.y = y;
return self();
}
/**
* @return {@code this}.
*/
@org.checkerframework.common.returnsreceiver.qual.This
@java.lang.SuppressWarnings("all")
public B z(CheckerFrameworkSuperBuilder.Parent.@org.checkerframework.checker.calledmethods.qual.NotCalledMethods("z") ParentBuilder<C, B> this, final int z) {
@@ -147,6 +156,9 @@ class CheckerFrameworkSuperBuilder {
@java.lang.Override
@java.lang.SuppressWarnings("all")
public abstract C build(CheckerFrameworkSuperBuilder.ZChild.@org.checkerframework.checker.calledmethods.qual.CalledMethods("b") ZChildBuilder<C, B> this);
/**
* @return {@code this}.
*/
@org.checkerframework.common.returnsreceiver.qual.This
@java.lang.SuppressWarnings("all")
public B a(CheckerFrameworkSuperBuilder.ZChild.@org.checkerframework.checker.calledmethods.qual.NotCalledMethods("a") ZChildBuilder<C, B> this, final int a) {
@@ -154,6 +166,9 @@ class CheckerFrameworkSuperBuilder {
a$set = true;
return self();
}
/**
* @return {@code this}.
*/
@org.checkerframework.common.returnsreceiver.qual.This
@java.lang.SuppressWarnings("all")
public B b(CheckerFrameworkSuperBuilder.ZChild.@org.checkerframework.checker.calledmethods.qual.NotCalledMethods("b") ZChildBuilder<C, B> this, final int b) {
@@ -16,12 +16,18 @@ final class ConstructorsWithBuilderDefaults {
@java.lang.SuppressWarnings("all")
ConstructorsWithBuilderDefaultsBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public ConstructorsWithBuilderDefaults.ConstructorsWithBuilderDefaultsBuilder x(final int x) {
this.x$value = x;
x$set = true;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public ConstructorsWithBuilderDefaults.ConstructorsWithBuilderDefaultsBuilder y(final int y) {
this.y = y;
@@ -33,18 +33,27 @@ final class ConstructorsWithBuilderDefaults<T> {
@java.lang.SuppressWarnings("all")
ConstructorsWithBuilderDefaultsBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public ConstructorsWithBuilderDefaults.ConstructorsWithBuilderDefaultsBuilder<T> z(final java.util.List<T> z) {
this.z$value = z;
z$set = true;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public ConstructorsWithBuilderDefaults.ConstructorsWithBuilderDefaultsBuilder<T> x(final T x) {
this.x$value = x;
x$set = true;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public ConstructorsWithBuilderDefaults.ConstructorsWithBuilderDefaultsBuilder<T> q(final T q) {
this.q = q;
@@ -26,11 +26,17 @@ public class I2335_BuilderMultipleObtainVia {
@java.lang.SuppressWarnings("all")
I2335_BuilderMultipleObtainViaBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public I2335_BuilderMultipleObtainVia.I2335_BuilderMultipleObtainViaBuilder theString(final String theString) {
this.theString = theString;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public I2335_BuilderMultipleObtainVia.I2335_BuilderMultipleObtainViaBuilder theLong(final Long theLong) {
this.theLong = theLong;
@@ -16,6 +16,9 @@ public class JacksonJsonProperty {
@java.lang.SuppressWarnings("all")
JacksonJsonPropertyBuilder() {
}
/**
* @return {@code this}.
*/
@JsonProperty("kebab-case-prop")
@JsonSetter(nulls = Nulls.SKIP)
@java.lang.SuppressWarnings("all")
@@ -18,21 +18,33 @@ class JacksonizedBuilderComplex {
@java.lang.SuppressWarnings("all")
TestVoidName() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public JacksonizedBuilderComplex.TestVoidName<T> withNumber(final T number) {
this.number = number;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public JacksonizedBuilderComplex.TestVoidName<T> withArg2(final int arg2) {
this.arg2 = arg2;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public JacksonizedBuilderComplex.TestVoidName<T> withArg3(final String arg3) {
this.arg3 = arg3;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public JacksonizedBuilderComplex.TestVoidName<T> withSelfRef(final JacksonizedBuilderComplex selfRef) {
this.selfRef = selfRef;
@@ -23,11 +23,17 @@ class JacksonizedBuilderSimple<T> {
@java.lang.SuppressWarnings("all")
JacksonizedBuilderSimpleBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public JacksonizedBuilderSimple.JacksonizedBuilderSimpleBuilder<T> yes(final int yes) {
this.yes = yes;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public JacksonizedBuilderSimple.JacksonizedBuilderSimpleBuilder<T> also(final List<T> also) {
this.also = also;
@@ -11,6 +11,9 @@ public class JacksonizedSuperBuilderSimple {
protected abstract B self();
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B field1(final int field1) {
this.field1 = field1;
@@ -11,6 +11,9 @@ public class JacksonizedSuperBuilderWithJsonDeserialize {
protected abstract B self();
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B field1(final int field1) {
this.field1 = field1;
@@ -34,6 +34,9 @@ public class NullLibrary1 {
public NullLibrary1(final String foo) {
this.foo = foo;
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@org.eclipse.jdt.annotation.NonNull
@java.lang.SuppressWarnings("all")
public NullLibrary1 withFoo(final String foo) {
@@ -35,6 +35,9 @@ public class NullLibrary2 {
public NullLibrary2(final String foo) {
this.foo = foo;
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@org.springframework.lang.NonNull
@java.lang.SuppressWarnings("all")
public NullLibrary2 withFoo(final String foo) {
@@ -9,6 +9,9 @@ public class SuperBuilderAbstract {
protected abstract B self();
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B parentField(final int parentField) {
this.parentField = parentField;
@@ -57,6 +60,9 @@ public class SuperBuilderAbstract {
@java.lang.Override
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B childField(final double childField) {
this.childField = childField;
@@ -86,6 +92,9 @@ public class SuperBuilderAbstract {
@java.lang.Override
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B grandChildField(final String grandChildField) {
this.grandChildField = grandChildField;
@@ -18,6 +18,9 @@ public class SuperBuilderAbstractToBuilder {
protected abstract B self();
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B parentField(final int parentField) {
this.parentField = parentField;
@@ -81,6 +84,9 @@ public class SuperBuilderAbstractToBuilder {
@java.lang.Override
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B childField(final double childField) {
this.childField = childField;
@@ -121,6 +127,9 @@ public class SuperBuilderAbstractToBuilder {
@java.lang.Override
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B grandChildField(final String grandChildField) {
this.grandChildField = grandChildField;
@@ -13,6 +13,9 @@ public class SuperBuilderBasic {
protected abstract B self();
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B field1(final int field1) {
this.field1 = field1;
@@ -93,6 +96,9 @@ public class SuperBuilderBasic {
@java.lang.Override
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B field3(final double field3) {
this.field3 = field3;
@@ -41,21 +41,33 @@ public class SuperBuilderBasicToBuilder {
protected abstract B self();
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B field1(final int field1) {
this.field1 = field1;
return self();
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B obtainViaField(final int obtainViaField) {
this.obtainViaField = obtainViaField;
return self();
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B obtainViaMethod(final int obtainViaMethod) {
this.obtainViaMethod = obtainViaMethod;
return self();
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B obtainViaStaticMethod(final String obtainViaStaticMethod) {
this.obtainViaStaticMethod = obtainViaStaticMethod;
@@ -154,6 +166,9 @@ public class SuperBuilderBasicToBuilder {
@java.lang.Override
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B field3(final double field3) {
this.field3 = field3;
@@ -77,6 +77,9 @@ public class SuperBuilderCustomized {
@java.lang.Override
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B field2(final double field2) {
this.field2 = field2;
@@ -85,6 +85,9 @@ public class SuperBuilderNameClashes {
protected abstract B self();
@java.lang.SuppressWarnings("all")
public abstract C3 build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B c2(final C2 c2) {
this.c2 = c2;
@@ -13,6 +13,9 @@ public class SuperBuilderWithCustomBuilderMethod {
protected abstract B self();
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B field1(final A field1) {
this.field1 = field1;
@@ -96,6 +99,9 @@ public class SuperBuilderWithCustomBuilderMethod {
@java.lang.Override
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B field3(final double field3) {
this.field3 = field3;
@@ -25,12 +25,18 @@ public class SuperBuilderWithDefaults {
protected abstract B self();
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B millis(final long millis) {
this.millis$value = millis;
millis$set = true;
return self();
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B numberField(final N numberField) {
this.numberField$value = numberField;
@@ -89,6 +95,9 @@ public class SuperBuilderWithDefaults {
@java.lang.Override
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B doubleField(final double doubleField) {
this.doubleField$value = doubleField;
@@ -13,6 +13,9 @@ public class SuperBuilderWithGenerics {
protected abstract B self();
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B field1(final A field1) {
this.field1 = field1;
@@ -93,6 +96,9 @@ public class SuperBuilderWithGenerics {
@java.lang.Override
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B field3(final double field3) {
this.field3 = field3;
@@ -13,6 +13,9 @@ public class SuperBuilderWithGenerics2 {
protected abstract B self();
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B field1(final A field1) {
this.field1 = field1;
@@ -93,6 +96,9 @@ public class SuperBuilderWithGenerics2 {
@java.lang.Override
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B field3(final A field3) {
this.field3 = field3;
@@ -10,6 +10,9 @@ public class SuperBuilderWithGenerics3 {
protected abstract B self();
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B str(final String str) {
this.str = str;
@@ -60,6 +63,9 @@ public class SuperBuilderWithGenerics3 {
@java.lang.Override
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B field3(final double field3) {
this.field3 = field3;
@@ -25,6 +25,9 @@ public class SuperBuilderWithGenericsAndToBuilder {
protected abstract B self();
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B field1(final A field1) {
this.field1 = field1;
@@ -135,6 +138,9 @@ public class SuperBuilderWithGenericsAndToBuilder {
@java.lang.Override
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B field3(final double field3) {
this.field3 = field3;
@@ -17,6 +17,9 @@ public class SuperBuilderWithNonNull {
protected abstract B self();
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B nonNullParentField(@lombok.NonNull final String nonNullParentField) {
if (nonNullParentField == null) {
@@ -74,6 +77,9 @@ public class SuperBuilderWithNonNull {
@java.lang.Override
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B nonNullChildField(@lombok.NonNull final String nonNullChildField) {
if (nonNullChildField == null) {
@@ -14,11 +14,17 @@ class SuperBuilderWithPrefixes {
protected abstract B self();
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B field(final int field) {
this.field = field;
return self();
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B otherField(final int otherField) {
this.otherField = otherField;
@@ -41,21 +41,33 @@ public class SuperBuilderWithSetterPrefix {
protected abstract B self();
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B withField1(final int field1) {
this.field1 = field1;
return self();
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B withObtainViaField(final int obtainViaField) {
this.obtainViaField = obtainViaField;
return self();
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B withObtainViaMethod(final int obtainViaMethod) {
this.obtainViaMethod = obtainViaMethod;
return self();
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B withObtainViaStaticMethod(final String obtainViaStaticMethod) {
this.obtainViaStaticMethod = obtainViaStaticMethod;
@@ -154,6 +166,9 @@ public class SuperBuilderWithSetterPrefix {
@java.lang.Override
@java.lang.SuppressWarnings("all")
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public B setField3(final double field3) {
this.field3 = field3;
@@ -1,54 +1,39 @@
import java.util.regex.Pattern;
class Tolerate {
private Pattern pattern;
@lombok.experimental.Tolerate
public void setPattern(String pattern) {
setPattern(Pattern.compile(pattern));
}
@java.lang.SuppressWarnings("all")
public void setPattern(final Pattern pattern) {
this.pattern = pattern;
}
@java.lang.SuppressWarnings("all")
public Pattern getPattern() {
return this.pattern;
}
}
class Tolerate2 {
private final Pattern pattern;
@lombok.experimental.Tolerate
public Tolerate2 withPattern(String pattern) {
return withPattern(Pattern.compile(pattern));
}
public Tolerate2 withPattern(String nameGlob, String extensionGlob) {
return withPattern(nameGlob.replace("*", ".*") + "\\." + extensionGlob.replace("*", ".*"));
}
@java.lang.SuppressWarnings("all")
public Pattern getPattern() {
return this.pattern;
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
public Tolerate2 withPattern(final Pattern pattern) {
return this.pattern == pattern ? this : new Tolerate2(pattern);
}
@java.lang.SuppressWarnings("all")
public Tolerate2(final Pattern pattern) {
this.pattern = pattern;
@@ -32,6 +32,9 @@ class With5 {
}
With5(String foo) {
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
public With5 withFoo(final String foo) {
return this.foo == foo ? this : new With5(foo);
@@ -43,6 +46,9 @@ class With6 {
}
With6(String foo) {
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
public With6 withFoo(final String foo) {
return this.foo == foo ? this : new With6(foo);
@@ -11,10 +11,16 @@ class WithAndAllArgsConstructor<T, J extends T, L extends java.lang.Number> {
this.y = y;
this.z = z;
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
public WithAndAllArgsConstructor<T, J, L> withTest(final J test) {
return this.test == test ? this : new WithAndAllArgsConstructor<T, J, L>(test, this.test2, this.y, this.z);
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
public WithAndAllArgsConstructor<T, J, L> withTest2(final java.util.List<L> test2) {
return this.test2 == test2 ? this : new WithAndAllArgsConstructor<T, J, L>(this.test, test2, this.y, this.z);
@@ -1,5 +1,8 @@
abstract class WithMethodAbstract {
String foo;
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
public abstract WithMethodAbstract withFoo(final String foo);
}
@@ -7,6 +7,9 @@ class WithMethodMarkedDeprecated {
int javadoc;
WithMethodMarkedDeprecated(int annotation, int javadoc) {
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
public WithMethodMarkedDeprecated withAnnotation(final int annotation) {
@@ -3,6 +3,9 @@ class WithMethodMarkedDeprecatedAnnOnly {
int annotation;
WithMethodMarkedDeprecatedAnnOnly(int annotation) {
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
public WithMethodMarkedDeprecatedAnnOnly withAnnotation(final int annotation) {
@@ -5,6 +5,9 @@ public interface WithNested<Z> {
public IAmStaticReally(final String 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")
public WithNested.IAmStaticReally withX(final String x) {
return this.x == x ? this : new WithNested.IAmStaticReally(x);
@@ -3,6 +3,9 @@ class WithOnClass1 {
boolean isPublic;
WithOnClass1(boolean isNone, boolean isPublic) {
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
public WithOnClass1 withPublic(final boolean isPublic) {
return this.isPublic == isPublic ? this : new WithOnClass1(this.isNone, isPublic);
@@ -14,10 +17,16 @@ class WithOnClass2 {
boolean isPackage;
WithOnClass2(boolean isNone, boolean isProtected, boolean isPackage) {
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
protected WithOnClass2 withProtected(final boolean isProtected) {
return this.isProtected == isProtected ? this : new WithOnClass2(this.isNone, isProtected, this.isPackage);
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
WithOnClass2 withPackage(final boolean isPackage) {
return this.isPackage == isPackage ? this : new WithOnClass2(this.isNone, this.isProtected, isPackage);
@@ -29,10 +38,16 @@ class WithOnClass3 {
String nonNull;
WithOnClass3(String couldBeNull, String nonNull) {
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
public WithOnClass3 withCouldBeNull(final String couldBeNull) {
return this.couldBeNull == couldBeNull ? this : new WithOnClass3(couldBeNull, this.nonNull);
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
public WithOnClass3 withNonNull(@lombok.NonNull final String nonNull) {
if (nonNull == null) {
@@ -47,6 +62,9 @@ class WithOnClass4 {
WithOnClass4(int y) {
this.fY = y;
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
public WithOnClass4 withY(final int fY) {
return this.fY == fY ? this : new WithOnClass4(fY);
@@ -5,11 +5,17 @@ class WithPlain {
this.i = i;
this.foo = foo;
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@org.springframework.lang.NonNull
@java.lang.SuppressWarnings("all")
public WithPlain withI(final int i) {
return this.i == i ? this : new WithPlain(i, this.foo);
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@org.springframework.lang.NonNull
@java.lang.SuppressWarnings("all")
public WithPlain withFoo(final int foo) {
@@ -5,14 +5,23 @@ class WithWithGenerics<T, J extends T, L extends java.lang.Number> {
int $i;
public WithWithGenerics(J test, java.util.List<L> test2, java.util.List<? extends L> test3) {
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
public WithWithGenerics<T, J, L> withTest(final J test) {
return this.test == test ? this : new WithWithGenerics<T, J, L>(test, this.test2, this.test3);
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
public WithWithGenerics<T, J, L> withTest2(final java.util.List<L> test2) {
return this.test2 == test2 ? this : new WithWithGenerics<T, J, L>(this.test, test2, this.test3);
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
public WithWithGenerics<T, J, L> withTest3(final java.util.List<? extends L> test3) {
return this.test3 == test3 ? this : new WithWithGenerics<T, J, L>(this.test, this.test2, test3);
@@ -14,6 +14,9 @@ class WithWithTypeAnnos {
WithWithTypeAnnos(@TA @TB List<String> foo) {
this.foo = foo;
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
public WithWithTypeAnnos withFoo(@TA final List<String> foo) {
return this.foo == foo ? this : new WithWithTypeAnnos(foo);
@@ -7,22 +7,37 @@ class WitherAccessLevel {
boolean value;
WitherAccessLevel(boolean isNone, boolean isPrivate, boolean isPackage, boolean isProtected, boolean isPublic, boolean value) {
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
private WitherAccessLevel withPrivate(final boolean isPrivate) {
return this.isPrivate == isPrivate ? this : new WitherAccessLevel(this.isNone, isPrivate, this.isPackage, this.isProtected, this.isPublic, this.value);
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
WitherAccessLevel withPackage(final boolean isPackage) {
return this.isPackage == isPackage ? this : new WitherAccessLevel(this.isNone, this.isPrivate, isPackage, this.isProtected, this.isPublic, this.value);
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
protected WitherAccessLevel withProtected(final boolean isProtected) {
return this.isProtected == isProtected ? this : new WitherAccessLevel(this.isNone, this.isPrivate, this.isPackage, isProtected, this.isPublic, this.value);
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
public WitherAccessLevel withPublic(final boolean isPublic) {
return this.isPublic == isPublic ? this : new WitherAccessLevel(this.isNone, this.isPrivate, this.isPackage, this.isProtected, isPublic, this.value);
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
public WitherAccessLevel withValue(final boolean value) {
return this.value == value ? this : new WitherAccessLevel(this.isNone, this.isPrivate, this.isPackage, this.isProtected, this.isPublic, value);
@@ -3,6 +3,9 @@ class WitherLegacyStar {
WitherLegacyStar(int i) {
this.i = i;
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
public WitherLegacyStar withI(final int i) {
return this.i == i ? this : new WitherLegacyStar(i);
@@ -6,6 +6,9 @@ class AccessorsFluent {
public @java.lang.SuppressWarnings("all") String fieldName() {
return this.fieldName;
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") AccessorsFluent fieldName(final String fieldName) {
this.fieldName = fieldName;
return this;
@@ -17,6 +20,9 @@ class AccessorsFluent {
AccessorsFluentOnClass() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") AccessorsFluentOnClass fieldName(final String fieldName) {
this.fieldName = fieldName;
return this;
@@ -33,6 +39,9 @@ class AccessorsChain {
AccessorsChain() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") AccessorsChain setRunning(final boolean isRunning) {
this.isRunning = isRunning;
return this;
@@ -102,6 +111,9 @@ class AccessorsFluentGenerics<T extends Number> {
AccessorsFluentGenerics() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") AccessorsFluentGenerics<T> name(final String name) {
this.name = name;
return this;
@@ -24,6 +24,9 @@ class AccessorsConfiguration {
AccessorsConfiguration3() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") AccessorsConfiguration3 setFieldName(final String fFieldName) {
this.fFieldName = fFieldName;
return this;
@@ -9,18 +9,30 @@ class BuilderComplex {
@java.lang.SuppressWarnings("all") TestVoidName() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderComplex.TestVoidName<T> number(final T number) {
this.number = number;
return this;
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderComplex.TestVoidName<T> arg2(final int arg2) {
this.arg2 = arg2;
return this;
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderComplex.TestVoidName<T> arg3(final String arg3) {
this.arg3 = arg3;
return this;
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderComplex.TestVoidName<T> selfRef(final BuilderComplex selfRef) {
this.selfRef = selfRef;
return this;
@@ -16,10 +16,16 @@ class BuilderConstructorJavadoc<T> {
@java.lang.SuppressWarnings("all") BuilderConstructorJavadocBuilder() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderConstructorJavadoc.BuilderConstructorJavadocBuilder<T> basic(final int basic) {
this.basic = basic;
return this;
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderConstructorJavadoc.BuilderConstructorJavadocBuilder<T> multiline(final int multiline) {
this.multiline = multiline;
return this;
@@ -7,6 +7,9 @@ import java.util.List;
}
protected abstract @java.lang.SuppressWarnings("all") B self();
public abstract @java.lang.SuppressWarnings("all") C build();
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") B field(final int field) {
this.field = field;
return self();
@@ -10,15 +10,24 @@ public final @Value @Builder class BuilderDefaults {
@java.lang.SuppressWarnings("all") BuilderDefaultsBuilder() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderDefaults.BuilderDefaultsBuilder x(final int x) {
this.x$value = x;
x$set = true;
return this;
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderDefaults.BuilderDefaultsBuilder name(final String name) {
this.name = name;
return this;
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderDefaults.BuilderDefaultsBuilder z(final long z) {
this.z$value = z;
z$set = true;
@@ -11,16 +11,25 @@ public @Builder class BuilderDefaultsGenerics<N extends Number, T, R extends Lis
@java.lang.SuppressWarnings("all") BuilderDefaultsGenericsBuilder() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderDefaultsGenerics.BuilderDefaultsGenericsBuilder<N, T, R> callable(final java.util.concurrent.Callable<N> callable) {
this.callable$value = callable;
callable$set = true;
return this;
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderDefaultsGenerics.BuilderDefaultsGenericsBuilder<N, T, R> tee(final T tee) {
this.tee$value = tee;
tee$set = true;
return this;
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderDefaultsGenerics.BuilderDefaultsGenericsBuilder<N, T, R> arrr(final R arrr) {
this.arrr$value = arrr;
arrr$set = true;
@@ -8,10 +8,16 @@ public @Builder class BuilderDefaultsWarnings {
@java.lang.SuppressWarnings("all") BuilderDefaultsWarningsBuilder() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderDefaultsWarnings.BuilderDefaultsWarningsBuilder x(final long x) {
this.x = x;
return this;
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderDefaultsWarnings.BuilderDefaultsWarningsBuilder z(final int z) {
this.z = z;
return this;
@@ -8,10 +8,16 @@ class BuilderGenericMethod<T> {
@java.lang.SuppressWarnings("all") MapBuilder() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderGenericMethod<T>.MapBuilder<N> a(final int a) {
this.a = a;
return this;
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderGenericMethod<T>.MapBuilder<N> b(final long b) {
this.b = b;
return this;
@@ -8,18 +8,30 @@ class BuilderInstanceMethod<T> {
@java.lang.SuppressWarnings("all") StringBuilder() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderInstanceMethod<T>.StringBuilder show(final int show) {
this.show = show;
return this;
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderInstanceMethod<T>.StringBuilder yes(final int yes) {
this.yes = yes;
return this;
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderInstanceMethod<T>.StringBuilder also(final List<T> also) {
this.also = also;
return this;
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderInstanceMethod<T>.StringBuilder $andMe(final int $andMe) {
this.$andMe = $andMe;
return this;
@@ -6,10 +6,16 @@ import java.util.List;
@java.lang.SuppressWarnings("all") BuilderSimpleBuilder() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderSimple.BuilderSimpleBuilder<T> yes(final int yes) {
this.yes = yes;
return this;
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderSimple.BuilderSimpleBuilder<T> also(final List<T> also) {
this.also = also;
return this;
@@ -5,6 +5,9 @@ import java.util.List;
@java.lang.SuppressWarnings("all") BuilderSimpleWithSetterPrefixBuilder() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderSimpleWithSetterPrefix.BuilderSimpleWithSetterPrefixBuilder<T> withUnprefixed(final int unprefixed) {
this.unprefixed = unprefixed;
return this;
@@ -11,6 +11,9 @@ import java.util.List;
@java.lang.SuppressWarnings("all") BuilderTypeAnnosBuilder() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderTypeAnnos.BuilderTypeAnnosBuilder foo(final @TA List<String> foo) {
this.foo = foo;
return this;
@@ -11,6 +11,9 @@ import java.util.List;
@java.lang.SuppressWarnings("all") BuilderTypeAnnosWithSetterPrefixBuilder() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderTypeAnnosWithSetterPrefix.BuilderTypeAnnosWithSetterPrefixBuilder withFoo(final @TA List<String> foo) {
this.foo = foo;
return this;
@@ -7,18 +7,30 @@
@java.lang.SuppressWarnings("all") BuilderWithAccessorsBuilder() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderWithAccessors.BuilderWithAccessorsBuilder plower(final int plower) {
this.plower = plower;
return this;
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderWithAccessors.BuilderWithAccessorsBuilder upper(final int upper) {
this.upper = upper;
return this;
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderWithAccessors.BuilderWithAccessorsBuilder foo(final int foo) {
this.foo = foo;
return this;
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderWithAccessors.BuilderWithAccessorsBuilder _bar(final int _bar) {
this._bar = _bar;
return this;
@@ -5,10 +5,16 @@ public @lombok.Builder class BuilderWithBadNames {
@java.lang.SuppressWarnings("all") BuilderWithBadNamesBuilder() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderWithBadNames.BuilderWithBadNamesBuilder build(final String build) {
this.build = build;
return this;
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderWithBadNames.BuilderWithBadNamesBuilder toString(final String toString) {
this.toString = toString;
return this;
@@ -18,6 +18,9 @@ public @Builder class BuilderWithDeprecated {
this.dep1 = dep1;
return this;
}
/**
* @return {@code this}.
*/
public @java.lang.Deprecated @java.lang.SuppressWarnings("all") BuilderWithDeprecated.BuilderWithDeprecatedBuilder dep2(final int dep2) {
this.dep2 = dep2;
return this;
@@ -9,6 +9,9 @@ public @Builder class BuilderWithDeprecatedAnnOnly {
@java.lang.SuppressWarnings("all") BuilderWithDeprecatedAnnOnlyBuilder() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.Deprecated @java.lang.SuppressWarnings("all") BuilderWithDeprecatedAnnOnly.BuilderWithDeprecatedAnnOnlyBuilder dep1(final int dep1) {
this.dep1 = dep1;
return this;
@@ -9,10 +9,16 @@ class BuilderWithExistingBuilderClass<T, K extends Number> {
@java.lang.SuppressWarnings("all") BuilderWithExistingBuilderClassBuilder() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderWithExistingBuilderClass.BuilderWithExistingBuilderClassBuilder<Z> arg1(final Z arg1) {
this.arg1 = arg1;
return this;
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderWithExistingBuilderClass.BuilderWithExistingBuilderClassBuilder<Z> arg3(final String arg3) {
this.arg3 = arg3;
return this;
@@ -9,10 +9,16 @@ class BuilderWithExistingBuilderClassWithSetterPrefix<T, K extends Number> {
@java.lang.SuppressWarnings("all") BuilderWithExistingBuilderClassWithSetterPrefixBuilder() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderWithExistingBuilderClassWithSetterPrefix.BuilderWithExistingBuilderClassWithSetterPrefixBuilder<Z> withArg1(final Z arg1) {
this.arg1 = arg1;
return this;
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderWithExistingBuilderClassWithSetterPrefix.BuilderWithExistingBuilderClassWithSetterPrefixBuilder<Z> withArg3(final String arg3) {
this.arg3 = arg3;
return this;
@@ -5,6 +5,9 @@ import lombok.Builder;
@java.lang.SuppressWarnings("all") BuilderWithNoBuilderMethodBuilder() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderWithNoBuilderMethod.BuilderWithNoBuilderMethodBuilder a(final String a) {
this.a = a;
return this;
@@ -4,6 +4,9 @@
@java.lang.SuppressWarnings("all") BuilderWithNonNullBuilder() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderWithNonNull.BuilderWithNonNullBuilder id(final @lombok.NonNull String id) {
if ((id == null))
{
@@ -4,6 +4,9 @@
@java.lang.SuppressWarnings("all") BuilderWithNonNullWithSetterPrefixBuilder() {
super();
}
/**
* @return {@code this}.
*/
public @java.lang.SuppressWarnings("all") BuilderWithNonNullWithSetterPrefix.BuilderWithNonNullWithSetterPrefixBuilder withId(final @lombok.NonNull String id) {
if ((id == null))
{
Loaded 100 of 155 files, more files were not shown because too many files have changed in this diff. Show more