From d2f27e447dd886b62ab725fe57502f7a57bd576b Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Thu, 11 Sep 2014 15:47:53 -0300 Subject: [PATCH] ROASTER-34: Using JavaType.getQualifiedName() --- .../java/org/jboss/forge/roaster/model/impl/MethodImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/impl/src/main/java/org/jboss/forge/roaster/model/impl/MethodImpl.java b/impl/src/main/java/org/jboss/forge/roaster/model/impl/MethodImpl.java index bb7bc32d..c6da2774 100644 --- a/impl/src/main/java/org/jboss/forge/roaster/model/impl/MethodImpl.java +++ b/impl/src/main/java/org/jboss/forge/roaster/model/impl/MethodImpl.java @@ -720,7 +720,7 @@ public MethodSource removeParameter(JavaType type, String name) ParameterSource parameter = null; for (ParameterSource param : getParameters()) { - if (param.getType().isType(type.getCanonicalName()) && param.getName().equals(name)) + if (param.getType().isType(type.getQualifiedName()) && param.getName().equals(name)) { parameter = param; break;