mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-18 10:14:58 +00:00
bugfix in the javac implementation of AnnotationValues.
This commit is contained in:
1 parent
d0116a8efe
commit
bcf6f51cd3
1 file changed
+4
-2
@@ -125,10 +125,12 @@ public class Javac {
|
||||
|
||||
values.put(name, new AnnotationValue(node, raws, guesses, isExplicit) {
|
||||
@Override public void setError(String message, int valueIdx) {
|
||||
node.addError(message, positions.get(valueIdx));
|
||||
if ( valueIdx < 0 ) node.addError(message);
|
||||
else node.addError(message, positions.get(valueIdx));
|
||||
}
|
||||
@Override public void setWarning(String message, int valueIdx) {
|
||||
node.addWarning(message, positions.get(valueIdx));
|
||||
if ( valueIdx < 0 ) node.addWarning(message);
|
||||
else node.addWarning(message, positions.get(valueIdx));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user