diff --git a/java/client/src/org/openqa/selenium/logging/HandlerBasedLocalLogs.java b/java/client/src/org/openqa/selenium/logging/HandlerBasedLocalLogs.java index 066e24edd2ee8..79c02512c513f 100644 --- a/java/client/src/org/openqa/selenium/logging/HandlerBasedLocalLogs.java +++ b/java/client/src/org/openqa/selenium/logging/HandlerBasedLocalLogs.java @@ -18,8 +18,8 @@ package org.openqa.selenium.logging; import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; +import java.util.Collections; import java.util.List; import java.util.Set; @@ -27,8 +27,8 @@ * LocalLogs instance that extracts entries from a logging handler. */ class HandlerBasedLocalLogs extends LocalLogs { - final LoggingHandler loggingHandler; - final Set logTypesToInclude; + private final LoggingHandler loggingHandler; + private final Set logTypesToInclude; protected HandlerBasedLocalLogs(LoggingHandler loggingHandler, Set logTypesToInclude) { super(); @@ -42,11 +42,11 @@ public LogEntries get(String logType) { loggingHandler.flush(); return new LogEntries(entries); } - return new LogEntries(Lists.newArrayList()); + return new LogEntries(Collections.emptyList()); } public Set getAvailableLogTypes() { - return ImmutableSet.of(LogType.CLIENT); + return ImmutableSet.of(LogType.CLIENT); } public void addEntry(String logType, LogEntry entry) { diff --git a/java/client/src/org/openqa/selenium/logging/LocalLogs.java b/java/client/src/org/openqa/selenium/logging/LocalLogs.java index cc9aae9e9d034..d2aea54180c1a 100644 --- a/java/client/src/org/openqa/selenium/logging/LocalLogs.java +++ b/java/client/src/org/openqa/selenium/logging/LocalLogs.java @@ -17,9 +17,7 @@ package org.openqa.selenium.logging; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableSet; - +import java.util.Collections; import java.util.Set; /** @@ -29,11 +27,11 @@ public abstract class LocalLogs implements Logs { private static final LocalLogs NULL_LOGGER = new LocalLogs() { public LogEntries get(String logType) { - return new LogEntries(ImmutableList.of()); + return new LogEntries(Collections.emptyList()); } public Set getAvailableLogTypes() { - return ImmutableSet.of(); + return Collections.emptySet(); } public void addEntry(String logType, LogEntry entry) { diff --git a/java/client/src/org/openqa/selenium/logging/SessionLogs.java b/java/client/src/org/openqa/selenium/logging/SessionLogs.java index 63e8635dcc8c5..86c241f9df5bb 100644 --- a/java/client/src/org/openqa/selenium/logging/SessionLogs.java +++ b/java/client/src/org/openqa/selenium/logging/SessionLogs.java @@ -40,7 +40,7 @@ public SessionLogs() { public LogEntries getLogs(String logType) { if (logType == null || !logTypeToEntriesMap.containsKey(logType)) { - return new LogEntries(Collections.emptyList()); + return new LogEntries(Collections.emptyList()); } return logTypeToEntriesMap.get(logType); }