Changeset 7436 in josm for trunk/src/org/openstreetmap/josm/tools/Utils.java
- Timestamp:
- 2014-08-20T14:36:08+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Utils.java
r7423 r7436 311 311 312 312 /** 313 * Copies the given array. Unlike {@link Arrays#copyOf}, this method is null-safe. 314 * @param array The array to copy 315 * @return A copy of the original array, or {@code null} if {@code array} is null 316 * @since 7436 317 */ 318 public static int[] copyArray(int[] array) { 319 if (array != null) { 320 return Arrays.copyOf(array, array.length); 321 } 322 return null; 323 } 324 325 /** 313 326 * Simple file copy function that will overwrite the target file.<br> 314 327 * @param in The source file
Note:
See TracChangeset
for help on using the changeset viewer.