Skip to content

Commit

Permalink
Remove tagging interface IReportComparator which broke mvn exec:java
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswhocodes committed Dec 13, 2016
1 parent 363f1f5 commit 43ef410
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 19 deletions.
Expand Up @@ -7,11 +7,11 @@


import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.Comparator;
import java.util.List; import java.util.List;


import org.adoptopenjdk.jitwatch.compilation.AbstractCompilationVisitable; import org.adoptopenjdk.jitwatch.compilation.AbstractCompilationVisitable;
import org.adoptopenjdk.jitwatch.model.IReadOnlyJITDataModel; import org.adoptopenjdk.jitwatch.model.IReadOnlyJITDataModel;
import org.adoptopenjdk.jitwatch.report.comparator.IReportComparator;
import org.adoptopenjdk.jitwatch.treevisitor.ITreeVisitable; import org.adoptopenjdk.jitwatch.treevisitor.ITreeVisitable;
import org.adoptopenjdk.jitwatch.treevisitor.TreeVisitor; import org.adoptopenjdk.jitwatch.treevisitor.TreeVisitor;


Expand All @@ -26,7 +26,7 @@ public AbstractReportBuilder(IReadOnlyJITDataModel model)
reportList = new ArrayList<>(); reportList = new ArrayList<>();
} }


public List<Report> getReports(IReportComparator comparator) public List<Report> getReports(Comparator<Report> comparator)
{ {
TreeVisitor.walkTree(model, this); TreeVisitor.walkTree(model, this);


Expand Down

This file was deleted.

Expand Up @@ -5,9 +5,11 @@
*/ */
package org.adoptopenjdk.jitwatch.report.comparator; package org.adoptopenjdk.jitwatch.report.comparator;


import java.util.Comparator;

import org.adoptopenjdk.jitwatch.report.Report; import org.adoptopenjdk.jitwatch.report.Report;


public class MemberComparator implements IReportComparator public class MemberComparator implements Comparator<Report>
{ {
@Override @Override
public int compare(Report o1, Report o2) public int compare(Report o1, Report o2)
Expand Down
Expand Up @@ -5,9 +5,11 @@
*/ */
package org.adoptopenjdk.jitwatch.report.comparator; package org.adoptopenjdk.jitwatch.report.comparator;


import java.util.Comparator;

import org.adoptopenjdk.jitwatch.report.Report; import org.adoptopenjdk.jitwatch.report.Report;


public class ScoreComparator implements IReportComparator public class ScoreComparator implements Comparator<Report>
{ {


@Override @Override
Expand Down

0 comments on commit 43ef410

Please sign in to comment.