|
21 | 21 | package com.github.gumtreediff.matchers;
|
22 | 22 |
|
23 | 23 | import java.util.Arrays;
|
| 24 | +import java.util.HashSet; |
24 | 25 | import java.util.List;
|
25 | 26 | import java.util.Set;
|
26 | 27 |
|
|
39 | 40 | import com.github.gumtreediff.matchers.optimizations.LeafMoveMatcherThetaE;
|
40 | 41 | import com.github.gumtreediff.matchers.optimizations.UnmappedLeavesMatcherThetaC;
|
41 | 42 | import com.github.gumtreediff.tree.Tree;
|
42 |
| -import com.google.common.collect.Sets; |
43 | 43 |
|
44 | 44 | /**
|
45 | 45 | * A class defining the CompositeMatcher class, which is a pipeline of matchers.
|
@@ -73,28 +73,28 @@ public List<Matcher> matchers() {
|
73 | 73 |
|
74 | 74 | @Override
|
75 | 75 | public Set<ConfigurationOptions> getApplicableOptions() {
|
76 |
| - Set<ConfigurationOptions> allOptions = Sets.newHashSet(); |
| 76 | + Set<ConfigurationOptions> allOptions = new HashSet<>(); |
77 | 77 | for (Matcher matcher : matchers)
|
78 | 78 | allOptions.addAll(matcher.getApplicableOptions());
|
79 | 79 |
|
80 | 80 | return allOptions;
|
81 | 81 | }
|
82 | 82 | }
|
83 | 83 |
|
84 |
| - @Register(id = "gumtree", priority = Registry.Priority.MAXIMUM) |
85 |
| - public static class ClassicGumtree extends CompositeMatcher { |
86 |
| - public ClassicGumtree() { |
87 |
| - super(new GreedySubtreeMatcher(), new GreedyBottomUpMatcher()); |
88 |
| - } |
89 |
| - } |
90 |
| - |
91 | 84 | @Register(id = "gumtree-simple", priority = Registry.Priority.HIGH)
|
92 | 85 | public static class SimpleGumtree extends CompositeMatcher {
|
93 | 86 | public SimpleGumtree() {
|
94 | 87 | super(new GreedySubtreeMatcher(), new SimpleBottomUpMatcher());
|
95 | 88 | }
|
96 | 89 | }
|
97 | 90 |
|
| 91 | + @Register(id = "gumtree-classic", priority = Registry.Priority.HIGH) |
| 92 | + public static class ClassicGumtree extends CompositeMatcher { |
| 93 | + public ClassicGumtree() { |
| 94 | + super(new GreedySubtreeMatcher(), new GreedyBottomUpMatcher()); |
| 95 | + } |
| 96 | + } |
| 97 | + |
98 | 98 | @Register(id = "gumtree-simple-stable", priority = Registry.Priority.HIGH)
|
99 | 99 | public static class SimpleGumtreeStable extends CompositeMatcher {
|
100 | 100 | public SimpleGumtreeStable() {
|
|
0 commit comments