Skip to content

Commit

Permalink
cr
Browse files Browse the repository at this point in the history
  • Loading branch information
radeusgd committed May 25, 2022
1 parent 1d0df66 commit f1f142c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ public TypeInferringParser(

@Override
public Object parseSingleValue(String text, ProblemAggregator problemAggregator) {
SimplifiedProblemAggregator internal = new SimplifiedProblemAggregator();
for (IncrementalDatatypeParser parser : baseParsers) {
internal.reset();
SimplifiedProblemAggregator internal = new SimplifiedProblemAggregator();
Object result = parser.parseSingleValue(text, internal);
if (!internal.hasProblems()) {
return result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ public boolean hasProblems() {
return hasProblems;
}

public void reset() {
hasProblems = false;
}

@Override
public List<ParsingProblem> getAggregatedProblems() {
throw new IllegalStateException("Problem aggregation is not available in this implementation.");
Expand Down

0 comments on commit f1f142c

Please sign in to comment.