mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-11 12:19:00 +00:00
fix compile
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user