Skip to content

Commit 42889d7

Browse files
committed
Run format.sh. No logical changes
1 parent 839a598 commit 42889d7

File tree

5 files changed

+16
-14
lines changed

5 files changed

+16
-14
lines changed

java/src/org/openqa/selenium/chrome/ChromeDriverService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,14 @@
2222
import static org.openqa.selenium.remote.Browser.CHROME;
2323

2424
import com.google.auto.service.AutoService;
25+
import com.google.common.io.ByteStreams;
2526
import java.io.File;
2627
import java.io.IOException;
2728
import java.time.Duration;
2829
import java.util.ArrayList;
2930
import java.util.HashMap;
3031
import java.util.List;
3132
import java.util.Map;
32-
33-
import com.google.common.io.ByteStreams;
3433
import org.openqa.selenium.Capabilities;
3534
import org.openqa.selenium.WebDriverException;
3635
import org.openqa.selenium.chromium.ChromiumDriverLogLevel;
@@ -329,7 +328,8 @@ protected List<String> createArgs() {
329328
if (Boolean.TRUE.equals(appendLog)) {
330329
args.add("--append-log");
331330
}
332-
withLogOutput(ByteStreams.nullOutputStream()); // Do not overwrite log file in getLogOutput()
331+
withLogOutput(
332+
ByteStreams.nullOutputStream()); // Do not overwrite log file in getLogOutput()
333333
}
334334

335335
if (logLevel != null) {

java/src/org/openqa/selenium/edge/EdgeDriverService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,14 @@
2323
import static org.openqa.selenium.remote.Browser.EDGE;
2424

2525
import com.google.auto.service.AutoService;
26+
import com.google.common.io.ByteStreams;
2627
import java.io.File;
2728
import java.io.IOException;
2829
import java.time.Duration;
2930
import java.util.ArrayList;
3031
import java.util.HashMap;
3132
import java.util.List;
3233
import java.util.Map;
33-
34-
import com.google.common.io.ByteStreams;
3534
import org.openqa.selenium.Capabilities;
3635
import org.openqa.selenium.WebDriverException;
3736
import org.openqa.selenium.chromium.ChromiumDriverLogLevel;
@@ -297,7 +296,8 @@ protected List<String> createArgs() {
297296
if (Boolean.TRUE.equals(appendLog)) {
298297
args.add("--append-log");
299298
}
300-
withLogOutput(ByteStreams.nullOutputStream()); // Do not overwrite log file in getLogOutput()
299+
withLogOutput(
300+
ByteStreams.nullOutputStream()); // Do not overwrite log file in getLogOutput()
301301
}
302302

303303
if (logLevel != null) {

java/src/org/openqa/selenium/manager/SeleniumManager.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,14 @@ private static Result runCommand(Path binary, List<String> arguments) {
127127
if (!output.isEmpty()) {
128128
try {
129129
jsonOutput = new Json().toType(output, SeleniumManagerOutput.class);
130-
jsonOutput.getLogs().forEach(logged -> {
131-
Level currentLevel = logged.getLevel() == Level.INFO ? Level.FINE : logged.getLevel();
132-
LOG.log(currentLevel, logged.getMessage());
133-
});
130+
jsonOutput
131+
.getLogs()
132+
.forEach(
133+
logged -> {
134+
Level currentLevel =
135+
logged.getLevel() == Level.INFO ? Level.FINE : logged.getLevel();
136+
LOG.log(currentLevel, logged.getMessage());
137+
});
134138
dump = jsonOutput.getResult().getMessage();
135139
} catch (JsonException e) {
136140
failedToParse = e;

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import static org.openqa.selenium.remote.Browser.SAFARI;
2424

2525
import com.google.auto.service.AutoService;
26+
import com.google.common.io.ByteStreams;
2627
import java.io.File;
2728
import java.io.IOException;
2829
import java.time.Duration;
@@ -31,8 +32,6 @@
3132
import java.util.HashMap;
3233
import java.util.List;
3334
import java.util.Map;
34-
35-
import com.google.common.io.ByteStreams;
3635
import org.openqa.selenium.Capabilities;
3736
import org.openqa.selenium.WebDriverException;
3837
import org.openqa.selenium.net.PortProber;

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import static org.openqa.selenium.remote.Browser.SAFARI_TECH_PREVIEW;
2424

2525
import com.google.auto.service.AutoService;
26+
import com.google.common.io.ByteStreams;
2627
import java.io.File;
2728
import java.io.IOException;
2829
import java.time.Duration;
@@ -31,8 +32,6 @@
3132
import java.util.HashMap;
3233
import java.util.List;
3334
import java.util.Map;
34-
35-
import com.google.common.io.ByteStreams;
3635
import org.openqa.selenium.Capabilities;
3736
import org.openqa.selenium.WebDriverException;
3837
import org.openqa.selenium.net.PortProber;

0 commit comments

Comments
 (0)