File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
test-support/learning-examples/src/main/java/de/learnlib/testsupport/example/dfa Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2222import de .learnlib .testsupport .example .DefaultLearningExample .DefaultDFALearningExample ;
2323import de .learnlib .testsupport .example .LearningExample .DFALearningExample ;
2424import net .automatalib .automaton .fsa .impl .CompactDFA ;
25+ import net .automatalib .common .util .IOUtil ;
2526import net .automatalib .serialization .learnlibv2 .LearnLibV2Serialization ;
2627import org .checkerframework .checker .nullness .qual .Nullable ;
2728import 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 ) {
You can’t perform that action at this time.
0 commit comments