Ticket #17586: 17586.patch
File 17586.patch, 2.3 KB (added by , 6 years ago) |
---|
-
src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/GeographicReader.java
63 63 import org.openstreetmap.josm.tools.ImageProvider; 64 64 import org.openstreetmap.josm.tools.ImageProvider.ImageSizes; 65 65 import org.openstreetmap.josm.tools.Logging; 66 import org.openstreetmap.josm.tools.ReflectionUtils; 66 67 import org.openstreetmap.josm.tools.UserCancelException; 67 68 import org.openstreetmap.josm.tools.Utils; 68 69 … … 353 354 if (epsgCode != null) { 354 355 try { 355 356 Field f = AbstractIdentifiedObject.class.getDeclaredField("identifiers"); 356 Utils.setObjectsAccessible(f);357 ReflectionUtils.setObjectsAccessible(f); 357 358 f.set(crs, Collections.singleton(new NamedIdentifier(Citations.fromName("EPSG"), epsgCode.toString()))); 358 359 } catch (ReflectiveOperationException | SecurityException e) { 359 360 Logging.error(e); -
src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/TabFiles.java
18 18 import org.geotools.util.URLs; 19 19 import org.openstreetmap.josm.tools.JosmRuntimeException; 20 20 import org.openstreetmap.josm.tools.Logging; 21 import org.openstreetmap.josm.tools. Utils;21 import org.openstreetmap.josm.tools.ReflectionUtils; 22 22 23 23 /** 24 24 * Extension of {@link ShpFiles} class modified to fit MapInfo TAB needs. … … 39 39 40 40 try { 41 41 Field furls = ShpFiles.class.getDeclaredField("urls"); 42 Utils.setObjectsAccessible(furls);42 ReflectionUtils.setObjectsAccessible(furls); 43 43 urls = (Map<ShpFileType, URL>) furls.get(this); 44 44 } catch (ReflectiveOperationException e) { 45 45 throw new JosmRuntimeException(e);