Skip to content

Commit 4bca8a8

Browse files
committed
[java] Stop using features introduced in Java 9+
1 parent a65b9dd commit 4bca8a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

java/client/src/org/openqa/selenium/tools/MavenPublisher.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
package org.openqa.selenium.tools;
1919

2020
import com.google.common.base.Splitter;
21+
import com.google.common.collect.ImmutableList;
2122
import com.google.common.hash.HashCode;
2223
import com.google.common.hash.Hashing;
2324
import com.google.common.io.ByteStreams;
@@ -204,7 +205,7 @@ private static byte[] sign(Credentials credentials, String fileName, byte[] data
204205
Path dir = Files.createTempDirectory("maven-sign");
205206
Path file = dir.resolve(fileName + ".asc");
206207

207-
List<String> args = List.of(
208+
List<String> args = ImmutableList.of(
208209
"gpg", "-ab", "--batch",
209210
"-o", file.toAbsolutePath().toString());
210211

0 commit comments

Comments
 (0)