You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1- Extract And Move Method package toDetailsString() : String extracted from public toDetailsString() : String in class com.graphhopper.storage.GraphHopperStorage & moved to class com.graphhopper.storage.BaseGraph
2- Move Attribute private nodeCount : int from class com.graphhopper.storage.GraphHopperStorage to protected nodeCount : int from class com.graphhopper.storage.BaseGraph
Description
The replacement within the aforementioned Extract and Move Method is “nodeCount -> getNodes()”. The thing is the nodeCount attribute has been moved to the destination class (BaseGraph) and reported by RefactoringMiner. This attribute also got encapsulated in the getNodes() method within the destination class, but this is not reported by the RefactoringMiner. This is a case of Encapsulate Attribute on top of the Move Attribute Refactoring.
Also note that this change is a pure and justifiable modification. Having the Encapsulate Attribute Refactoring will allow the PurityChecker to report the Extract and Move Method refactoring as a pure case.
The text was updated successfully, but these errors were encountered:
Problem
Missing Encapsulate Attribute refactoring while Move Attribute refactoring happened
Commit
graphhopper/graphhopper@7f80425
Refactorings involved
1- Extract And Move Method package toDetailsString() : String extracted from public toDetailsString() : String in class com.graphhopper.storage.GraphHopperStorage & moved to class com.graphhopper.storage.BaseGraph
2- Move Attribute private nodeCount : int from class com.graphhopper.storage.GraphHopperStorage to protected nodeCount : int from class com.graphhopper.storage.BaseGraph
Description
The replacement within the aforementioned Extract and Move Method is “nodeCount -> getNodes()”. The thing is the
nodeCount
attribute has been moved to the destination class (BaseGraph) and reported by RefactoringMiner. This attribute also got encapsulated in thegetNodes()
method within the destination class, but this is not reported by the RefactoringMiner. This is a case of Encapsulate Attribute on top of the Move Attribute Refactoring.Also note that this change is a pure and justifiable modification. Having the Encapsulate Attribute Refactoring will allow the PurityChecker to report the Extract and Move Method refactoring as a pure case.
The text was updated successfully, but these errors were encountered: