You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2018/02/11 21:01:32 UTC
svn commit: r1823897 - in /jmeter/trunk: checkstyle.xml
src/jorphan/org/apache/jorphan/util/HeapDumper.java
src/protocol/http/org/apache/jmeter/protocol/http/config/gui/HttpDefaultsGui.java
Author: fschumacher
Date: Sun Feb 11 21:01:32 2018
New Revision: 1823897
URL: http://svn.apache.org/viewvc?rev=1823897&view=rev
Log:
Correct typecast paren padding
Part of #358 on github. Based on contribution by Graham Russell (graham at ham1.co.uk)
Modified:
jmeter/trunk/checkstyle.xml
jmeter/trunk/src/jorphan/org/apache/jorphan/util/HeapDumper.java
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/HttpDefaultsGui.java
Modified: jmeter/trunk/checkstyle.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/checkstyle.xml?rev=1823897&r1=1823896&r2=1823897&view=diff
==============================================================================
--- jmeter/trunk/checkstyle.xml (original)
+++ jmeter/trunk/checkstyle.xml Sun Feb 11 21:01:32 2018
@@ -163,6 +163,7 @@
<!--<module name="ClassFanOutComplexity"/>-->
<!--<module name="CyclomaticComplexity"/>-->
<!--<module name="NPathComplexity"/>-->
+ <module name="TypecastParenPad"/>
<!--
Allow comment to suppress checkstyle for a single line
Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/util/HeapDumper.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/jorphan/org/apache/jorphan/util/HeapDumper.java?rev=1823897&r1=1823896&r2=1823897&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/jorphan/util/HeapDumper.java (original)
+++ jmeter/trunk/src/jorphan/org/apache/jorphan/util/HeapDumper.java Sun Feb 11 21:01:32 2018
@@ -189,13 +189,13 @@ public class HeapDumper {
} catch (RuntimeMBeanException e) {
Throwable f = e.getCause();
if (f instanceof Exception){
- throw (Exception )f;
+ throw (Exception) f;
}
throw e;
} catch (MBeanException e) {
Throwable f = e.getCause();
if (f instanceof Exception){
- throw (Exception )f;
+ throw (Exception) f;
}
throw e;
}
Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/HttpDefaultsGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/HttpDefaultsGui.java?rev=1823897&r1=1823896&r2=1823897&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/HttpDefaultsGui.java (original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/HttpDefaultsGui.java Sun Feb 11 21:01:32 2018
@@ -103,7 +103,7 @@ public class HttpDefaultsGui extends Abs
*/
@Override
public void modifyTestElement(TestElement config) {
- ConfigTestElement cfg = (ConfigTestElement ) config;
+ ConfigTestElement cfg = (ConfigTestElement) config;
ConfigTestElement el = (ConfigTestElement) urlConfigGui.createTestElement();
cfg.clear();
cfg.addConfigElement(el);