From 609b43c824f4db788880d7156c66eae1da4a2c87 Mon Sep 17 00:00:00 2001 From: titusfortner Date: Sat, 16 Sep 2023 23:11:14 -0500 Subject: [PATCH] [java] fix linting failures --- .../selenium/devtools/v117/v117Javascript.java | 3 ++- .../openqa/selenium/devtools/v117/v117Log.java | 5 ++--- .../selenium/devtools/v117/v117Network.java | 15 +++++++-------- .../openqa/selenium/devtools/v117/v117Target.java | 7 +++---- 4 files changed, 14 insertions(+), 16 deletions(-) diff --git a/java/src/org/openqa/selenium/devtools/v117/v117Javascript.java b/java/src/org/openqa/selenium/devtools/v117/v117Javascript.java index dd86d84f2cb71..f1a1a730e78e0 100644 --- a/java/src/org/openqa/selenium/devtools/v117/v117Javascript.java +++ b/java/src/org/openqa/selenium/devtools/v117/v117Javascript.java @@ -65,7 +65,8 @@ protected Command disablePage() { @Override protected Command addScriptToEvaluateOnNewDocument(String script) { - return Page.addScriptToEvaluateOnNewDocument(script, Optional.empty(), Optional.empty(), Optional.empty()); + return Page.addScriptToEvaluateOnNewDocument( + script, Optional.empty(), Optional.empty(), Optional.empty()); } @Override diff --git a/java/src/org/openqa/selenium/devtools/v117/v117Log.java b/java/src/org/openqa/selenium/devtools/v117/v117Log.java index 200068a524b57..abe69f5c3c290 100644 --- a/java/src/org/openqa/selenium/devtools/v117/v117Log.java +++ b/java/src/org/openqa/selenium/devtools/v117/v117Log.java @@ -17,6 +17,8 @@ package org.openqa.selenium.devtools.v117; +import java.util.function.Function; +import java.util.logging.Level; import org.openqa.selenium.devtools.Command; import org.openqa.selenium.devtools.ConverterFunctions; import org.openqa.selenium.devtools.Event; @@ -25,9 +27,6 @@ import org.openqa.selenium.devtools.v117.runtime.model.Timestamp; import org.openqa.selenium.json.JsonInput; -import java.util.function.Function; -import java.util.logging.Level; - public class v117Log implements org.openqa.selenium.devtools.idealized.log.Log { @Override diff --git a/java/src/org/openqa/selenium/devtools/v117/v117Network.java b/java/src/org/openqa/selenium/devtools/v117/v117Network.java index 50f571c546735..cb3742002c0b5 100644 --- a/java/src/org/openqa/selenium/devtools/v117/v117Network.java +++ b/java/src/org/openqa/selenium/devtools/v117/v117Network.java @@ -17,8 +17,15 @@ package org.openqa.selenium.devtools.v117; +import static java.net.HttpURLConnection.HTTP_OK; + import com.google.common.collect.ImmutableList; import com.google.common.io.ByteStreams; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.*; +import java.util.logging.Logger; import org.openqa.selenium.UsernameAndPassword; import org.openqa.selenium.devtools.Command; import org.openqa.selenium.devtools.DevTools; @@ -32,14 +39,6 @@ import org.openqa.selenium.remote.http.HttpRequest; import org.openqa.selenium.remote.http.HttpResponse; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.util.*; -import java.util.logging.Logger; - -import static java.net.HttpURLConnection.HTTP_OK; - public class v117Network extends Network { private static final Logger LOG = Logger.getLogger(v117Network.class.getName()); diff --git a/java/src/org/openqa/selenium/devtools/v117/v117Target.java b/java/src/org/openqa/selenium/devtools/v117/v117Target.java index d12dbab5424d5..e5891d943efa1 100644 --- a/java/src/org/openqa/selenium/devtools/v117/v117Target.java +++ b/java/src/org/openqa/selenium/devtools/v117/v117Target.java @@ -19,6 +19,9 @@ import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; +import java.util.List; +import java.util.Optional; +import java.util.function.Function; import org.openqa.selenium.devtools.Command; import org.openqa.selenium.devtools.ConverterFunctions; import org.openqa.selenium.devtools.Event; @@ -30,10 +33,6 @@ import org.openqa.selenium.json.JsonInput; import org.openqa.selenium.json.TypeToken; -import java.util.List; -import java.util.Optional; -import java.util.function.Function; - public class v117Target implements org.openqa.selenium.devtools.idealized.target.Target { @Override