|
22 | 22 | package lombok.eclipse.handlers;
|
23 | 23 |
|
24 | 24 | import static lombok.core.handlers.HandlerUtil.*;
|
25 |
| -import static lombok.eclipse.Eclipse.*; |
26 | 25 | import static lombok.eclipse.EcjAugments.*;
|
| 26 | +import static lombok.eclipse.Eclipse.*; |
27 | 27 | import static lombok.eclipse.handlers.EclipseHandlerUtil.EclipseReflectiveMembers.*;
|
28 | 28 |
|
29 | 29 | import java.lang.reflect.Array;
|
|
60 | 60 | import org.eclipse.jdt.internal.compiler.ast.DoubleLiteral;
|
61 | 61 | import org.eclipse.jdt.internal.compiler.ast.EqualExpression;
|
62 | 62 | import org.eclipse.jdt.internal.compiler.ast.Expression;
|
63 |
| -import org.eclipse.jdt.internal.compiler.ast.ExtendedStringLiteral; |
64 | 63 | import org.eclipse.jdt.internal.compiler.ast.FalseLiteral;
|
65 | 64 | import org.eclipse.jdt.internal.compiler.ast.FieldDeclaration;
|
66 | 65 | import org.eclipse.jdt.internal.compiler.ast.FieldReference;
|
|
86 | 85 | import org.eclipse.jdt.internal.compiler.ast.SingleTypeReference;
|
87 | 86 | import org.eclipse.jdt.internal.compiler.ast.Statement;
|
88 | 87 | import org.eclipse.jdt.internal.compiler.ast.StringLiteral;
|
89 |
| -import org.eclipse.jdt.internal.compiler.ast.StringLiteralConcatenation; |
90 | 88 | import org.eclipse.jdt.internal.compiler.ast.ThisReference;
|
91 | 89 | import org.eclipse.jdt.internal.compiler.ast.ThrowStatement;
|
92 | 90 | import org.eclipse.jdt.internal.compiler.ast.TrueLiteral;
|
|
123 | 121 | import lombok.core.debug.ProblemReporter;
|
124 | 122 | import lombok.core.handlers.HandlerUtil;
|
125 | 123 | import lombok.core.handlers.HandlerUtil.FieldAccess;
|
| 124 | +import lombok.core.handlers.HandlerUtil.JavadocTag; |
126 | 125 | import lombok.eclipse.EcjAugments;
|
127 | 126 | import lombok.eclipse.Eclipse;
|
128 | 127 | import lombok.eclipse.EclipseAST;
|
@@ -416,20 +415,6 @@ private static Expression copyAnnotationMemberValue0(Expression in) {
|
416 | 415 | if (in instanceof LongLiteral) return LongLiteral.buildLongLiteral(((Literal) in).source(), s, e);
|
417 | 416 |
|
418 | 417 | if (in instanceof StringLiteral) return new StringLiteral(((Literal) in).source(), s, e, reflectInt(STRING_LITERAL__LINE_NUMBER, in) + 1);
|
419 |
| - if (in instanceof ExtendedStringLiteral) { |
420 |
| - StringLiteral str = new StringLiteral(((Literal) in).source(), s, e, reflectInt(STRING_LITERAL__LINE_NUMBER, in) + 1); |
421 |
| - StringLiteral empty = new StringLiteral(new char[0], s, e, reflectInt(STRING_LITERAL__LINE_NUMBER, in) + 1); |
422 |
| - return new ExtendedStringLiteral(str, empty); |
423 |
| - } |
424 |
| - if (in instanceof StringLiteralConcatenation) { |
425 |
| - Expression[] literals = ((StringLiteralConcatenation) in).literals; |
426 |
| - // 0 and 1 len shouldn't happen. |
427 |
| - if (literals.length == 0) return new StringLiteral(new char[0], s, e, 0); |
428 |
| - if (literals.length == 1) return copyAnnotationMemberValue0(literals[0]); |
429 |
| - StringLiteralConcatenation c = new StringLiteralConcatenation((StringLiteral) literals[0], (StringLiteral) literals[1]); |
430 |
| - for (int i = 2; i < literals.length; i++) c = c.extendsWith((StringLiteral) literals[i]); |
431 |
| - return c; |
432 |
| - } |
433 | 418 |
|
434 | 419 | // enums and field accesses (as long as those are references to compile time constant literals that's also acceptable)
|
435 | 420 |
|
|
0 commit comments