From 00c1c0935a447257260c8ce506b0ef9e8695d623 Mon Sep 17 00:00:00 2001 From: Atsushi Eno Date: Tue, 11 Oct 2011 16:13:41 +0900 Subject: [PATCH] Fix generic argument constraints lookup. --- JavaClass.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JavaClass.java b/JavaClass.java index 92b66f7..d90abd3 100644 --- a/JavaClass.java +++ b/JavaClass.java @@ -350,7 +350,7 @@ static Element getTypeParametersNode (Document doc, TypeVariable[] tps) for (TypeVariable tp : tps) { Element tp_elem = doc.createElement ("typeParameter"); tp_elem.setAttribute ("name", tp.getName ()); - if (tp.getBounds ().length != 1 || tp.getBounds () [0].equals (Object.class)) { + if (tp.getBounds ().length != 1 || !tp.getBounds () [0].equals (Object.class)) { Element tcs_elem = doc.createElement ("genericConstraints"); for (Type tc : tp.getBounds ()) { if (tc.equals (Object.class))