OPENJPA-1662: Save a runtime typecast.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1084944 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Pinaki Poddar 2011-03-24 13:14:33 +00:00
parent 9b5fa5152a
commit f1c1c78787

View File

@ -204,7 +204,9 @@ public class AnnotationProcessor6 extends AbstractProcessor {
if (active && !roundEnv.processingOver()) {
Set<? extends Element> elements = roundEnv.getRootElements();
for (Element e : elements) {
process((TypeElement) e);
if (e instanceof TypeElement) {
process((TypeElement) e);
}
}
}
return true;