Changeset 6792 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2014-01-31T02:44:56+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/SubclassFilteredCollection.java
r6084 r6792 47 47 } 48 48 49 @SuppressWarnings("unchecked") 49 50 @Override 50 51 public T next() { … … 53 54 current = null; 54 55 // we are save because predicate only accepts objects of type T 55 @SuppressWarnings("unchecked") T res = (T) old; 56 return res; 56 return (T) old; 57 57 } 58 58 -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r6772 r6792 294 294 return null; 295 295 } 296 296 297 297 /** 298 298 * Copies the given array. Unlike {@link Arrays#copyOf}, this method is null-safe. … … 307 307 return null; 308 308 } 309 309 310 310 /** 311 311 * Simple file copy function that will overwrite the target file.<br/> … … 386 386 } 387 387 } 388 388 389 389 /** 390 390 * Converts the given file to its URL. … … 457 457 try { 458 458 if (t != null && t.isDataFlavorSupported(DataFlavor.stringFlavor)) { 459 String text = (String) t.getTransferData(DataFlavor.stringFlavor); 460 return text; 459 return (String) t.getTransferData(DataFlavor.stringFlavor); 461 460 } 462 461 } catch (UnsupportedFlavorException ex) { … … 780 779 /** 781 780 * Runs an external command and returns the standard output. 782 * 781 * 783 782 * The program is expected to execute fast. 784 * 783 * 785 784 * @param command the command with arguments 786 785 * @return the output … … 945 944 return result; 946 945 } 947 946 948 947 /** 949 948 * Adds the given item at the end of a new copy of given array.
Note:
See TracChangeset
for help on using the changeset viewer.