Skip to content

Commit

Permalink
[java] fix linting failures
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Sep 17, 2023
1 parent 4208590 commit 609b43c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ protected Command<Void> disablePage() {

@Override
protected Command<ScriptIdentifier> addScriptToEvaluateOnNewDocument(String script) {
return Page.addScriptToEvaluateOnNewDocument(script, Optional.empty(), Optional.empty(), Optional.empty());
return Page.addScriptToEvaluateOnNewDocument(
script, Optional.empty(), Optional.empty(), Optional.empty());
}

@Override
Expand Down
5 changes: 2 additions & 3 deletions java/src/org/openqa/selenium/devtools/v117/v117Log.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down
15 changes: 7 additions & 8 deletions java/src/org/openqa/selenium/devtools/v117/v117Network.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<AuthRequired, RequestPaused> {

private static final Logger LOG = Logger.getLogger(v117Network.class.getName());
Expand Down
7 changes: 3 additions & 4 deletions java/src/org/openqa/selenium/devtools/v117/v117Target.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit 609b43c

Please sign in to comment.