Skip to content

Commit

Permalink
Fix generic argument constraints lookup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Atsushi Eno committed Oct 11, 2011
1 parent 621549d commit 00c1c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JavaClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ static Element getTypeParametersNode (Document doc, TypeVariable<Method>[] 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))
Expand Down

0 comments on commit 00c1c09

Please sign in to comment.