aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/HandlerLibrary.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2012-04-02 23:02:55 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2012-04-03 00:04:31 +0200
commit5e0e78d57e3bab646c2bd451fc044748f5b08e5b (patch)
treeb21b0947736b6ba64686598ae7737474e0039551 /src/core/lombok/javac/HandlerLibrary.java
parentc900526ebf620dcf4f92e7d6c8f7d529900ee666 (diff)
downloadlombok-5e0e78d57e3bab646c2bd451fc044748f5b08e5b.tar.gz
lombok-5e0e78d57e3bab646c2bd451fc044748f5b08e5b.tar.bz2
lombok-5e0e78d57e3bab646c2bd451fc044748f5b08e5b.zip
Philipp Eichhorn's patch to allow non-top-level annotations to work with lombok's annotation framework.
Diffstat (limited to 'src/core/lombok/javac/HandlerLibrary.java')
-rw-r--r--src/core/lombok/javac/HandlerLibrary.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/lombok/javac/HandlerLibrary.java b/src/core/lombok/javac/HandlerLibrary.java
index 35abac6f..9666c9d5 100644
--- a/src/core/lombok/javac/HandlerLibrary.java
+++ b/src/core/lombok/javac/HandlerLibrary.java
@@ -108,8 +108,9 @@ public class HandlerLibrary {
Class<? extends Annotation> annotationClass =
SpiLoadUtil.findAnnotationClass(handler.getClass(), JavacAnnotationHandler.class);
AnnotationHandlerContainer<?> container = new AnnotationHandlerContainer(handler, annotationClass);
- if (lib.annotationHandlers.put(container.annotationClass.getName(), container) != null) {
- lib.javacWarning("Duplicate handlers for annotation type: " + container.annotationClass.getName());
+ String annotationClassName = container.annotationClass.getName().replace("$", ".");
+ if (lib.annotationHandlers.put(annotationClassName, container) != null) {
+ lib.javacWarning("Duplicate handlers for annotation type: " + annotationClassName);
}
lib.typeLibrary.addType(container.annotationClass.getName());
}