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;