mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 22:17:41 +00:00
Added support for checking if an annotation parameter is explicitly mentioned. This functionality is used in quite a few places, so generalized it.
This commit is contained in:
1 parent
780a17e583
commit
6b7919166e
1 file changed
+4
@@ -298,6 +298,10 @@ public class AnnotationValues<A extends Annotation> {
|
||||
return v == null ? Collections.<String>emptyList() : v.raws;
|
||||
}
|
||||
|
||||
public boolean isExplicit(String annotationMethodName) {
|
||||
return values.get(annotationMethodName) != null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenience method to return the first result in a {@link #getRawExpressions(String)} call.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user