From 8ef75e082d6571bfc31a580b6e9614889cf37044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Wa=C5=9Bko?= Date: Tue, 24 May 2022 15:34:49 +0200 Subject: [PATCH] cr --- .../main/java/org/enso/table/parsing/TypeInferringParser.java | 3 +-- .../table/parsing/problems/SimplifiedProblemAggregator.java | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/std-bits/table/src/main/java/org/enso/table/parsing/TypeInferringParser.java b/std-bits/table/src/main/java/org/enso/table/parsing/TypeInferringParser.java index c4b1d47d11ce4..9d0c71912f9c8 100644 --- a/std-bits/table/src/main/java/org/enso/table/parsing/TypeInferringParser.java +++ b/std-bits/table/src/main/java/org/enso/table/parsing/TypeInferringParser.java @@ -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; diff --git a/std-bits/table/src/main/java/org/enso/table/parsing/problems/SimplifiedProblemAggregator.java b/std-bits/table/src/main/java/org/enso/table/parsing/problems/SimplifiedProblemAggregator.java index 2d20813520fb0..6977288bfb418 100644 --- a/std-bits/table/src/main/java/org/enso/table/parsing/problems/SimplifiedProblemAggregator.java +++ b/std-bits/table/src/main/java/org/enso/table/parsing/problems/SimplifiedProblemAggregator.java @@ -26,10 +26,6 @@ public boolean hasProblems() { return hasProblems; } - public void reset() { - hasProblems = false; - } - @Override public List getAggregatedProblems() { throw new IllegalStateException("Problem aggregation is not available in this implementation.");