jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1338827 - /jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java
Date Tue, 15 May 2012 18:52:23 GMT
Author: sebb
Date: Tue May 15 18:52:22 2012
New Revision: 1338827

URL: http://svn.apache.org/viewvc?rev=1338827&view=rev
Log:
Fix Javadoc error - it was incorrect Exception as well

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java?rev=1338827&r1=1338826&r2=1338827&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java Tue May 15 18:52:22 2012
@@ -55,6 +55,7 @@ import org.apache.jorphan.reflect.ClassF
 import org.apache.jorphan.test.UnitTestManager;
 import org.apache.jorphan.util.JOrphanUtils;
 import org.apache.log.Logger;
+import org.apache.oro.text.MalformedCachePatternException;
 import org.apache.oro.text.PatternCacheLRU;
 import org.apache.oro.text.regex.Pattern;
 import org.apache.oro.text.regex.Perl5Compiler;
@@ -260,11 +261,11 @@ public class JMeterUtils implements Unit
      * @param expression
      * @return compiled pattern
      *
-     * @throws  org.apache.oro.text.regex.MalformedPatternException (Runtime)
+     * @throws MalformedCachePatternException (Runtime)
      * This should be caught for expressions that may vary (e.g. user input)
      *
      */
-    public static Pattern getPattern(String expression){
+    public static Pattern getPattern(String expression) throws MalformedCachePatternException
{
         return getPattern(expression, Perl5Compiler.READ_ONLY_MASK);
     }
 
@@ -275,11 +276,11 @@ public class JMeterUtils implements Unit
      * @param options e.g. READ_ONLY_MASK
      * @return compiled pattern
      *
-     * @throws  org.apache.oro.text.regex.MalformedPatternException (Runtime)
+     * @throws MalformedCachePatternException (Runtime)
      * This should be caught for expressions that may vary (e.g. user input)
      *
      */
-    public static Pattern getPattern(String expression, int options){
+    public static Pattern getPattern(String expression, int options) throws MalformedCachePatternException
{
         return LazyPatternCacheHolder.INSTANCE.getPattern(expression, options);
     }
 



Mime
View raw message