You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2016/12/30 18:47:36 UTC
svn commit: r1776621 -
/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/CookiePanel.java
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);