Skip to content

Commit

Permalink
Enable detection of Extract Variable in commit
Browse files Browse the repository at this point in the history
apache/iceberg@f091112
core/src/test/java/org/apache/iceberg/TestMetrics.java
  • Loading branch information
tsantalis committed Jan 19, 2025
1 parent 688075b commit 16eb011
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 16eb011

Please sign in to comment.