Changeset 6623 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2014-01-04T06:39:00+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Utils.java
r6617 r6623 887 887 * a subclass of <code>klass</code>. The casted value otherwise. 888 888 */ 889 @SuppressWarnings("unchecked") 889 890 public static <T> T cast(Object o, Class<T> klass) { 890 891 if (klass.isInstance(o)) { 891 @SuppressWarnings("unchecked") 892 T ret = (T) o; 893 return ret; 892 return (T) o; 894 893 } 895 894 return null;
Note: See TracChangeset
for help on using the changeset viewer.