RefactoringMiner icon indicating copy to clipboard operation
RefactoringMiner copied to clipboard

Missing block mapping

Open pedramnoori opened this issue 2 years ago • 0 comments

Problem

Missing a block mapping within an Extract and Move Method refactoring

Commit

https://github.com/google/guava/commit/31fc19200207ccadc45328037d8a2a62b617c029

Refactoring

Extract And Move Method public tryParse(string String, radix int) : Long extracted from package tryParse(string String, radix int) : Integer in class com.google.common.primitives.Ints & moved to class com.google.common.primitives.Longs

Description

There is only one block statement reported in the nonMappedInnerNodesT2. According to the manual validation and the discussion we had in the meeting, the reported refactoring is correct. Even though the tryParse method already exist within the destination class, it's not a perfect match for the target method. In fact, the method tryParse(string String, radix int) is truly extracted and moved from Ints to Longs class.

pedramnoori avatar May 08 '23 17:05 pedramnoori