RefactoringMiner icon indicating copy to clipboard operation
RefactoringMiner copied to clipboard

Missing statement (block) mapping

Open pedramnoori opened this issue 2 years ago • 0 comments

Problem

Missing block and composite statement mapping within an Extract and Move Method refactoring

Commit

https://github.com/querydsl/querydsl/commit/e1aa31cff985e2a0c2babf4da96dc0a538d5e514

Refactoring

Extract And Move Method public asLiteral(constant Object) : String extracted from public visitLiteral(constant Object) : void in class com.querydsl.jpa.JPQLSerializer & moved to class com.querydsl.jpa.JPQLTemplates

Description

There are three pairs of Composite statements (if statement and corresponding blocks) which have been reported in non-mapped nodes. According to the manual validation, these statements need to be matched together. Details are as follows:

1- { Line 340, parent version should be mapped with { Line 199, child version 2- { Line 344, parent version should be mapped with { Line 201, child version 2- if(constant instanceof Enum<?>) Line 340, parent version should be mapped with if(constant instanceof Enum) Line 199, child version

pedramnoori avatar May 08 '23 17:05 pedramnoori