You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2002/11/15 01:25:45 UTC
cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang StringUtils.java ArrayUtils.java
scolebourne 2002/11/14 16:25:45
Modified: lang/src/java/org/apache/commons/lang StringUtils.java
ArrayUtils.java
Log:
Javadoc fixes, from Fredrik Westermarck
Revision Changes Path
1.24 +2 -2 jakarta-commons/lang/src/java/org/apache/commons/lang/StringUtils.java
Index: StringUtils.java
===================================================================
RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/StringUtils.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- StringUtils.java 15 Nov 2002 00:06:40 -0000 1.23
+++ StringUtils.java 15 Nov 2002 00:25:45 -0000 1.24
@@ -1525,7 +1525,7 @@
* Returns either the passed in Object as a String, or,
* if the Object is <code>null</code>, an empty String.
*
- * @param str the Object to check
+ * @param obj the Object to check
* @return the passed in Object's toString, or blank if it was null
*/
public static String defaultString(Object obj) {
1.3 +26 -17 jakarta-commons/lang/src/java/org/apache/commons/lang/ArrayUtils.java
Index: ArrayUtils.java
===================================================================
RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/ArrayUtils.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ArrayUtils.java 14 Nov 2002 22:29:25 -0000 1.2
+++ ArrayUtils.java 15 Nov 2002 00:25:45 -0000 1.3
@@ -64,6 +64,7 @@
*
* @author <a href="mailto:scolebourne@apache.org">Stephen Colebourne</a>
* @author Moritz Petersen
+ * @author <a href="mailto:fredrik@westermarck.com">Fredrik Westermarck</a>
* @version $Id$
*/
public class ArrayUtils {
@@ -397,7 +398,8 @@
*
* @param array1 the first array, may be <code>null</code>
* @param array2 the second array, may be <code>null</code>
- * @param true if length of arrays matches, treating <code>null</code> as an empty array
+ * @return <code>true</code> if length of arrays matches, treating
+ * <code>null</code> as an empty array
*/
public static boolean isSameLength(Object[] array1, Object[] array2) {
if ((array1 == null && array2 != null && array2.length > 0) ||
@@ -415,8 +417,9 @@
*
* @param array1 the first array, may be <code>null</code>
* @param array2 the second array, may be <code>null</code>
- * @param true if length of arrays matches, treating <code>null</code> as an empty array
- */
+ * @return <code>true</code> if length of arrays matches, treating
+ * <code>null</code> as an empty array
+ */
public static boolean isSameLength(long[] array1, long[] array2) {
if ((array1 == null && array2 != null && array2.length > 0) ||
(array2 == null && array1 != null && array1.length > 0) ||
@@ -433,8 +436,9 @@
*
* @param array1 the first array, may be <code>null</code>
* @param array2 the second array, may be <code>null</code>
- * @param true if length of arrays matches, treating <code>null</code> as an empty array
- */
+ * @return <code>true</code> if length of arrays matches, treating
+ * <code>null</code> as an empty array
+ */
public static boolean isSameLength(int[] array1, int[] array2) {
if ((array1 == null && array2 != null && array2.length > 0) ||
(array2 == null && array1 != null && array1.length > 0) ||
@@ -451,8 +455,9 @@
*
* @param array1 the first array, may be <code>null</code>
* @param array2 the second array, may be <code>null</code>
- * @param true if length of arrays matches, treating <code>null</code> as an empty array
- */
+ * @return <code>true</code> if length of arrays matches, treating
+ * <code>null</code> as an empty array
+ */
public static boolean isSameLength(short[] array1, short[] array2) {
if ((array1 == null && array2 != null && array2.length > 0) ||
(array2 == null && array1 != null && array1.length > 0) ||
@@ -469,8 +474,9 @@
*
* @param array1 the first array, may be <code>null</code>
* @param array2 the second array, may be <code>null</code>
- * @param true if length of arrays matches, treating <code>null</code> as an empty array
- */
+ * @return <code>true</code> if length of arrays matches, treating
+ * <code>null</code> as an empty array
+ */
public static boolean isSameLength(byte[] array1, byte[] array2) {
if ((array1 == null && array2 != null && array2.length > 0) ||
(array2 == null && array1 != null && array1.length > 0) ||
@@ -487,8 +493,9 @@
*
* @param array1 the first array, may be <code>null</code>
* @param array2 the second array, may be <code>null</code>
- * @param true if length of arrays matches, treating <code>null</code> as an empty array
- */
+ * @return <code>true</code> if length of arrays matches, treating
+ * <code>null</code> as an empty array
+ */
public static boolean isSameLength(double[] array1, double[] array2) {
if ((array1 == null && array2 != null && array2.length > 0) ||
(array2 == null && array1 != null && array1.length > 0) ||
@@ -505,8 +512,9 @@
*
* @param array1 the first array, may be <code>null</code>
* @param array2 the second array, may be <code>null</code>
- * @param true if length of arrays matches, treating <code>null</code> as an empty array
- */
+ * @return <code>true</code> if length of arrays matches, treating
+ * <code>null</code> as an empty array
+ */
public static boolean isSameLength(float[] array1, float[] array2) {
if ((array1 == null && array2 != null && array2.length > 0) ||
(array2 == null && array1 != null && array1.length > 0) ||
@@ -523,8 +531,9 @@
*
* @param array1 the first array, may be <code>null</code>
* @param array2 the second array, may be <code>null</code>
- * @param true if length of arrays matches, treating <code>null</code> as an empty array
- */
+ * @return <code>true</code> if length of arrays matches, treating
+ * <code>null</code> as an empty array
+ */
public static boolean isSameLength(boolean[] array1, boolean[] array2) {
if ((array1 == null && array2 != null && array2.length > 0) ||
(array2 == null && array1 != null && array1.length > 0) ||
@@ -540,7 +549,7 @@
*
* @param array1 the first array, must not be <code>null</code>
* @param array2 the second array, must not be <code>null</code>
- * @param true if type of arrays matches
+ * @return <code>true</code> if type of arrays matches
* @throws IllegalArgumentException if either array is <code>null</code>
*/
public static boolean isSameType(Object array1, Object array2) {
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>