aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/javac/handlers/HandleEqualsAndHashCode.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-10-18 17:37:03 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-10-18 17:37:03 +0200
commit4da08ce3ccdd94f48856bd77b3dff50a77c150b1 (patch)
tree20f61c2a5eb73a0fa6cf47db744bb932c1eff28e /src/lombok/javac/handlers/HandleEqualsAndHashCode.java
parentbd3966af0e5d2ce948bf22dcb99227e0df5c6f13 (diff)
downloadlombok-4da08ce3ccdd94f48856bd77b3dff50a77c150b1.tar.gz
lombok-4da08ce3ccdd94f48856bd77b3dff50a77c150b1.tar.bz2
lombok-4da08ce3ccdd94f48856bd77b3dff50a77c150b1.zip
Removed some warnings.
Diffstat (limited to 'src/lombok/javac/handlers/HandleEqualsAndHashCode.java')
-rw-r--r--src/lombok/javac/handlers/HandleEqualsAndHashCode.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lombok/javac/handlers/HandleEqualsAndHashCode.java b/src/lombok/javac/handlers/HandleEqualsAndHashCode.java
index 12eed02b..f1eae2a7 100644
--- a/src/lombok/javac/handlers/HandleEqualsAndHashCode.java
+++ b/src/lombok/javac/handlers/HandleEqualsAndHashCode.java
@@ -123,7 +123,9 @@ public class HandleEqualsAndHashCode implements JavacAnnotationHandler<EqualsAnd
if (callSuper == null) {
try {
callSuper = ((Boolean)EqualsAndHashCode.class.getMethod("callSuper").getDefaultValue()).booleanValue();
- } catch (Exception ignore) {}
+ } catch (Exception ignore) {
+ throw new InternalError("Lombok bug - this cannot happen - can't find callSuper field in EqualsAndHashCode annotation.");
+ }
}
JCTree extending = ((JCClassDecl)typeNode.get()).extending;