Skip to content

Commit

Permalink
Fix build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Jul 4, 2024
1 parent d19041a commit e54d18b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ else if (mapping instanceof LeafMapping && mapping.getFragment1() instanceof Sta
else {
VariableDeclarationContainer sourceOperation = extractOperationRefactoring.getSourceOperationBeforeExtraction();
Method sourceMethod = Method.of(sourceOperation, parentVersion);
Block leftBlock = Block.of(matchedBlockFromSourceMethod, sourceMethod);
Block leftBlock = Block.of(matchedBlockFromSourceMethod instanceof StatementObject ? (StatementObject) matchedBlockFromSourceMethod : (CompositeStatementObject) matchedBlockFromSourceMethod, sourceMethod);
if(extractMatches == 0) {
blocks.add(leftBlock);
}
Expand Down

0 comments on commit e54d18b

Please sign in to comment.