Skip to content

Commit

Permalink
Adapt trackers to RMiner API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Dec 26, 2024
1 parent 9f39879 commit 635a67e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import gr.uom.java.xmi.UMLAnnotation;
import gr.uom.java.xmi.UMLAttribute;
import gr.uom.java.xmi.UMLEnumConstant;
import gr.uom.java.xmi.UMLOperation;
import gr.uom.java.xmi.VariableDeclarationContainer;
import gr.uom.java.xmi.decomposition.UMLOperationBodyMapper;
import gr.uom.java.xmi.diff.AddAttributeAnnotationRefactoring;
Expand Down Expand Up @@ -485,8 +484,8 @@ private boolean isAdded(Pair<VariableDeclarationContainer, VariableDeclarationCo

public boolean checkRefactoredMethod(Version currentVersion, Version parentVersion, Predicate<Method> equalMethod, Annotation rightAnnotation, List<Refactoring> refactorings) {
for (Refactoring refactoring : refactorings) {
UMLOperation operationBefore = null;
UMLOperation operationAfter = null;
VariableDeclarationContainer operationBefore = null;
VariableDeclarationContainer operationAfter = null;
UMLOperationBodyMapper umlOperationBodyMapper = null;
switch (refactoring.getRefactoringType()) {
case PULL_UP_OPERATION: {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/codetracker/BlockTrackerChangeHistory.java
Original file line number Diff line number Diff line change
Expand Up @@ -1311,8 +1311,8 @@ private boolean isAdded(UMLOperationBodyMapper umlOperationBodyMapper, Version c

public boolean checkRefactoredMethod(Version currentVersion, Version parentVersion, Predicate<Method> equalMethod, Block rightBlock, List<Refactoring> refactorings) {
for (Refactoring refactoring : refactorings) {
UMLOperation operationBefore = null;
UMLOperation operationAfter = null;
VariableDeclarationContainer operationBefore = null;
VariableDeclarationContainer operationAfter = null;
UMLOperationBodyMapper umlOperationBodyMapper = null;
switch (refactoring.getRefactoringType()) {
case PULL_UP_OPERATION: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import com.github.difflib.patch.InsertDelta;
import com.github.difflib.patch.Patch;

import gr.uom.java.xmi.UMLOperation;
import gr.uom.java.xmi.VariableDeclarationContainer;
import gr.uom.java.xmi.LocationInfo.CodeElementType;
import gr.uom.java.xmi.UMLAnonymousClass;
Expand Down Expand Up @@ -806,8 +805,8 @@ private boolean isAdded(UMLAbstractClassDiff classDiff, Version currentVersion,

public boolean checkRefactoredMethod(Version currentVersion, Version parentVersion, Predicate<Method> equalMethod, Comment rightComment, List<Refactoring> refactorings) {
for (Refactoring refactoring : refactorings) {
UMLOperation operationBefore = null;
UMLOperation operationAfter = null;
VariableDeclarationContainer operationBefore = null;
VariableDeclarationContainer operationAfter = null;
UMLOperationBodyMapper umlOperationBodyMapper = null;
switch (refactoring.getRefactoringType()) {
case PULL_UP_OPERATION: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ private Set<Variable> analyseVariableRefactorings(Collection<Refactoring> refact

public boolean checkRefactoredMethod(Version currentVersion, Version parentVersion, Predicate<Method> equalMethod, Variable rightVariable, List<Refactoring> refactorings) {
for (Refactoring refactoring : refactorings) {
UMLOperation operationAfter = null;
VariableDeclarationContainer operationAfter = null;
UMLOperationBodyMapper umlOperationBodyMapper = null;
switch (refactoring.getRefactoringType()) {
case PULL_UP_OPERATION: {
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/blame/blameTestWithLocalRepo21.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,7 @@ e0a5913f8 pmd/src/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver
6215d97b9 pmd/src/net/sourceforge/pmd/typeresolution/ClassTypeResolver.java (Allan Caplan 2006-10-26 02:35:38 +0000 1305) }
6215d97b9 pmd/src/net/sourceforge/pmd/typeresolution/ClassTypeResolver.java (Allan Caplan 2006-10-26 02:35:38 +0000 1306) if (qualifiedName != null) {
6215d97b9 pmd/src/net/sourceforge/pmd/typeresolution/ClassTypeResolver.java (Allan Caplan 2006-10-26 02:35:38 +0000 1307) try {
6215d97b9 pmd/src/net/sourceforge/pmd/typeresolution/ClassTypeResolver.java (Allan Caplan 2006-10-26 02:35:38 +0000 1308) /*
881218544 pmd/src/net/sourceforge/pmd/typeresolution/ClassTypeResolver.java (Allan Caplan 2007-02-03 12:48:12 +0000 1308) /*
881218544 pmd/src/net/sourceforge/pmd/typeresolution/ClassTypeResolver.java (Allan Caplan 2007-02-03 12:48:12 +0000 1309) * TODO - the map right now contains just class names. if we
881218544 pmd/src/net/sourceforge/pmd/typeresolution/ClassTypeResolver.java (Allan Caplan 2007-02-03 12:48:12 +0000 1310) * use a map of classname/class then we don't have to hit
881218544 pmd/src/net/sourceforge/pmd/typeresolution/ClassTypeResolver.java (Allan Caplan 2007-02-03 12:48:12 +0000 1311) * the class loader for every type - much faster
Expand Down

0 comments on commit 635a67e

Please sign in to comment.