From 82ac41d8b10ea62c48b7c5cecd604e4b25275c41 Mon Sep 17 00:00:00 2001 From: titusfortner Date: Thu, 2 Nov 2023 15:19:17 -0500 Subject: [PATCH] [java] update name of variable to match current functionality --- .../grid/node/config/DriverServiceSessionFactory.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java/src/org/openqa/selenium/grid/node/config/DriverServiceSessionFactory.java b/java/src/org/openqa/selenium/grid/node/config/DriverServiceSessionFactory.java index 8fb1229b6c98e..ea6c701081763 100644 --- a/java/src/org/openqa/selenium/grid/node/config/DriverServiceSessionFactory.java +++ b/java/src/org/openqa/selenium/grid/node/config/DriverServiceSessionFactory.java @@ -326,9 +326,9 @@ private Capabilities readVncEndpoint(Capabilities requestedCaps, Capabilities re // reject session requests when they cannot parse the specific capabilities (like platform or // browser version). private Capabilities removeCapability(Capabilities caps, String capability) { - MutableCapabilities noPlatformName = new MutableCapabilities(new HashMap<>(caps.asMap())); - noPlatformName.setCapability(capability, (String) null); - return new PersistentCapabilities(noPlatformName); + MutableCapabilities removableCaps = new MutableCapabilities(new HashMap<>(caps.asMap())); + removableCaps.setCapability(capability, (String) null); + return new PersistentCapabilities(removableCaps); } private Capabilities setInitialCapabilityValue(Capabilities caps, String key, Object value) {