diff --git a/java/src/org/openqa/selenium/WebDriverException.java b/java/src/org/openqa/selenium/WebDriverException.java index aef430101d5c1..1ac297425d751 100644 --- a/java/src/org/openqa/selenium/WebDriverException.java +++ b/java/src/org/openqa/selenium/WebDriverException.java @@ -86,7 +86,7 @@ private String createMessage(String originalMessageString) { getBuildInformation().toString(), getSystemInformation(), getAdditionalInformation()) - .filter(s -> !(s == null || s.equals(""))) + .filter(s -> !(s == null || s.isEmpty())) .collect(Collectors.joining("\n")); } diff --git a/java/src/org/openqa/selenium/WindowType.java b/java/src/org/openqa/selenium/WindowType.java index 4d32107522822..afe583225a502 100644 --- a/java/src/org/openqa/selenium/WindowType.java +++ b/java/src/org/openqa/selenium/WindowType.java @@ -17,7 +17,7 @@ package org.openqa.selenium; -/** Represents the type of a new browser window that may be created. */ +/** Represents the type of new browser window that may be created. */ public enum WindowType { WINDOW("window"), TAB("tab"),