Changeset 10000 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2016-03-16T01:17:59+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java
r9991 r10000 274 274 } 275 275 276 private boolean isSimilar(ImageryInfo iiA, ImageryInfo iiB) {276 private static boolean isSimilar(ImageryInfo iiA, ImageryInfo iiB) { 277 277 if (iiA == null) 278 278 return false; -
trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
r9902 r10000 293 293 XMLInputFactory factory = XMLInputFactory.newFactory(); 294 294 // do not try to load external entities, nor validate the XML 295 factory.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, false);296 factory.setProperty(XMLInputFactory.IS_VALIDATING, false);297 factory.setProperty(XMLInputFactory.SUPPORT_DTD, false);295 factory.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, Boolean.FALSE); 296 factory.setProperty(XMLInputFactory.IS_VALIDATING, Boolean.FALSE); 297 factory.setProperty(XMLInputFactory.SUPPORT_DTD, Boolean.FALSE); 298 298 299 299 try (CachedFile cf = new CachedFile(baseUrl); InputStream in = cf.setHttpHeaders(headers). -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r9978 r10000 391 391 } 392 392 393 private Polygon buildPolygon(Point center, int radius, int sides) {393 private static Polygon buildPolygon(Point center, int radius, int sides) { 394 394 return buildPolygon(center, radius, sides, 0.0); 395 395 } -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/MultipolygonCache.java
r8870 r10000 189 189 } 190 190 191 private void processEvent(AbstractDatasetChangedEvent event, Relation r, Collection<Map<Relation, Multipolygon>> maps) {191 private static void processEvent(AbstractDatasetChangedEvent event, Relation r, Collection<Map<Relation, Multipolygon>> maps) { 192 192 if (event instanceof NodeMovedEvent || event instanceof WayNodesChangedEvent) { 193 193 dispatchEvent(event, r, maps); -
trunk/src/org/openstreetmap/josm/data/projection/CustomProjection.java
r9790 r10000 571 571 } 572 572 if (parameters.containsKey(Param.no_off.key) || parameters.containsKey(Param.no_uoff.key)) { 573 projParams.no_off = true;573 projParams.no_off = Boolean.TRUE; 574 574 } 575 575 proj.initialize(projParams); … … 713 713 /** 714 714 * Factor to convert units of east/north coordinates to meters. 715 * 715 * 716 716 * When east/north coordinates are in degrees (geographic CRS), the scale 717 717 * at the equator is taken, i.e. 360 degrees corresponds to the length of 718 718 * the equator in meters. 719 * 719 * 720 720 * @return factor to convert units to meter 721 721 */ … … 780 780 } 781 781 782 private EastNorth getPointAlong(int i, int N, ProjectionBounds r) {782 private static EastNorth getPointAlong(int i, int N, ProjectionBounds r) { 783 783 double dEast = (r.maxEast - r.minEast) / N; 784 784 double dNorth = (r.maxNorth - r.minNorth) / N; -
trunk/src/org/openstreetmap/josm/data/projection/proj/ObliqueMercator.java
r9998 r10000 368 368 } 369 369 370 private double normalizeLonRad(double a) {370 private static double normalizeLonRad(double a) { 371 371 return Math.toRadians(LatLon.normalizeLon(Math.toDegrees(a))); 372 372 } -
trunk/src/org/openstreetmap/josm/data/validation/tests/MultipolygonTest.java
r9900 r10000 114 114 } 115 115 116 private List<GeneralPath> createPolygons(List<Multipolygon.PolyData> joinedWays) {116 private static List<GeneralPath> createPolygons(List<Multipolygon.PolyData> joinedWays) { 117 117 List<GeneralPath> result = new ArrayList<>(); 118 118 for (Multipolygon.PolyData way : joinedWays) {
Note:
See TracChangeset
for help on using the changeset viewer.