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 2ddcd26941..56d4981d8e 100644 --- a/src/main/java/gr/uom/java/xmi/decomposition/OperationInvocation.java +++ b/src/main/java/gr/uom/java/xmi/decomposition/OperationInvocation.java @@ -306,10 +306,6 @@ else if(arg.charAt(i) == '\n' || arg.charAt(i) == '{') { } inferredArgumentTypes.add(UMLType.extractTypeObject(type)); } - else if(arg.endsWith(".INSTANCE") || arg.endsWith(".instance()") || arg.endsWith(".getInstance()")) { - String type = arg.substring(0, arg.lastIndexOf(".")); - inferredArgumentTypes.add(UMLType.extractTypeObject(type)); - } else if(indexOfOpeningParenthesis == 0 && arg.contains(")") && !arg.contains(JAVA.LAMBDA_ARROW) && !arg.contains(JAVA.METHOD_REFERENCE) && arg.indexOf(")") < arg.length()) { String cast = arg.substring(indexOfOpeningParenthesis + 1, arg.indexOf(")")); if(cast.charAt(0) != '(') {