Skip to content

Commit

Permalink
Merge pull request #27 from smeyer198/master
Browse files Browse the repository at this point in the history
Update actions to run with Java 11
  • Loading branch information
schlichtig authored Aug 12, 2024
2 parents 57bd72e + b0fdd3b commit 3171ee4
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
name: Sparse SPDS deployment
steps:
- name: Checkout source code
uses: actions/checkout@v3
uses: actions/checkout@v4
# Sets up Java version
- name: Set up Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-package: 'jdk'
java-version: '8'
java-version: '11'
server-id: 'ossrh' # must match the serverId configured for the nexus-staging-maven-plugin
server-username: OSSRH_USERNAME # Env var that holds your OSSRH user name
server-password: OSSRH_PASSWORD # Env var that holds your OSSRH user pw
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ jobs:
BuildAndTest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 1.8
distribution: 'adopt'
java-package: jdk
java-version: '11'
- name: Build with Maven
run: mvn -B verify --file pom.xml -P ci
4 changes: 2 additions & 2 deletions boomerangPDS/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,13 @@ protected boolean isControlStmt(Unit stmt) {
protected void removeStmt(MutableGraph<Unit> mCFG, Unit unit) {
Set<Unit> preds = mCFG.predecessors(unit);
List<Unit> tmpPreds = new ArrayList<>();
preds.forEach(e->tmpPreds.add(e));
preds.forEach(e -> tmpPreds.add(e));
Set<Unit> succs = mCFG.successors(unit);
List<Unit> tmpSuccs = new ArrayList<>();
succs.forEach(e->tmpSuccs.add(e));
succs.forEach(e -> tmpSuccs.add(e));
if (tmpPreds.size() == 1 && tmpSuccs.size() == 1) {
mCFG.removeNode(unit);
mCFG.putEdge(tmpPreds.get(0), tmpSuccs.get(0));
}
}

}
2 changes: 1 addition & 1 deletion idealPDS/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<artifactId>slf4j-simple</artifactId>
</dependency>
</dependencies>
<profiles>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ public VectorStateMachine() {
Parameter.This,
States.NOT_EMPTY,
Type.OnCall));
addTransition(
new MatcherTransition(
States.NOT_EMPTY, ADD_ELEMENT_METHODS, Parameter.This, States.NOT_EMPTY, Type.OnCall));

addTransition(
new MatcherTransition(
Expand Down
1 change: 0 additions & 1 deletion idealPDS/src/test/java/typestate/tests/StackTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
@SuppressWarnings("deprecation")
public class StackTest extends IDEALTestingFramework {

@Ignore("Broken since refactoring scope")
@Test
public void test1() {
Stack s = new Stack();
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.33</version>
<artifactId>slf4j-simple</artifactId>
<version>2.0.16</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
Expand Down

0 comments on commit 3171ee4

Please sign in to comment.