Skip to content

Commit

Permalink
Enable Extract Variable detection in commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Dec 17, 2024
1 parent 838ead3 commit 7ef9e17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ else if(container1.getBodyHashCode() != container2.getBodyHashCode() && !contain
if(statement.getVariableDeclarations().size() > 0) {
VariableDeclaration declaration = statement.getVariableDeclarations().get(0);
AbstractExpression initializer = declaration.getInitializer();
if(initializer != null && (initializer.getMethodInvocations().size() > 0 || initializer.getCreations().size() > 0)) {
if(initializer != null && (initializer.getMethodInvocations().size() > 0 || initializer.getCreations().size() > 0 || initializer.getTypeLiterals().size() > 0)) {
for(AbstractCodeFragment nonMappedLeaf1 : nonMappedLeavesT1) {
boolean matchingVariableDeclaration = false;
List<VariableDeclaration> declarations1 = nonMappedLeaf1.getVariableDeclarations();
Expand Down

0 comments on commit 7ef9e17

Please sign in to comment.