Skip to content

Commit 5ef89f4

Browse files
committed
Merge merged PR 740 : Fix exception
2 parents c5bdca0 + 0b05bd8 commit 5ef89f4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/AndroidAnnotationProcessor.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ public synchronized void init(ProcessingEnvironment processingEnv) {
7777
loadApiPropertyFile();
7878
} catch (Exception e) {
7979
messager.printMessage(Diagnostic.Kind.ERROR, "AndroidAnnotations processing failed: " + e.getMessage());
80-
throw new RuntimeException("AndroidAnnotations processing failed", e);
8180
}
8281

8382
timeStats.setMessager(messager);
@@ -258,11 +257,6 @@ private void handleException(Set<? extends TypeElement> annotations, RoundEnviro
258257
if (iterator.hasNext()) {
259258
Element element = roundEnv.getElementsAnnotatedWith(iterator.next()).iterator().next();
260259
messager.printMessage(Diagnostic.Kind.ERROR, errorMessage, element);
261-
} else {
262-
// Sometime this is a total mess and javac could not even find one
263-
// element on which we could print the error. So we should just
264-
// throw an exception and let it go.
265-
throw new RuntimeException("An error occured and couldn't be printed on an element: " + errorMessage);
266260
}
267261
}
268262

0 commit comments

Comments
 (0)