diff --git a/src/main/java/gr/uom/java/xmi/decomposition/AbstractCall.java b/src/main/java/gr/uom/java/xmi/decomposition/AbstractCall.java index 17a456ad0..a73dda552 100644 --- a/src/main/java/gr/uom/java/xmi/decomposition/AbstractCall.java +++ b/src/main/java/gr/uom/java/xmi/decomposition/AbstractCall.java @@ -588,6 +588,10 @@ public boolean renamedWithNoExpressionAndArgumentIntersection(AbstractCall call, } private boolean oneNameContainsTheOther(AbstractCall call) { + return this.getName().contains(call.getName()) || call.getName().contains(this.getName()); + } + + private boolean oneNameContainsTheOtherLowerCase(AbstractCall call) { return this.getName().contains(call.getName()) || call.getName().contains(this.getName()) || this.getName().toLowerCase().contains(call.getName().toLowerCase()) || call.getName().toLowerCase().contains(this.getName().toLowerCase()); @@ -923,7 +927,7 @@ public boolean identicalWithInlinedStatements(AbstractCall call, Set argumentIntersection = argumentIntersection(call); @@ -942,7 +946,7 @@ else if(getExpression() == null && call.getExpression() != null && (identicalNam } } } - else if(getExpression() != null && call.getExpression() == null && (identicalName(call) || oneNameContainsTheOther(call))) { + else if(getExpression() != null && call.getExpression() == null && (identicalName(call) || oneNameContainsTheOtherLowerCase(call))) { int argumentIndex2 = call.arguments().indexOf(getExpression()); if(argumentIndex2 != -1) { Set argumentIntersection = argumentIntersection(call);