-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added infrastructure for reporting merged blocks
- Loading branch information
Showing
4 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/main/java/org/codetracker/change/block/MergeBlock.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.codetracker.change.block; | ||
|
||
import org.refactoringminer.api.Refactoring; | ||
|
||
public class MergeBlock extends BlockChange { | ||
private final Refactoring refactoring; | ||
|
||
public MergeBlock(Refactoring refactoring) { | ||
super(Type.BLOCK_MERGE); | ||
this.refactoring = refactoring; | ||
} | ||
|
||
public Refactoring getSplitRefactoring() { | ||
return refactoring; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return refactoring.toString(); | ||
} | ||
} |