diff --git a/src/main/java/gr/uom/java/xmi/decomposition/OperationInvocation.java b/src/main/java/gr/uom/java/xmi/decomposition/OperationInvocation.java index d30634010..2dbf8b6ac 100644 --- a/src/main/java/gr/uom/java/xmi/decomposition/OperationInvocation.java +++ b/src/main/java/gr/uom/java/xmi/decomposition/OperationInvocation.java @@ -589,6 +589,12 @@ private static boolean collectionMatch(UMLType parameterType, UMLType type) { if(typeArgument.toString().length() == 1 && Character.isUpperCase(typeArgument.toString().charAt(0))) { return true; } + if(type.getTypeArguments().size() == 1) { + UMLType typeArgument2 = type.getTypeArguments().get(0); + if(typeArgument2.getClassType().equals(typeArgument.getClassType())) { + return true; + } + } } } }