Skip to content

Commit

Permalink
Fixed issue with duplicate instances
Browse files Browse the repository at this point in the history
  • Loading branch information
bbchristians committed May 23, 2020
1 parent a3eed0f commit 4f895ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
File renamed without changes.
5 changes: 3 additions & 2 deletions src/main/java/edu/rit/se/satd/SATDMiner.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,9 @@ private List<DiffPair> getAllDiffPairs(RepositoryCommitReference curRef) {
* @return the SATDDifference object
*/
private SATDDifference mapSATDInstanceLikeness(SATDDifference diff) {
diff.getSatdInstances()
.forEach(satdInstance -> {
diff.getSatdInstances().stream()
.distinct()
.forEach(satdInstance -> {
switch (satdInstance.getResolution()) {
case SATD_ADDED:
// SATD was added, so we know it won't relate to other instances
Expand Down

0 comments on commit 4f895ee

Please sign in to comment.