fix compile

This commit is contained in:
Jan Rieke committed 2025-03-28 17:43:11 +01:00
1 parent 5c2ddc8ddb
commit 66a6c5a883
1 file changed
+1 -3
@@ -60,8 +60,6 @@ import org.eclipse.jdt.internal.compiler.ast.TypeReference;
import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants;
import org.eclipse.jdt.internal.compiler.lookup.TypeIds;
import com.google.common.collect.Lists;
/**
* Handles the {@code lombok.Setter} annotation for eclipse.
*/
@@ -116,7 +114,7 @@ public class HandleSetter extends EclipseAnnotationHandler<Setter> {
// If a fluent setter should be generated, force-copy annotations from the field.
AnnotationValues<Accessors> accessorsForField = EclipseHandlerUtil.getAccessorsForField(fieldNode);
Annotation[] copyableToSetterAnnotations = findCopyableToSetterAnnotations(fieldNode, accessorsForField.isExplicit("fluent"));
onMethod = Lists.newArrayList(onMethod);
onMethod = new ArrayList<Annotation>(onMethod);
onMethod.addAll(Arrays.asList(copyableToSetterAnnotations));
createSetterForField(level, fieldNode, sourceNode, false, onMethod, onParam);