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 2014/11/13 20:32:13 UTC
svn commit: r1639494 -
/jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java
Author: fschumacher
Date: Thu Nov 13 19:32:13 2014
New Revision: 1639494
URL: http://svn.apache.org/r1639494
Log:
Bug 57193: Add javadoc @param, @return and @throws tags, or fill
them.
Bugzilla Id: 57193
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=1639494&r1=1639493&r2=1639494&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java Thu Nov 13 19:32:13 2014
@@ -112,6 +112,7 @@ public class JMeterUtils implements Unit
/**
* Gets Perl5Matcher for this thread.
+ * @return the {@link Perl5Matcher} for this thread
*/
public static Perl5Matcher getMatcher() {
return localMatcher.get();
@@ -173,7 +174,7 @@ public class JMeterUtils implements Unit
* default to "org/apache/jmeter/jmeter.properties" from the classpath
*
* c.f. loadProperties
- *
+ * @param file Name of the file from which the JMeter properties should be loaded
*/
public static void loadJMeterProperties(String file) {
Properties p = new Properties(System.getProperties());
@@ -298,6 +299,7 @@ public class JMeterUtils implements Unit
*
* @param superClass - single class to search for
* @return List of Strings containing discovered class names.
+ * @throws IOException when the used {@link ClassFinder} throws one while searching for the class
*/
public static List<String> findClassesThatExtend(Class<?> superClass)
throws IOException {
@@ -330,6 +332,7 @@ public class JMeterUtils implements Unit
*
* @param r -
* the upper bound (exclusive)
+ * @return a random <code>int</code>
*/
public static int getRandomInt(int r) {
return rand.nextInt(r);
@@ -589,7 +592,7 @@ public class JMeterUtils implements Unit
/**
* This looks for the requested image in the classpath under
- * org.apache.jmeter.images. <name>, and also sets the description
+ * org.apache.jmeter.images.<em><name></em>, and also sets the description
* of the image, which is useful if the icon is going to be placed
* on the clipboard.
*
@@ -889,6 +892,10 @@ public class JMeterUtils implements Unit
* Sets the selection of the JComboBox to the Object 'name' from the list in
* namVec.
* NOTUSED?
+ * @param properties not used at the moment
+ * @param combo {@link JComboBox} to work on
+ * @param namVec List of names, which are displayed in <code>combo</code>
+ * @param name Name, that is to be selected. It has to be in <code>namVec</code>
*/
public static void selJComboBoxItem(Properties properties, JComboBox combo, Vector<?> namVec, String name) {
int idx = namVec.indexOf(name);