Skip to content

Commit

Permalink
Merge pull request #570 from alecharp/fix/java-21-support
Browse files Browse the repository at this point in the history
[JENKINS-71957] Fix support for Java 21
  • Loading branch information
rantoniuk committed Sep 8, 2023
2 parents 7be5d1b + 4ac4120 commit 0f08314
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Jenkinsfile
Expand Up @@ -2,5 +2,6 @@
buildPlugin(useContainerAgent: true, configurations: [
[platform: 'linux', jdk: 11],
[platform: 'windows', jdk: 11],
[platform: 'linux', jdk: 17]
[platform: 'linux', jdk: 17],
[platform: 'linux', jdk: 21]
])
Expand Up @@ -21,6 +21,7 @@
import hudson.model.Result;
import hudson.tasks.BuildWrapper;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.HashMap;
Expand Down Expand Up @@ -62,8 +63,7 @@ public class JiraCreateReleaseNotesTest {
@Mock
JiraSite site;

@Mock
private PrintWriter printWriter;
private final PrintWriter printWriter = new PrintWriter(OutputStream.nullOutputStream());

@Mock
JiraSession session;
Expand Down

0 comments on commit 0f08314

Please sign in to comment.