commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r911987 - in /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3: StringUtils.java builder/IDKey.java reflect/MethodUtils.java text/StrBuilder.java
Date Fri, 19 Feb 2010 21:27:31 GMT
Author: niallp
Date: Fri Feb 19 21:27:31 2010
New Revision: 911987

URL: http://svn.apache.org/viewvc?rev=911987&view=rev
Log:
Checkstyle changes only

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/IDKey.java
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrBuilder.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java?rev=911987&r1=911986&r2=911987&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java Fri
Feb 19 21:27:31 2010
@@ -890,6 +890,19 @@
         return ordinalIndexOf(str, searchStr, ordinal, false);
     }
 
+    /**
+     * <p>Finds the n-th index within a String, handling <code>null</code>.
+     * This method uses {@link String#indexOf(String)}.</p>
+     *
+     * <p>A <code>null</code> String will return <code>-1</code>.</p>
+     *
+     * @param str  the String to check, may be null
+     * @param searchStr  the String to find, may be null
+     * @param ordinal  the n-th <code>searchStr</code> to find
+     * @param lastIndex true if lastOrdinalIndexOf() otherwise false if ordinalIndexOf()
+     * @return the n-th index of the search String,
+     *  <code>-1</code> (<code>INDEX_NOT_FOUND</code>) if no match
or <code>null</code> string input
+     */
     // Shared code between ordinalIndexOf(String,String,int) and lastOrdinalIndexOf(String,String,int)
     private static int ordinalIndexOf(String str, String searchStr, int ordinal, boolean
lastIndex) {
         if (str == null || searchStr == null || ordinal <= 0) {

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/IDKey.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/IDKey.java?rev=911987&r1=911986&r2=911987&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/IDKey.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/IDKey.java Fri
Feb 19 21:27:31 2010
@@ -35,7 +35,7 @@
 
         /**
          * Constructor for IDKey
-         * @param _value
+         * @param _value The value
          */ 
         public IDKey(Object _value) {
             // This is the Object hashcode 
@@ -57,7 +57,7 @@
 
         /**
          * checks if instances are equal
-         * @param other
+         * @param other The other object to compare to
          * @return if the instances are for the same object
          */ 
         @Override

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java?rev=911987&r1=911986&r2=911987&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java
(original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java
Fri Feb 19 21:27:31 2010
@@ -549,6 +549,7 @@
      * @param cls Class to be checked
      * @param methodName Method name of the method we wish to call
      * @param parameterTypes The parameter type signatures
+     * @return the accessible method or <code>null</code> if not found
      */
     private static Method getAccessibleMethodFromSuperclass(Class<?> cls,
             String methodName, Class<?>[] parameterTypes) {
@@ -579,6 +580,7 @@
      * @param cls Parent class for the interfaces to be checked
      * @param methodName Method name of the method we wish to call
      * @param parameterTypes The parameter type signatures
+     * @return the accessible method or <code>null</code> if not found
      */
     private static Method getAccessibleMethodFromInterfaceNest(Class<?> cls,
             String methodName, Class<?>[] parameterTypes) {

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrBuilder.java?rev=911987&r1=911986&r2=911987&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
(original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
Fri Feb 19 21:27:31 2010
@@ -2668,6 +2668,9 @@
      */
     class StrBuilderTokenizer extends StrTokenizer {
 
+        /**
+         * Default constructor.
+         */
         StrBuilderTokenizer() {
             super();
         }
@@ -2704,6 +2707,9 @@
         /** The last mark position. */
         private int mark;
 
+        /**
+         * Default constructor.
+         */
         StrBuilderReader() {
             super();
         }
@@ -2788,6 +2794,9 @@
      */
     class StrBuilderWriter extends Writer {
 
+        /**
+         * Default constructor.
+         */
         StrBuilderWriter() {
             super();
         }



Mime
View raw message