|
1 | 1 | package cucumber.runtime;
|
2 | 2 |
|
3 |
| -import cucumber.api.Result; |
4 |
| -import cucumber.api.TestCase; |
5 |
| -import cucumber.api.TestStep; |
6 | 3 | import cucumber.api.event.EventHandler;
|
7 | 4 | import cucumber.api.event.EventListener;
|
8 | 5 | import cucumber.api.event.EventPublisher;
|
@@ -32,7 +29,6 @@ public class UndefinedStepsTracker implements EventListener {
|
32 | 29 | private final Map<String, String> pathToSourceMap = new HashMap<String, String>();
|
33 | 30 | private final Map<String, FeatureStepMap> pathToStepMap = new HashMap<String, FeatureStepMap>();
|
34 | 31 | private boolean hasUndefinedSteps = false;
|
35 |
| - private String currentUri; |
36 | 32 |
|
37 | 33 | private EventHandler<TestSourceRead> testSourceReadHandler = new EventHandler<TestSourceRead>() {
|
38 | 34 | @Override
|
@@ -160,21 +156,21 @@ private String convertToCodeKeyword(String keyword) {
|
160 | 156 | return keyword.replaceAll("[\\s',!]", "");
|
161 | 157 | }
|
162 | 158 |
|
163 |
| - private class FeatureStepMap { |
164 |
| - public final GherkinDialect dialect; |
165 |
| - public final Map<Integer, StepNode> stepMap; |
| 159 | + private static final class FeatureStepMap { |
| 160 | + final GherkinDialect dialect; |
| 161 | + final Map<Integer, StepNode> stepMap; |
166 | 162 |
|
167 |
| - public FeatureStepMap(GherkinDialect dialect, Map<Integer, StepNode> stepMap) { |
| 163 | + FeatureStepMap(GherkinDialect dialect, Map<Integer, StepNode> stepMap) { |
168 | 164 | this.dialect = dialect;
|
169 | 165 | this.stepMap = stepMap;
|
170 | 166 | }
|
171 | 167 | }
|
172 | 168 |
|
173 |
| - private class StepNode { |
174 |
| - public final Step step; |
175 |
| - public final StepNode previous; |
| 169 | + private static final class StepNode { |
| 170 | + final Step step; |
| 171 | + final StepNode previous; |
176 | 172 |
|
177 |
| - public StepNode(Step step, StepNode previous) { |
| 173 | + StepNode(Step step, StepNode previous) { |
178 | 174 | this.step = step;
|
179 | 175 | this.previous = previous;
|
180 | 176 | }
|
|
0 commit comments