Skip to content

Commit 3e5c33d

Browse files
committed
adjust to AutomataLib refactorings
1 parent fd769e5 commit 3e5c33d

File tree

1 file changed

+2
-1
lines changed
  • test-support/learning-examples/src/main/java/de/learnlib/testsupport/example/dfa

1 file changed

+2
-1
lines changed

test-support/learning-examples/src/main/java/de/learnlib/testsupport/example/dfa/DFABenchmarks.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import de.learnlib.testsupport.example.DefaultLearningExample.DefaultDFALearningExample;
2323
import de.learnlib.testsupport.example.LearningExample.DFALearningExample;
2424
import net.automatalib.automaton.fsa.impl.CompactDFA;
25+
import net.automatalib.common.util.IOUtil;
2526
import net.automatalib.serialization.learnlibv2.LearnLibV2Serialization;
2627
import org.checkerframework.checker.nullness.qual.Nullable;
2728
import org.slf4j.Logger;
@@ -42,7 +43,7 @@ private DFABenchmarks() {
4243
if (resourceStream == null) {
4344
LOGGER.info(Category.SYSTEM, "Couldn't find resource '{}'", resourceName);
4445
} else {
45-
try (InputStream is = resourceStream) {
46+
try (InputStream is = IOUtil.asUncompressedBufferedInputStream(resourceStream)) {
4647
CompactDFA<Integer> dfa = LearnLibV2Serialization.getInstance().readGenericDFA(is);
4748
return new DefaultDFALearningExample<>(dfa);
4849
} catch (IOException ex) {

0 commit comments

Comments
 (0)