From 96b117db8948b91ae719636f5d0d8ae7db7729a7 Mon Sep 17 00:00:00 2001 From: Marcel Pfotenhauer Date: Mon, 10 Aug 2020 14:21:48 +0200 Subject: [PATCH] #124: rename a function and removed default constructor --- .../module/statement/browser/BrowserStatement.java | 2 +- .../browser/multibrowser/WebDriverStateContainer.java | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/xceptance/neodymium/module/statement/browser/BrowserStatement.java b/src/main/java/com/xceptance/neodymium/module/statement/browser/BrowserStatement.java index d6a9efcc5..443782fda 100644 --- a/src/main/java/com/xceptance/neodymium/module/statement/browser/BrowserStatement.java +++ b/src/main/java/com/xceptance/neodymium/module/statement/browser/BrowserStatement.java @@ -208,7 +208,7 @@ public void teardown(boolean testFailed, boolean preventReuse, WebDriverStateCon else if (canReuse(preventReuse, webDriver, webDriverStateContainer)) { LOGGER.debug("Put browser into cache"); - webDriverStateContainer.increaseUsesedCount(); + webDriverStateContainer.incrementUsedCount(); WebDriverCache.instance.putWebDriverStateContainer(browserTag, webDriverStateContainer); } // close the WebDriver diff --git a/src/main/java/com/xceptance/neodymium/module/statement/browser/multibrowser/WebDriverStateContainer.java b/src/main/java/com/xceptance/neodymium/module/statement/browser/multibrowser/WebDriverStateContainer.java index 45c30abdd..09b4c1cdb 100644 --- a/src/main/java/com/xceptance/neodymium/module/statement/browser/multibrowser/WebDriverStateContainer.java +++ b/src/main/java/com/xceptance/neodymium/module/statement/browser/multibrowser/WebDriverStateContainer.java @@ -12,10 +12,6 @@ public class WebDriverStateContainer private BrowserUpProxy proxy; - public WebDriverStateContainer() - { - } - public WebDriver getWebDriver() { return webDriver; @@ -41,7 +37,7 @@ public int getUsedCount() return usedCount; } - public void increaseUsesedCount() + public void incrementUsedCount() { usedCount++; }