jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1776621 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/CookiePanel.java
Date Fri, 30 Dec 2016 18:47:36 GMT
Author: pmouawad
Date: Fri Dec 30 18:47:36 2016
New Revision: 1776621

URL: http://svn.apache.org/viewvc?rev=1776621&view=rev
Log:
sonar : fix code smell

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/CookiePanel.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/CookiePanel.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/CookiePanel.java?rev=1776621&r1=1776620&r2=1776621&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/CookiePanel.java (original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/CookiePanel.java Fri
Dec 30 18:47:36 2016
@@ -240,9 +240,8 @@ public class CookiePanel extends Abstrac
      */
     private static CookieHandler getCookieHandler(String cookieHandlerClass) {
         try {
-            CookieHandler cookieHandler = (CookieHandler) 
+            return (CookieHandler) 
                     ClassUtils.getClass(cookieHandlerClass).newInstance();
-            return cookieHandler;
         } catch (Exception e) {
             log.error("Error creating implementation:"+cookieHandlerClass+ ", will default
to:"+DEFAULT_IMPLEMENTATION, e);
             return getCookieHandler(DEFAULT_IMPLEMENTATION);



Mime
View raw message