Skip to content

Commit f3dfb7f

Browse files
committed
Breaking redundant dependency on guava
1 parent edf69ff commit f3dfb7f

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

java/client/src/org/openqa/selenium/io/BUCK

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ java_library(
44
deps = [
55
'//java/client/src/org/openqa/selenium:exceptions',
66
'//java/client/src/org/openqa/selenium:platform',
7-
'//third_party/java/guava:guava',
87
],
98
visibility = [
109
'//java/client/src/org/openqa/selenium:selenium',

java/client/src/org/openqa/selenium/io/FileHandler.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818

1919
package org.openqa.selenium.io;
2020

21-
import com.google.common.collect.Lists;
22-
2321
import org.openqa.selenium.Platform;
2422

2523
import java.io.File;
@@ -28,6 +26,7 @@
2826
import java.io.IOException;
2927
import java.io.InputStream;
3028
import java.nio.file.Files;
29+
import java.util.Arrays;
3130
import java.util.List;
3231

3332
/**
@@ -48,7 +47,7 @@ private static InputStream locateResource(Class<?> forClassLoader, String name)
4847
throws IOException {
4948
String arch = System.getProperty("os.arch").toLowerCase() + "/";
5049
List<String> alternatives =
51-
Lists.newArrayList(name, "/" + name, arch + name, "/" + arch + name);
50+
Arrays.asList(name, "/" + name, arch + name, "/" + arch + name);
5251
if (Platform.getCurrent().is(Platform.MAC)) {
5352
alternatives.add("mac/" + name);
5453
alternatives.add("/mac/" + name);

0 commit comments

Comments
 (0)