Skip to content

Commit

Permalink
Restored Java 8 compatibility (Fixes #809)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebourg committed Feb 16, 2025
1 parent 8579447 commit 673102f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
max-parallel: 2
matrix:
os: [ ubuntu-latest, windows-latest ]
java: [ 11, 21 ]
java: [ 8, 21 ]
runs-on: ${{ matrix.os }}
steps:

Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.release>11</maven.compiler.release>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<maven.compiler.release>8</maven.compiler.release>
<maven.scope>provided</maven.scope>
<maven.version>3.9.8</maven.version>
<maven.plugin.version>3.15.1</maven.plugin.version>
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/vafer/jdeb/DebMakerTestCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ public void testConstantModifiedTime() throws Exception {
@Test
public void testErrorPropagation() throws Exception {
File deb = File.createTempFile("jdeb", ".deb");
DebMaker maker = new DebMaker(new NullConsole(), List.of(new UseNullAsInputStream()), null);
DebMaker maker = new DebMaker(new NullConsole(), Arrays.asList(new UseNullAsInputStream()), null);
maker.setEncoding(StandardCharsets.UTF_8);
maker.setControl(new File(getClass().getResource("deb/control").toURI()));
maker.setDeb(deb);
Expand All @@ -526,7 +526,7 @@ public void testChangesValidation() throws Exception {
File changesSave = File.createTempFile("changesSave", ".txt");
File directory = new File(getClass().getResource("deb/data").toURI());

DebMaker maker = new DebMaker(new NullConsole(), List.of(new UseNullAsInputStream()), null);
DebMaker maker = new DebMaker(new NullConsole(), Arrays.asList(new UseNullAsInputStream()), null);
maker.setEncoding(StandardCharsets.UTF_8);
assertThrows(PackagingException.class, maker::validate);

Expand Down

0 comments on commit 673102f

Please sign in to comment.