Changeset 16068 in josm
- Timestamp:
- 2020-03-08T09:25:00+01:00 (5 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/DownloadAlongAction.java
r16066 r16068 12 12 import java.awt.geom.PathIterator; 13 13 import java.awt.geom.Rectangle2D; 14 import java.text.MessageFormat; 14 15 import java.util.ArrayList; 15 16 import java.util.Collection; … … 161 162 intermediateNodes.add(p2); 162 163 if (p1 != null && p2.greatCircleDistance(p1) > bufferDist) { 163 Double d = p2.greatCircleDistance(p1) / bufferDist;164 int nbNodes = d.intValue();164 double d = p2.greatCircleDistance(p1) / bufferDist; 165 int nbNodes = (int) d; 165 166 if (Logging.isDebugEnabled()) { 166 Logging.debug(tr("{0} intermediate nodes to download.", nbNodes)); 167 Logging.debug(tr("between {0} {1} and {2} {3}", p2.lat(), p2.lon(), p1.lat(), p1.lon())); 167 Logging.debug(MessageFormat.format("{0} intermediate nodes to download between {1} and {2}", nbNodes, p2, p1)); 168 168 } 169 169 double latStep = (p2.lat() - p1.lat()) / (nbNodes + 1); -
trunk/src/org/openstreetmap/josm/data/osm/DatasetConsistencyTest.java
r15755 r16068 189 189 StackTraceElement item = Thread.currentThread().getStackTrace()[2]; 190 190 String operation = getClass().getSimpleName() + '.' + item.getMethodName(); 191 Logging.debug(tr(" Test ''{0}''completed in {1}",191 Logging.debug(tr("{0} completed in {1}", 192 192 operation, stopwatch)); 193 193 } -
trunk/src/org/openstreetmap/josm/data/validation/Test.java
r16031 r16068 198 198 progressMonitor = null; 199 199 if (stopwatch.elapsed() > 0) { 200 Logging.debug(tr(" Test ''{0}''completed in {1}", getName(), stopwatch));200 Logging.debug(tr("{0} completed in {1}", getName(), stopwatch)); 201 201 } 202 202 } -
trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java
r15994 r16068 283 283 } else if (line.charAt(0) == '-' && okValue != null) { 284 284 String hk = harmonizeKey(line.substring(1)); 285 if (!okValue.equals(hk) && harmonizedKeys.put(hk, okValue) != null) { 286 Logging.debug( tr("Line was ignored:{0}", line));285 if (!okValue.equals(hk) && harmonizedKeys.put(hk, okValue) != null && Logging.isDebugEnabled()) { 286 Logging.debug("Line was ignored: " + line); 287 287 } 288 288 } else { -
trunk/src/org/openstreetmap/josm/io/CertificateAmendment.java
r15142 r16068 259 259 if (certificateIsMissing(keyStore, cert)) { 260 260 if (Logging.isDebugEnabled()) { 261 Logging.debug( tr("Adding certificate for TLS connections:{0}",cert.getSubjectX500Principal().getName()));261 Logging.debug("Adding certificate for TLS connections: " + cert.getSubjectX500Principal().getName()); 262 262 } 263 263 String alias = "josm:" + certAmend.filename;
Note:
See TracChangeset
for help on using the changeset viewer.