Skip to content

Commit fafcc83

Browse files
committed
[java] fix formatting and match other driver service constructors
1 parent 2382951 commit fafcc83

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

java/src/org/openqa/selenium/safari/SafariDriverService.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,14 @@ public SafariDriverService(
6161
}
6262

6363
public SafariDriverService(
64-
File executable,
65-
int port,
66-
Duration timeout,
67-
List<String> args,
68-
Map<String, String> environment) throws IOException {
69-
super(executable, port, timeout, args, environment);
64+
File executable,
65+
int port,
66+
Duration timeout,
67+
List<String> args,
68+
Map<String, String> environment) throws IOException {
69+
super(executable, port, timeout,
70+
unmodifiableList(new ArrayList<>(args)),
71+
unmodifiableMap(new HashMap<>(environment)));
7072
}
7173

7274
public static SafariDriverService createDefaultService() {

0 commit comments

Comments
 (0)