This is an automated email from the ASF dual-hosted git repository.

fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new 357468b  Silence sonar warnings. We want only the string rep of the 
exceptions
357468b is described below

commit 357468bbb078adc4ba7118a562277cdcc7621196
Author: Felix Schumacher <[email protected]>
AuthorDate: Mon Sep 30 19:48:51 2019 +0200

    Silence sonar warnings. We want only the string rep of the exceptions
---
 .../src/main/java/org/apache/jmeter/util/BeanShellTestElement.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/src/core/src/main/java/org/apache/jmeter/util/BeanShellTestElement.java 
b/src/core/src/main/java/org/apache/jmeter/util/BeanShellTestElement.java
index 93da10b..efc059c 100644
--- a/src/core/src/main/java/org/apache/jmeter/util/BeanShellTestElement.java
+++ b/src/core/src/main/java/org/apache/jmeter/util/BeanShellTestElement.java
@@ -78,7 +78,7 @@ public abstract class BeanShellTestElement extends 
AbstractTestElement
             try {
                 bshInterpreter.reset();
             } catch (ClassNotFoundException e) {
-                log.error("Cannot reset BeanShell: {}", e.toString());
+                log.error("Cannot reset BeanShell: {}", e.toString()); // 
NOSONAR last arg would be exception
             }
         }
 
@@ -92,7 +92,7 @@ public abstract class BeanShellTestElement extends 
AbstractTestElement
             bshInterpreter.set("props", JMeterUtils.getJMeterProperties());
             bshInterpreter.set("vars", vars);//$NON-NLS-1$
         } catch (JMeterException e) {
-            log.warn("Problem setting one or more BeanShell variables {}", 
e.toString());
+            log.warn("Problem setting one or more BeanShell variables {}", 
e.toString()); // NOSONAR last arg would be exception
         }
         return bshInterpreter;
     }
@@ -106,7 +106,7 @@ public abstract class BeanShellTestElement extends 
AbstractTestElement
             hasInitFile = initFileName != null;
             bshInterpreter = new BeanShellInterpreter(initFileName, log);
         } catch (ClassNotFoundException e) {
-            log.error("Cannot find BeanShell: {}", e.toString());
+            log.error("Cannot find BeanShell: {}", e.toString()); // NOSONAR 
last arg would be exception
         }
     }
 

Reply via email to