- Timestamp:
- 2021-06-02T20:41:00+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/Cascade.java
r16436 r17917 142 142 * @return The converted object or <code>null</code> if the conversion failed 143 143 */ 144 @SuppressWarnings("unchecked")145 144 public static <T> T convertTo(Object o, Class<T> klass) { 146 145 if (o == null) 147 146 return null; 148 147 if (klass.isInstance(o)) 149 return (T) o;148 return klass.cast(o); 150 149 151 150 return GENERIC_PARSER.supports(klass)
Note:
See TracChangeset
for help on using the changeset viewer.