db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r772611 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/RuntimeStatisticsParser.java
Date Thu, 07 May 2009 11:18:47 GMT
Author: kahatlen
Date: Thu May  7 11:18:45 2009
New Revision: 772611

URL: http://svn.apache.org/viewvc?rev=772611&view=rev
Log:
Clarify javadoc for RuntimeStatisticsParser.findString() and fix indentation

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/RuntimeStatisticsParser.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/RuntimeStatisticsParser.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/RuntimeStatisticsParser.java?rev=772611&r1=772610&r2=772611&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/RuntimeStatisticsParser.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/RuntimeStatisticsParser.java
Thu May  7 11:18:45 2009
@@ -309,9 +309,9 @@
     /**
      * Search the RuntimeStatistics for a string.  It must occur
      * at least instances times.
-     * @param stringToFind
-     * @param instances
-     * @return true if stringToFind is found instances times.
+     * @param stringToFind the string to search for
+     * @param instances the minimum number of occurrences of the string
+     * @return true if stringToFind is found at least {@code instances} times
      */
     public boolean findString(String stringToFind, int instances)
     {
@@ -323,12 +323,11 @@
             if (currentOffset != -1) {
                 foundCount++;
                 stat = stat.substring(currentOffset + stringToFind.length());
-            } else {    
+            } else {
                 break;
-            }   
-            }    
-            return (foundCount >=instances);
-                
+            }
+        }
+        return (foundCount >= instances);
     }
 
     /**



Mime
View raw message