jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1749197 - in /jmeter/trunk/test/src/org/apache/jmeter: functions/ComponentReferenceFunctionTest.java junit/JMeterTest.java testbeans/gui/PackageTest.java
Date Sun, 19 Jun 2016 19:31:37 GMT
Author: fschumacher
Date: Sun Jun 19 19:31:36 2016
New Revision: 1749197

URL: http://svn.apache.org/viewvc?rev=1749197&view=rev
Log:
Minor tidy ups. Don't declare Exceptions, that are subclasses of other declared
Exceptions. Don't needlessly initialize with null.
Patch by Graham Russell. Closes #174.

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/functions/ComponentReferenceFunctionTest.java
    jmeter/trunk/test/src/org/apache/jmeter/junit/JMeterTest.java
    jmeter/trunk/test/src/org/apache/jmeter/testbeans/gui/PackageTest.java

Modified: jmeter/trunk/test/src/org/apache/jmeter/functions/ComponentReferenceFunctionTest.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/functions/ComponentReferenceFunctionTest.java?rev=1749197&r1=1749196&r2=1749197&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/functions/ComponentReferenceFunctionTest.java
(original)
+++ jmeter/trunk/test/src/org/apache/jmeter/functions/ComponentReferenceFunctionTest.java
Sun Jun 19 19:31:36 2016
@@ -81,7 +81,7 @@ public class ComponentReferenceFunctionT
     }
     
     private Element getBodyFromXMLDocument(InputStream stream)
-            throws ParserConfigurationException, FileNotFoundException, SAXException, IOException
{
+            throws ParserConfigurationException, SAXException, IOException {
         DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
         dbf.setIgnoringElementContentWhitespace(true);
         dbf.setIgnoringComments(true);

Modified: jmeter/trunk/test/src/org/apache/jmeter/junit/JMeterTest.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/junit/JMeterTest.java?rev=1749197&r1=1749196&r2=1749197&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/junit/JMeterTest.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/junit/JMeterTest.java Sun Jun 19 19:31:36 2016
@@ -179,7 +179,7 @@ public class JMeterTest extends JMeterTe
      * @throws FileNotFoundException 
      */
     private Element getBodyFromXMLDocument(InputStream stream)
-            throws ParserConfigurationException, FileNotFoundException, SAXException, IOException
{
+            throws ParserConfigurationException, SAXException, IOException {
         DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
         dbf.setIgnoringElementContentWhitespace(true);
         dbf.setIgnoringComments(true);

Modified: jmeter/trunk/test/src/org/apache/jmeter/testbeans/gui/PackageTest.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/testbeans/gui/PackageTest.java?rev=1749197&r1=1749196&r2=1749197&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/testbeans/gui/PackageTest.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/testbeans/gui/PackageTest.java Sun Jun 19 19:31:36
2016
@@ -169,7 +169,7 @@ public final class PackageTest extends J
         JMeterUtils.setLocale(defaultLocale);
         for (String className : testBeanClassNames) {
             Class<?> testBeanClass = Class.forName(className);
-            ResourceBundle defaultBundle = null;
+            ResourceBundle defaultBundle;
             try {
                 defaultBundle = (ResourceBundle) Introspector.getBeanInfo(testBeanClass).getBeanDescriptor().getValue(
                         GenericTestBeanCustomizer.RESOURCE_BUNDLE);



Mime
View raw message