diff --git a/src/main/java/gr/uom/java/xmi/decomposition/StringBasedHeuristics.java b/src/main/java/gr/uom/java/xmi/decomposition/StringBasedHeuristics.java index 06c3ef18c..333829231 100644 --- a/src/main/java/gr/uom/java/xmi/decomposition/StringBasedHeuristics.java +++ b/src/main/java/gr/uom/java/xmi/decomposition/StringBasedHeuristics.java @@ -2473,6 +2473,9 @@ else if(initializer1 != null && initializer1.getExpression().equals(replacement. if(typeReplacement && !type1.compatibleTypes(type2) && variableRename && (initializerReplacement || nullInitializer || zeroArgumentClassInstantiation || classInstantiationArgumentReplacement)) { return true; } + if(type1.equals(type2) && type1.getClassType().equals("int") && variableRename && initializerReplacement) { + return true; + } } return false; }