From 7cc250fa590023fe17e4f93feb511f90f3cd4eaf Mon Sep 17 00:00:00 2001 From: Manuel Blanco Date: Thu, 12 Oct 2023 07:34:02 -0300 Subject: [PATCH] [Bugfix] Refactored code in the WebDriverException class: (#12933) Co-authored-by: Puja Jagani --- java/src/org/openqa/selenium/WebDriverException.java | 2 +- java/src/org/openqa/selenium/WindowType.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"),