Javadoc: Clarify clone() methods

This commit is contained in:
Gary Gregory 2023-12-09 11:43:15 -05:00
parent cbc44a3045
commit 96438a1f56
1 changed files with 20 additions and 30 deletions

View File

@ -1366,8 +1366,7 @@ public class ArrayUtils {
} }
/** /**
* Clones an array returning a typecast result and handling * Clones an array or returns {@code null}.
* {@code null}.
* <p> * <p>
* This method returns {@code null} for a {@code null} input array. * This method returns {@code null} for a {@code null} input array.
* </p> * </p>
@ -1380,8 +1379,7 @@ public class ArrayUtils {
} }
/** /**
* Clones an array returning a typecast result and handling * Clones an array or returns {@code null}.
* {@code null}.
* <p> * <p>
* This method returns {@code null} for a {@code null} input array. * This method returns {@code null} for a {@code null} input array.
* </p> * </p>
@ -1394,8 +1392,7 @@ public class ArrayUtils {
} }
/** /**
* Clones an array returning a typecast result and handling * Clones an array or returns {@code null}.
* {@code null}.
* <p> * <p>
* This method returns {@code null} for a {@code null} input array. * This method returns {@code null} for a {@code null} input array.
* </p> * </p>
@ -1408,8 +1405,7 @@ public class ArrayUtils {
} }
/** /**
* Clones an array returning a typecast result and handling * Clones an array or returns {@code null}.
* {@code null}.
* <p> * <p>
* This method returns {@code null} for a {@code null} input array. * This method returns {@code null} for a {@code null} input array.
* </p> * </p>
@ -1422,8 +1418,7 @@ public class ArrayUtils {
} }
/** /**
* Clones an array returning a typecast result and handling * Clones an array or returns {@code null}.
* {@code null}.
* <p> * <p>
* This method returns {@code null} for a {@code null} input array. * This method returns {@code null} for a {@code null} input array.
* </p> * </p>
@ -1436,8 +1431,7 @@ public class ArrayUtils {
} }
/** /**
* Clones an array returning a typecast result and handling * Clones an array or returns {@code null}.
* {@code null}.
* <p> * <p>
* This method returns {@code null} for a {@code null} input array. * This method returns {@code null} for a {@code null} input array.
* </p> * </p>
@ -1450,8 +1444,7 @@ public class ArrayUtils {
} }
/** /**
* Clones an array returning a typecast result and handling * Clones an array or returns {@code null}.
* {@code null}.
* <p> * <p>
* This method returns {@code null} for a {@code null} input array. * This method returns {@code null} for a {@code null} input array.
* </p> * </p>
@ -1464,8 +1457,7 @@ public class ArrayUtils {
} }
/** /**
* Clones an array returning a typecast result and handling * Clones an array or returns {@code null}.
* {@code null}.
* <p> * <p>
* This method returns {@code null} for a {@code null} input array. * This method returns {@code null} for a {@code null} input array.
* </p> * </p>
@ -1478,11 +1470,9 @@ public class ArrayUtils {
} }
/** /**
* Shallow clones an array returning a typecast result and handling * Shallow clones an array or returns {@code null}.
* {@code null}.
* <p> * <p>
* The objects in the array are not cloned, thus there is no special * The objects in the array are not cloned, thus there is no special handling for multi-dimensional arrays.
* handling for multi-dimensional arrays.
* </p> * </p>
* <p> * <p>
* This method returns {@code null} for a {@code null} input array. * This method returns {@code null} for a {@code null} input array.