Skip to content

Commit 2345eea

Browse files
committed
bump AutomataLib version
1 parent e5e6d39 commit 2345eea

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

examples/src/main/java/de/learnlib/example/aaar/AlternatingBitExampleExplicit.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private AlternatingBitExampleExplicit() {
5656
// prevent instantiation
5757
}
5858

59-
public static void main(String[] args) throws IOException {
59+
public static void main(String[] args) throws IOException, InterruptedException {
6060

6161
final Protocol mqo = new Protocol();
6262

@@ -86,7 +86,7 @@ public static void main(String[] args) throws IOException {
8686
}
8787

8888
private static <AI, CI, O> void printInfo(ExplicitAAARLearnerMealy<? extends OTLearnerMealy<CI, O>, AI, CI, O> learner)
89-
throws IOException {
89+
throws IOException, InterruptedException {
9090

9191
System.out.println("-------------------------------------------------------");
9292
new ObservationTableASCIIWriter<>().write(learner.getLearner().getObservationTable(), System.out);

examples/src/main/java/de/learnlib/example/aaar/AlternatingBitExampleGeneric.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ private AlternatingBitExampleGeneric() {
5050
// prevent instantiation
5151
}
5252

53-
public static void main(String[] args) throws IOException {
53+
public static void main(String[] args) throws IOException, InterruptedException {
5454

5555
final Protocol mqo = new Protocol();
5656

@@ -79,7 +79,7 @@ public static void main(String[] args) throws IOException {
7979
}
8080

8181
private static <AI, CI, O> void printInfo(GenericAAARLearnerMealy<? extends OTLearnerMealy<CI, O>, AI, CI, O> learner)
82-
throws IOException {
82+
throws IOException, InterruptedException {
8383

8484
System.out.println("-------------------------------------------------------");
8585
new ObservationTableASCIIWriter<>().write(learner.getLearner().getObservationTable(), System.out);

examples/src/test/java/de/learnlib/example/ExamplesTest.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
import de.learnlib.example.aaar.AlternatingBitExampleExplicit;
2929
import de.learnlib.example.aaar.AlternatingBitExampleGeneric;
30-
import net.automatalib.common.util.system.JVMUtil;
3130
import net.automatalib.modelchecker.ltsmin.LTSminUtil;
3231
import net.automatalib.modelchecker.ltsmin.LTSminVersion;
3332
import org.mockito.MockedStatic;
@@ -61,7 +60,7 @@ public void testAAARAlternatingBitExampleGeneric() throws InterruptedException,
6160
SwingUtilities.invokeAndWait(() -> {
6261
try {
6362
AlternatingBitExampleGeneric.main(new String[0]);
64-
} catch (IOException e) {
63+
} catch (IOException | InterruptedException e) {
6564
throw new RuntimeException(e);
6665
}
6766
});
@@ -73,7 +72,7 @@ public void testAAARAlternatingBitExampleExplicit() throws InterruptedException,
7372
SwingUtilities.invokeAndWait(() -> {
7473
try {
7574
AlternatingBitExampleExplicit.main(new String[0]);
76-
} catch (IOException e) {
75+
} catch (IOException | InterruptedException e) {
7776
throw new RuntimeException(e);
7877
}
7978
});
@@ -174,11 +173,11 @@ public void testExample3() throws InvocationTargetException, InterruptedExceptio
174173
}
175174

176175
private static boolean isJVMCompatible() {
177-
return JVMUtil.getCanonicalSpecVersion() == 11;
176+
return Runtime.version().feature() == 11;
178177
}
179178

180179
private static void requireJVMCompatibility() {
181-
if (JVMUtil.getCanonicalSpecVersion() != 11) {
180+
if (Runtime.version().feature() != 11) {
182181
throw new SkipException("The headless AWT environment currently only works with Java 11 or <=8");
183182
}
184183
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ limitations under the License.
250250
<tidy-pom.version>1.3.0</tidy-pom.version>
251251

252252
<!-- dependency versions -->
253-
<automatalib.version>0.12.0</automatalib.version>
253+
<automatalib.version>0.13.0-SNAPSHOT</automatalib.version>
254254
<build-tools.version>0.1.1</build-tools.version>
255255
<cacio.version>1.11.1</cacio.version>
256256
<checkerframework.version>3.48.3</checkerframework.version>

0 commit comments

Comments
 (0)