Modify ↓
#16781 closed enhancement (fixed)
[PATCH] Fix small typos
Reported by: | naoliv | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 18.09 |
Component: | Core | Version: | |
Keywords: | typo | Cc: |
Description
-
data/validator/numeric.mapcss
diff --git a/data/validator/numeric.mapcss b/data/validator/numeric.mapcss index 27e197c..5646988 100644
a b 29 29 } 30 30 31 31 *[building:levels][building:levels !~ /^(([0-9]|[1-9][0-9]*)(\.5)?)$/], 32 *[level][level !~ /^((((-*[1-9]|[0-9])|-*[1-9][0-9]*)(\.5)?)|-0\.5)(;((((-*[1-9]|[0-9])|-*[1-9][0-9]*)(\.5)?)|-0\.5))*$/] { /* all numbers from -∞ to ∞ in 0.5 steps, optional multiple values sep erated by a ; */32 *[level][level !~ /^((((-*[1-9]|[0-9])|-*[1-9][0-9]*)(\.5)?)|-0\.5)(;((((-*[1-9]|[0-9])|-*[1-9][0-9]*)(\.5)?)|-0\.5))*$/] { /* all numbers from -∞ to ∞ in 0.5 steps, optional multiple values separated by a ; */ 33 33 throwWarning: tr("{0} should have numbers only with optional .5 increments", "{0.key}"); 34 34 assertMatch: "node level=one"; 35 35 assertMatch: "node level=01"; … … way["lanes:forward"]["lanes:forward" !~ /^[1-9]([0-9]*)$/][highway], 342 342 assertNoMatch: "node ele=-12.1 m"; 343 343 assertNoMatch: "node ele=12"; 344 344 assertMatch: "node ele=high"; 345 } 346 No newline at end of file 345 } -
src/javax/json/stream/JsonGenerator.java
diff --git a/src/javax/json/stream/JsonGenerator.java b/src/javax/json/stream/JsonGenerator.java index d85cbd6..73cbd85 100644
a b import java.math.BigInteger; 99 99 * 100 100 * <p> 101 101 * Other JSON values (that are not JSON objects or arrays) can be created 102 * by calling the approp iate {@code write} methods.102 * by calling the appropriate {@code write} methods. 103 103 * <p> 104 104 * The following example shows how to generate a JSON string: 105 105 * <pre><code> -
src/org/apache/commons/jcs/utils/props/PropertyLoader.java
diff --git a/src/org/apache/commons/jcs/utils/props/PropertyLoader.java b/src/org/apache/commons/jcs/utils/props/PropertyLoader.java index 1baaf0a..d1497c8 100644
a b public abstract class PropertyLoader 48 48 49 49 /** 50 50 * Looks up a resource named 'name' in the classpath. The resource must map 51 * to a file with .ccf exten tion. The name is assumed to be absolute and can51 * to a file with .ccf extension. The name is assumed to be absolute and can 52 52 * use either "/" or "." for package segment separation with an optional 53 53 * leading "/" and optional ".ccf" suffix. 54 54 * <p> -
src/org/openstreetmap/gui/jmapviewer/interfaces/TileSource.java
diff --git a/src/org/openstreetmap/gui/jmapviewer/interfaces/TileSource.java b/src/org/openstreetmap/gui/jmapviewer/interfaces/TileSource.java index 550e708..febf633 100644
a b public interface TileSource extends Attributed { 91 91 * @param lo1 longitude of first point 92 92 * @param la2 latitude of second point 93 93 * @param lo2 longitude of second point 94 * @return the distance betwe n first and second point, in m.94 * @return the distance between first and second point, in m. 95 95 */ 96 96 double getDistance(double la1, double lo1, double la2, double lo2); 97 97 -
src/org/openstreetmap/josm/actions/AbstractMergeAction.java
diff --git a/src/org/openstreetmap/josm/actions/AbstractMergeAction.java b/src/org/openstreetmap/josm/actions/AbstractMergeAction.java index c02a743..ebcfdae 100644
a b public abstract class AbstractMergeAction extends JosmAction { 98 98 * @param title title of dialog 99 99 * @param buttonText text of button used to select target layer 100 100 * @param buttonIcon icon name of button used to select target layer 101 * @return cho osen target layer101 * @return chosen target layer 102 102 */ 103 103 @SuppressWarnings("unchecked") 104 104 public static <T extends Layer> T askTargetLayer(T[] targetLayers, String label, String title, String buttonText, String buttonIcon) { -
src/org/openstreetmap/josm/actions/CloseChangesetAction.java
diff --git a/src/org/openstreetmap/josm/actions/CloseChangesetAction.java b/src/org/openstreetmap/josm/actions/CloseChangesetAction.java index 171eb6b..c7bd3b6 100644
a b public class CloseChangesetAction extends JosmAction { 151 151 } 152 152 153 153 /** 154 * Returns the last exception that occur ed.155 * @return the last exception that occur ed, or {@code null}154 * Returns the last exception that occurred. 155 * @return the last exception that occurred, or {@code null} 156 156 */ 157 157 public Exception getLastException() { 158 158 return lastException; -
src/org/openstreetmap/josm/actions/JosmAction.java
diff --git a/src/org/openstreetmap/josm/actions/JosmAction.java b/src/org/openstreetmap/josm/actions/JosmAction.java index b741c91..255d6e2 100644
a b public abstract class JosmAction extends AbstractAction implements Destroyable { 227 227 } 228 228 229 229 /** 230 * Overwrite this if {@link #updateEnabledState()} should be called when the active / availab e layers change. Default is true.230 * Overwrite this if {@link #updateEnabledState()} should be called when the active / available layers change. Default is true. 231 231 * @return <code>true</code> if a {@link LayerChangeListener} and a {@link ActiveLayerChangeListener} should be registered. 232 232 * @since 10353 233 233 */ -
src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
diff --git a/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java b/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java index 80ae5c1..a4e8b0a 100644
a b public class DrawAction extends MapMode implements MapViewPaintable, DataSelecti 736 736 } 737 737 738 738 // If ALT is pressed, a new way should be created and that new way should get 739 // selected. This works every time unless the ways the nodes get inserted into739 // selected. This works every time unless the ways the nodes get inserted into 740 740 // are already selected. This is the case when creating a self-overlapping way 741 741 // but pressing ALT prevents this. Therefore we must de-select the way manually 742 742 // here so /only/ the new way will be selected after this method finishes. -
src/org/openstreetmap/josm/command/RotateCommand.java
diff --git a/src/org/openstreetmap/josm/command/RotateCommand.java b/src/org/openstreetmap/josm/command/RotateCommand.java index 2b4f17a..3d9a213 100644
a b public class RotateCommand extends TransformNodesCommand { 34 34 35 35 /** 36 36 * Creates a RotateCommand. 37 * Assign the initial object set, compute pivot point and init al rotation angle.37 * Assign the initial object set, compute pivot point and initial rotation angle. 38 38 * @param objects objects to fetch nodes from 39 39 * @param currentEN cuurent eats/north 40 40 */ -
src/org/openstreetmap/josm/data/Version.java
diff --git a/src/org/openstreetmap/josm/data/Version.java b/src/org/openstreetmap/josm/data/Version.java index f8bfa31..19e6195 100644
a b public class Version { 154 154 } 155 155 156 156 /** 157 * Replies true if this is a local build, i.e. an inofficial development build.157 * Replies true if this is a local build, i.e. an unofficial development build. 158 158 * 159 * @return true if this is a local build, i.e. an inofficial development build.159 * @return true if this is a local build, i.e. an unofficial development build. 160 160 */ 161 161 public boolean isLocalBuild() { 162 162 return isLocalBuild; -
src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java
diff --git a/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java b/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java index d936240..335db15 100644
a b public abstract class JCSCachedTileLoaderJob<K, V extends CacheEntry> implements 383 383 Logging.debug("JCS - Caching empty object {0}", getUrl()); 384 384 return true; 385 385 } else { 386 Logging.debug("JCS - failure during load - re ponse is not loadable nor cached as empty");386 Logging.debug("JCS - failure during load - response is not loadable nor cached as empty"); 387 387 return false; 388 388 } 389 389 } -
src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
diff --git a/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java b/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java index f587aae..7333b4f 100644
a b public class WMTSTileSource extends AbstractTMSTileSource implements TemplatedTi 489 489 supportedMimeTypes.add("image/jpgpng"); // used by ESRI 490 490 supportedMimeTypes.add("image/png8"); // used by geoserver 491 491 if (supportedMimeTypes.contains("image/jpeg")) { 492 supportedMimeTypes.add("image/jpg"); // sometimes mis pelled by Arcgis492 supportedMimeTypes.add("image/jpg"); // sometimes misspelled by Arcgis 493 493 } 494 494 Collection<String> unsupportedFormats = new ArrayList<>(); 495 495 -
src/org/openstreetmap/josm/data/osm/Storage.java
diff --git a/src/org/openstreetmap/josm/data/osm/Storage.java b/src/org/openstreetmap/josm/data/osm/Storage.java index 451bc65..af72ea9 100644
a b import org.openstreetmap.josm.tools.Utils; 14 14 15 15 /** 16 16 * A Set-like class that allows looking up equivalent preexising instance. 17 * It is useful where ever one would use self-mapping construct like17 * It is useful wherever one would use self-mapping construct like 18 18 * <code>Map<T,T>.put(t,t)</code>, that is, for caches, uniqueness filters or similar. 19 19 * 20 20 * The semantics of equivalency can be external to the object, using the -
src/org/openstreetmap/josm/data/osm/visitor/paint/ArrowPaintHelper.java
diff --git a/src/org/openstreetmap/josm/data/osm/visitor/paint/ArrowPaintHelper.java b/src/org/openstreetmap/josm/data/osm/visitor/paint/ArrowPaintHelper.java index 3322d7f..196eccb 100644
a b public class ArrowPaintHelper { 30 30 * Paint the arrow 31 31 * @param path The path to append the arrow to. 32 32 * @param point The point to paint the tip at 33 * @param fromDirection The direction the line is com ming from.33 * @param fromDirection The direction the line is coming from. 34 34 */ 35 35 public void paintArrowAt(MapPath2D path, MapViewPoint point, MapViewPoint fromDirection) { 36 36 double x = point.getInViewX(); -
src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
diff --git a/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java b/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java index 94d3657..2f6e925 100644
a b public class StyledMapRenderer extends AbstractMapRenderer { 161 161 boolean negative = (value & 0x80000000L) != 0; 162 162 // Invert the sign bit, so that negative numbers are lower 163 163 value ^= 0x80000000L; 164 // Now do the shift. Do it before accounting for negative numbers (sym etry)164 // Now do the shift. Do it before accounting for negative numbers (symmetry) 165 165 if (totalBits < 32) { 166 166 value >>= (32 - totalBits); 167 167 } -
src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFile.java
diff --git a/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFile.java b/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFile.java index 96443ea..29e17fd 100644
a b import org.openstreetmap.josm.tools.Logging; 45 45 * <p>Grid Shift files can be read as InputStreams or RandomAccessFiles. 46 46 * Loading an InputStream places all the required node information 47 47 * (accuracy data is optional) into heap based Java arrays. This is the 48 * highest perfo mance option, and is useful for large volume transformations.48 * highest performance option, and is useful for large volume transformations. 49 49 * Non-file data sources (eg using an SQL Blob) are also supported through 50 50 * InputStream. The RandonAccessFile option has a much smaller memory 51 51 * footprint as only the Sub Grid headers are stored in memory, but -
src/org/openstreetmap/josm/data/projection/proj/AbstractProj.java
diff --git a/src/org/openstreetmap/josm/data/projection/proj/AbstractProj.java b/src/org/openstreetmap/josm/data/projection/proj/AbstractProj.java index 8412304..6e3e6ed 100644
a b public abstract class AbstractProj implements Proj { 111 111 /** 112 112 * Calculates the meridian distance. This is the distance along the central 113 113 * meridian from the equator to {@code phi}. Accurate to < 1e-5 meters 114 * when used in conju ction with typical major axis values.114 * when used in conjunction with typical major axis values. 115 115 * 116 116 * @param phi latitude to calculate meridian distance for. 117 117 * @param sphi sin(phi). … … public abstract class AbstractProj implements Proj { 132 132 * Calculates the latitude ({@code phi}) from a meridian distance. 133 133 * Determines phi to TOL (1e-11) radians, about 1e-6 seconds. 134 134 * 135 * @param arg meridian distance to cal ulate latitude for.135 * @param arg meridian distance to calculate latitude for. 136 136 * @return the latitude of the meridian distance. 137 137 * @throws RuntimeException if the itteration does not converge. 138 138 */ -
src/org/openstreetmap/josm/data/projection/proj/EquidistantCylindrical.java
diff --git a/src/org/openstreetmap/josm/data/projection/proj/EquidistantCylindrical.java b/src/org/openstreetmap/josm/data/projection/proj/EquidistantCylindrical.java index 0395a08..341ce5b 100644
a b public class EquidistantCylindrical extends AbstractProj { 36 36 37 37 @Override 38 38 public String getName() { 39 return tr("Equidistant Cylindrical (Plate Car ee)");39 return tr("Equidistant Cylindrical (Plate Carrée)"); 40 40 } 41 41 42 42 @Override -
src/org/openstreetmap/josm/data/projection/proj/ObliqueMercator.java
diff --git a/src/org/openstreetmap/josm/data/projection/proj/ObliqueMercator.java b/src/org/openstreetmap/josm/data/projection/proj/ObliqueMercator.java index 5ba4a42..ca4ad6f 100644
a b public class ObliqueMercator extends AbstractProj implements ICentralMeridianPro 141 141 ////// 142 142 143 143 /** 144 * The azimuth of the central line passing through tthe centre of the projection, in radians.144 * The azimuth of the central line passing through the centre of the projection, in radians. 145 145 */ 146 146 protected double azimuth; 147 147 -
src/org/openstreetmap/josm/data/projection/proj/TransverseMercator.java
diff --git a/src/org/openstreetmap/josm/data/projection/proj/TransverseMercator.java b/src/org/openstreetmap/josm/data/projection/proj/TransverseMercator.java index e5132fd..d59d8fe 100644
a b import org.openstreetmap.josm.tools.Utils; 15 15 * is a cylindrical projection, in which the cylinder has been rotated 90°. 16 16 * Instead of being tangent to the equator (or to an other standard latitude), 17 17 * it is tangent to a central meridian. Deformation are more important as we 18 * are going fu ther from the central meridian. The Transverse Mercator19 * projection is appropriate for region w ich have a greater extent north-south18 * are going further from the central meridian. The Transverse Mercator 19 * projection is appropriate for region which have a greater extent north-south 20 20 * than east-west. 21 21 * <p> 22 22 * -
src/org/openstreetmap/josm/data/validation/routines/DomainValidator.java
diff --git a/src/org/openstreetmap/josm/data/validation/routines/DomainValidator.java b/src/org/openstreetmap/josm/data/validation/routines/DomainValidator.java index e208bfd..c2b0b42 100644
a b public final class DomainValidator extends AbstractValidator { 1880 1880 * @since 1.5.1 made public and added read-only array references 1881 1881 */ 1882 1882 public enum ArrayType { 1883 /** Update (or get a copy of) the GENERIC_TLDS_PLUS table containing addit onal generic TLDs */1883 /** Update (or get a copy of) the GENERIC_TLDS_PLUS table containing additional generic TLDs */ 1884 1884 GENERIC_PLUS, 1885 1885 /** Update (or get a copy of) the GENERIC_TLDS_MINUS table containing deleted generic TLDs */ 1886 1886 GENERIC_MINUS, 1887 /** Update (or get a copy of) the COUNTRY_CODE_TLDS_PLUS table containing addit onal country code TLDs */1887 /** Update (or get a copy of) the COUNTRY_CODE_TLDS_PLUS table containing additional country code TLDs */ 1888 1888 COUNTRY_CODE_PLUS, 1889 1889 /** Update (or get a copy of) the COUNTRY_CODE_TLDS_MINUS table containing deleted country code TLDs */ 1890 1890 COUNTRY_CODE_MINUS, -
src/org/openstreetmap/josm/data/validation/routines/package.html
diff --git a/src/org/openstreetmap/josm/data/validation/routines/package.html b/src/org/openstreetmap/josm/data/validation/routines/package.html index 5f50ef5..c594733 100644
a b 19 19 <title>Package Documentation for org.openstreetmap.josm.data.validation.routines Package</title> 20 20 </head> 21 21 <body bgcolor="white"> 22 <p>This package contains <i>independ ant</i> validation routines adapted from Apache Commons Validator 1.5.0.</p>22 <p>This package contains <i>independent</i> validation routines adapted from Apache Commons Validator 1.5.0.</p> 23 23 <h1>Table of Contents</h1> 24 24 25 25 <ul> -
src/org/openstreetmap/josm/data/validation/tests/Addresses.java
diff --git a/src/org/openstreetmap/josm/data/validation/tests/Addresses.java b/src/org/openstreetmap/josm/data/validation/tests/Addresses.java index 7856201..abfe687 100644
a b public class Addresses extends Test { 262 262 checkHouseNumbersWithoutStreet(r); 263 263 checkForDuplicate(r); 264 264 if (r.hasTag("type", ASSOCIATED_STREET)) { 265 // Used to count occur ences of each house number in order to find duplicates265 // Used to count occurrences of each house number in order to find duplicates 266 266 Map<String, List<OsmPrimitive>> map = new HashMap<>(); 267 267 // Used to detect different street names 268 268 String relationName = r.get("name"); -
src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
diff --git a/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java b/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java index 115edef..91633fb 100644
a b public class MapCSSTagChecker extends Test.TagTest { 247 247 public static class ParseResult { 248 248 /** Checks successfully parsed */ 249 249 public final List<TagCheck> parseChecks; 250 /** Errors that occur ed during parsing */250 /** Errors that occurred during parsing */ 251 251 public final Collection<Throwable> parseErrors; 252 252 253 253 /** 254 254 * Constructs a new {@code ParseResult}. 255 255 * @param parseChecks Checks successfully parsed 256 * @param parseErrors Errors that occur ed during parsing256 * @param parseErrors Errors that occurred during parsing 257 257 */ 258 258 public ParseResult(List<TagCheck> parseChecks, Collection<Throwable> parseErrors) { 259 259 this.parseChecks = parseChecks; -
src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java
diff --git a/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java b/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java index 15eb670..b7c11aa 100644
a b public class RelationChecker extends Test { 265 265 * 266 266 * @param n relation to validate 267 267 * @param allroles contains presets for specified relation 268 * @param map contains statistics of occur ances of specified role types in relation268 * @param map contains statistics of occurrences of specified role types in relation 269 269 */ 270 270 private void checkRoles(Relation n, Map<Role, String> allroles, Map<String, RoleInfo> map) { 271 271 // go through all members of relation -
src/org/openstreetmap/josm/gui/GettingStarted.java
diff --git a/src/org/openstreetmap/josm/gui/GettingStarted.java b/src/org/openstreetmap/josm/gui/GettingStarted.java index 71cfe5c..951829f 100644
a b public final class GettingStarted extends JPanel implements ProxyPreferenceListe 114 114 // We assume a default of myVersion because it only kicks in in two cases: 115 115 // 1. Not yet written - but so isn't the interval variable, so it gets updated anyway 116 116 // 2. Cannot be written (e.g. while developing). Obviously we don't want to update 117 // every time because of something we can't read.117 // every time because of something we can't read. 118 118 return (Config.getPref().getInt("cache.motd.html.version", -999) == myVersion) 119 119 && Config.getPref().get("cache.motd.html.java").equals(myJava) 120 120 && Config.getPref().get("cache.motd.html.lang").equals(myLang); -
src/org/openstreetmap/josm/gui/MainApplication.java
diff --git a/src/org/openstreetmap/josm/gui/MainApplication.java b/src/org/openstreetmap/josm/gui/MainApplication.java index aceadf9..7fbe8ab 100644
a b public class MainApplication { 977 977 if ("true".equals(Config.getPref().get("prefer.ipv6", "auto")) 978 978 && !"true".equals(Utils.updateSystemProperty("java.net.preferIPv6Addresses", "true"))) { 979 979 // never set this to false, only true! 980 Logging.info(tr("Try enabling IPv6 network, prefer ing IPv6 over IPv4 (only works on early startup)."));980 Logging.info(tr("Try enabling IPv6 network, preferring IPv6 over IPv4 (only works on early startup).")); 981 981 } 982 982 Utils.updateSystemProperty("http.agent", Version.getInstance().getAgentString()); 983 983 Utils.updateSystemProperty("user.language", Config.getPref().get("language")); … … public class MainApplication { 1192 1192 SSLSocketFactory.getDefault().createSocket(a, 443).close(); 1193 1193 Utils.updateSystemProperty("java.net.preferIPv6Addresses", "true"); 1194 1194 if (!wasv6) { 1195 Logging.info(tr("Detected useable IPv6 network, prefer ing IPv6 over IPv4 after next restart."));1195 Logging.info(tr("Detected useable IPv6 network, preferring IPv6 over IPv4 after next restart.")); 1196 1196 } else { 1197 Logging.info(tr("Detected useable IPv6 network, prefer ing IPv6 over IPv4."));1197 Logging.info(tr("Detected useable IPv6 network, preferring IPv6 over IPv4.")); 1198 1198 } 1199 1199 hasv6 = true; 1200 1200 } … … public class MainApplication { 1206 1206 Logging.trace(e); 1207 1207 } 1208 1208 if (wasv6 && !hasv6) { 1209 Logging.info(tr("Detected no useable IPv6 network, prefer ing IPv4 over IPv6 after next restart."));1209 Logging.info(tr("Detected no useable IPv6 network, preferring IPv4 over IPv6 after next restart.")); 1210 1210 Config.getPref().putBoolean("validated.ipv6", hasv6); // be sure it is stored before the restart! 1211 1211 try { 1212 1212 RestartAction.restartJOSM(); -
src/org/openstreetmap/josm/gui/MainFrame.java
diff --git a/src/org/openstreetmap/josm/gui/MainFrame.java b/src/org/openstreetmap/josm/gui/MainFrame.java index 28cd8ae..576a2bb 100644
a b public class MainFrame extends JFrame { 61 61 62 62 /** 63 63 * Create a new main window. The parameter will be removed in the future. 64 * @param geometry The init al geometry to use.64 * @param geometry The initial geometry to use. 65 65 * @since 12127 66 66 */ 67 67 public MainFrame(WindowGeometry geometry) { -
src/org/openstreetmap/josm/gui/MapViewState.java
diff --git a/src/org/openstreetmap/josm/gui/MapViewState.java b/src/org/openstreetmap/josm/gui/MapViewState.java index 1c3ecce..8e6a3bc 100644
a b public final class MapViewState implements Serializable { 361 361 * Creates a new state that is the same as the current state except for that it is using the location of the given component. 362 362 * <p> 363 363 * The view is moved so that the center is the same as the old center. 364 * @param posit on The new location to use.364 * @param position The new location to use. 365 365 * @return The new state. 366 366 * @since 10375 367 367 */ 368 public MapViewState usingLocation(JComponent posit on) {368 public MapViewState usingLocation(JComponent position) { 369 369 EastNorth center = this.getCenter().getEastNorth(); 370 return new MapViewState(posit on, this).usingCenter(center);370 return new MapViewState(position, this).usingCenter(center); 371 371 } 372 372 373 373 /** … … public final class MapViewState implements Serializable { 540 540 541 541 /** 542 542 * Gets the direction in which this point is outside of the given view rectangle. 543 * @param rect The rectangle to check agains .543 * @param rect The rectangle to check against. 544 544 * @return The direction in which it is outside of the view, as OUTSIDE_... flags. 545 545 * @since 10827 546 546 */ -
src/org/openstreetmap/josm/gui/bbox/BBoxChooser.java
diff --git a/src/org/openstreetmap/josm/gui/bbox/BBoxChooser.java b/src/org/openstreetmap/josm/gui/bbox/BBoxChooser.java index 12404a8..83faee8 100644
a b public interface BBoxChooser { 26 26 27 27 /** 28 28 * Replies the currently selected bounding box in this BBoxChooser. 29 * Replies null, if currently there isn't a bbox cho osen in this29 * Replies null, if currently there isn't a bbox chosen in this 30 30 * BBoxChooser. 31 31 * 32 32 * @return the currently selected bounding box -
src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java
diff --git a/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java b/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java index 2138a79..907a515 100644
a b public class SlippyMapBBoxChooser extends JMapViewer implements BBoxChooser, Cha 370 370 371 371 /** 372 372 * Sets the current bounding box in this bbox chooser without 373 * emit ing a property change event.373 * emitting a property change event. 374 374 * 375 375 * @param bbox the bounding box. null to reset the bounding box 376 376 */ -
src/org/openstreetmap/josm/gui/bugreport/DebugTextDisplay.java
diff --git a/src/org/openstreetmap/josm/gui/bugreport/DebugTextDisplay.java b/src/org/openstreetmap/josm/gui/bugreport/DebugTextDisplay.java index d6cc58c..1d47551 100644
a b public class DebugTextDisplay extends JScrollPane { 34 34 } 35 35 36 36 /** 37 * Creates a new text area with an init al text to display37 * Creates a new text area with an initial text to display 38 38 * @param textToDisplay The text to display. 39 39 */ 40 40 public DebugTextDisplay(String textToDisplay) { -
src/org/openstreetmap/josm/gui/bugreport/JosmUpdatePanel.java
diff --git a/src/org/openstreetmap/josm/gui/bugreport/JosmUpdatePanel.java b/src/org/openstreetmap/josm/gui/bugreport/JosmUpdatePanel.java index ce4b958..7d854b5 100644
a b public class JosmUpdatePanel extends JPanel { 75 75 * Display that there was an error while checking the current version. 76 76 */ 77 77 private void displayError() { 78 testedVersionField.setText(tr("An error occur ed while checking if your JOSM instance is up to date."));78 testedVersionField.setText(tr("An error occurred while checking if your JOSM instance is up to date.")); 79 79 showUpdateButton(); 80 80 } 81 81 -
src/org/openstreetmap/josm/gui/datatransfer/data/LayerTransferData.java
diff --git a/src/org/openstreetmap/josm/gui/datatransfer/data/LayerTransferData.java b/src/org/openstreetmap/josm/gui/datatransfer/data/LayerTransferData.java index d15b7c7..eccfc1e 100644
a b public class LayerTransferData extends LayerTransferable.Data { 40 40 } 41 41 42 42 /** 43 * Gets the layer to be transfer ed.43 * Gets the layer to be transferred. 44 44 * @return The layer 45 45 */ 46 46 public Layer getLayer() { -
src/org/openstreetmap/josm/gui/datatransfer/data/PrimitiveTransferData.java
diff --git a/src/org/openstreetmap/josm/gui/datatransfer/data/PrimitiveTransferData.java b/src/org/openstreetmap/josm/gui/datatransfer/data/PrimitiveTransferData.java index 4c9cd38..0251b83 100644
a b import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 21 21 import org.openstreetmap.josm.tools.CompositeList; 22 22 23 23 /** 24 * A list of primitives that are transfer ed. The list allows you to implicitly add primitives.24 * A list of primitives that are transferred. The list allows you to implicitly add primitives. 25 25 * It distinguishes between primitives that were directly added and implicitly added ones. 26 26 * @author Michael Zangl 27 27 * @since 10604 -
src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
diff --git a/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java b/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java index a33a975..faa333e 100644
a b public class SelectionListDialog extends ToggleDialog { 558 558 /** 559 559 * Replies the collection of OSM primitives currently selected in the view of this model 560 560 * 561 * @return cho osen elements in the view561 * @return chosen elements in the view 562 562 */ 563 563 public synchronized Collection<OsmPrimitive> getSelected() { 564 564 Set<OsmPrimitive> sel = new HashSet<>(); -
src/org/openstreetmap/josm/gui/download/PlaceSelection.java
diff --git a/src/org/openstreetmap/josm/gui/download/PlaceSelection.java b/src/org/openstreetmap/josm/gui/download/PlaceSelection.java index a019345..a3a3bdb 100644
a b public class PlaceSelection implements DownloadSelection { 268 268 } catch (SAXParseException e) { 269 269 if (!canceled) { 270 270 // Nominatim sometimes returns garbage, see #5934, #10643 271 Logging.log(Logging.LEVEL_WARN, tr("Error occur ed with query ''{0}'': ''{1}''", urlString, e.getMessage()), e);271 Logging.log(Logging.LEVEL_WARN, tr("Error occurred with query ''{0}'': ''{1}''", urlString, e.getMessage()), e); 272 272 GuiHelper.runInEDTAndWait(() -> HelpAwareOptionPane.showOptionDialog( 273 273 MainApplication.getMainFrame(), 274 274 tr("Name server returned invalid data. Please try again."), -
src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
diff --git a/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java b/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java index f252687..19b23be 100644
a b public class HistoryBrowserModel extends ChangeNotifier implements ActiveLayerCh 210 210 } 211 211 212 212 /** 213 * Should be called every time either reference of current changes to update the diff.213 * Should be called every time either reference of current changes to update the diff. 214 214 * TODO: Maybe rename to reflect this? eg. updateNodeListTableModels 215 215 */ 216 216 private void initNodeListTableModels() { -
src/org/openstreetmap/josm/gui/history/HistoryLoadTask.java
diff --git a/src/org/openstreetmap/josm/gui/history/HistoryLoadTask.java b/src/org/openstreetmap/josm/gui/history/HistoryLoadTask.java index 29191be..648145c 100644
a b public class HistoryLoadTask extends PleaseWaitRunnable { 234 234 } 235 235 236 236 /** 237 * Returns the last exception that occur ed during loading, if any.238 * @return the last exception that occur ed during loading, or {@code null}237 * Returns the last exception that occurred during loading, if any. 238 * @return the last exception that occurred during loading, or {@code null} 239 239 */ 240 240 public Exception getLastException() { 241 241 return lastException; -
src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java
diff --git a/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java b/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java index 712d226..8640456 100644
a b public class VersionInfoPanel extends JPanel implements ChangeListener { 229 229 /** 230 230 * Updates the content of this panel based on the changeset information given by {@code primitive}. 231 231 * @param primitive the primitive to extract the changeset information from 232 * @param isLatest whether this relates to a not yet commit ed changeset232 * @param isLatest whether this relates to a not yet committed changeset 233 233 */ 234 234 public void update(final OsmPrimitive primitive, final boolean isLatest) { 235 235 update(Changeset.fromPrimitive(primitive), isLatest, primitive.getTimestamp(), primitive.getVersion()); … … public class VersionInfoPanel extends JPanel implements ChangeListener { 238 238 /** 239 239 * Updates the content of this panel based on the changeset information given by {@code cs}. 240 240 * @param cs the changeset information 241 * @param isLatest whether this relates to a not yet commit ed changeset241 * @param isLatest whether this relates to a not yet committed changeset 242 242 * @param timestamp the timestamp 243 243 * @param version the version of the primitive 244 244 */ -
src/org/openstreetmap/josm/gui/io/DownloadOpenChangesetsTask.java
diff --git a/src/org/openstreetmap/josm/gui/io/DownloadOpenChangesetsTask.java b/src/org/openstreetmap/josm/gui/io/DownloadOpenChangesetsTask.java index fbe06c9..1fefad0 100644
a b public class DownloadOpenChangesetsTask extends PleaseWaitRunnable { 106 106 // have the respective privileges or if he didn't or he can't authenticate with 107 107 // a username/password-pair. 108 108 // 109 // Downgrade your knowle ge about its identity if we've assumed that he was fully109 // Downgrade your knowledge about its identity if we've assumed that he was fully 110 110 // identified. Otherwise, if he is anonymous or partially identified, keep our level 111 // of knowle ge.111 // of knowledge. 112 112 // 113 113 if (im.isFullyIdentified()) { 114 114 im.setPartiallyIdentified(im.getUserName()); -
src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java
diff --git a/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java b/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java index 5e61352..551a83e 100644
a b public class SaveLayersDialog extends JDialog implements TableModelListener { 654 654 int numProblems = model.getNumCancel() + model.getNumFailed(); 655 655 if (numProblems == 0) 656 656 return; 657 Logging.warn(numProblems + " problems occur ed during upload/save");657 Logging.warn(numProblems + " problems occurred during upload/save"); 658 658 String msg = trn( 659 659 "<html>An upload and/or save operation of one layer with modifications<br>" 660 660 + "was canceled or has failed.</html>", -
src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
diff --git a/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java b/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java index ce7cdda..4634a9a 100644
a b implements ImageObserver, TileLoaderListener, ZoomChangeListener, FilterChangeLi 839 839 /** 840 840 * Zoom out from map. 841 841 * 842 * @return true, if zoom increasing was successful l, false othervise842 * @return true, if zoom increasing was successful, false othervise 843 843 */ 844 844 public boolean decreaseZoomLevel() { 845 845 if (zoomDecreaseAllowed()) { -
src/org/openstreetmap/josm/gui/layer/gpx/DownloadAlongPanel.java
diff --git a/src/org/openstreetmap/josm/gui/layer/gpx/DownloadAlongPanel.java b/src/org/openstreetmap/josm/gui/layer/gpx/DownloadAlongPanel.java index 6558bae..bfd3a7f 100644
a b public class DownloadAlongPanel extends JPanel { 109 109 } 110 110 111 111 /** 112 * Gets the "download near" cho osen value113 * @return the "download near" cho osen value (0: track only, 1: waypoints only, 2: both)112 * Gets the "download near" chosen value 113 * @return the "download near" chosen value (0: track only, 1: waypoints only, 2: both) 114 114 */ 115 115 public final int getNear() { 116 116 return downloadNear.getSelectedIndex(); -
src/org/openstreetmap/josm/gui/layer/imagery/TileCoordinateConverter.java
diff --git a/src/org/openstreetmap/josm/gui/layer/imagery/TileCoordinateConverter.java b/src/org/openstreetmap/josm/gui/layer/imagery/TileCoordinateConverter.java index fd2d3f8..1807fa4 100644
a b public class TileCoordinateConverter { 112 112 /** 113 113 * Gets the position of the tile inside the map view. 114 114 * @param tile The tile 115 * @return The posit on as a rectangle in screen coordinates115 * @return The position as a rectangle in screen coordinates 116 116 */ 117 117 public Rectangle2D getRectangleForTile(Tile tile) { 118 118 ICoordinate c1 = tile.getTileSource().tileXYToLatLon(tile); -
src/org/openstreetmap/josm/gui/mappaint/StyleSource.java
diff --git a/src/org/openstreetmap/josm/gui/mappaint/StyleSource.java b/src/org/openstreetmap/josm/gui/mappaint/StyleSource.java index 4af8090..6ef613d 100644
a b public abstract class StyleSource extends SourceEntry { 140 140 } 141 141 142 142 /** 143 * Log an error that occur ed with this style.143 * Log an error that occurred with this style. 144 144 * @param e error 145 145 */ 146 146 public void logError(Throwable e) { … … public abstract class StyleSource extends SourceEntry { 148 148 } 149 149 150 150 /** 151 * Log a warning that occur ed with this style.151 * Log a warning that occurred with this style. 152 152 * @param w warnings 153 153 */ 154 154 public void logWarning(String w) { … … public abstract class StyleSource extends SourceEntry { 156 156 } 157 157 158 158 /** 159 * Replies the collection of errors that occur ed with this style.159 * Replies the collection of errors that occurred with this style. 160 160 * @return collection of errors 161 161 */ 162 162 public Collection<Throwable> getErrors() { … … public abstract class StyleSource extends SourceEntry { 164 164 } 165 165 166 166 /** 167 * Replies the collection of warnings that occur ed with this style.167 * Replies the collection of warnings that occurred with this style. 168 168 * @return collection of warnings 169 169 */ 170 170 public Collection<String> getWarnings() { -
src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSException.java
diff --git a/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSException.java b/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSException.java index 3c0b61c..023f8ec 100644
a b package org.openstreetmap.josm.gui.mappaint.mapcss; 6 6 */ 7 7 public class MapCSSException extends RuntimeException { 8 8 9 /** line number at which the parse error occur ed */9 /** line number at which the parse error occurred */ 10 10 protected Integer line; 11 /** column number at which the parse error occur ed */11 /** column number at which the parse error occurred */ 12 12 protected Integer column; 13 13 14 14 /** … … public class MapCSSException extends RuntimeException { 29 29 } 30 30 31 31 /** 32 * Sets the column number at which the parse error occur ed.33 * @param column the column number at which the parse error occur ed32 * Sets the column number at which the parse error occurred. 33 * @param column the column number at which the parse error occurred 34 34 */ 35 35 public void setColumn(int column) { 36 36 this.column = column; 37 37 } 38 38 39 39 /** 40 * Sets the line number at which the parse error occur ed.41 * @param line the line number at which the parse error occur ed40 * Sets the line number at which the parse error occurred. 41 * @param line the line number at which the parse error occurred 42 42 */ 43 43 public void setLine(int line) { 44 44 this.line = line; -
src/org/openstreetmap/josm/gui/mappaint/styleelement/placement/OnLineStrategy.java
diff --git a/src/org/openstreetmap/josm/gui/mappaint/styleelement/placement/OnLineStrategy.java b/src/org/openstreetmap/josm/gui/mappaint/styleelement/placement/OnLineStrategy.java index b5d8b50..cf5c523 100644
a b public class OnLineStrategy implements PositionForAreaStrategy { 133 133 } 134 134 }); 135 135 136 // find the segment with the best quality. If there are several with best quality, the one close to the center is prefer ed.136 // find the segment with the best quality. If there are several with best quality, the one close to the center is preferred. 137 137 return longHalfSegment.stream().max( 138 138 Comparator.comparingDouble(segment -> segment.quality - 1e-5 * Math.abs(segment.offset - length / 2))); 139 139 } -
src/org/openstreetmap/josm/gui/oauth/AuthorizationProcedureComboBox.java
diff --git a/src/org/openstreetmap/josm/gui/oauth/AuthorizationProcedureComboBox.java b/src/org/openstreetmap/josm/gui/oauth/AuthorizationProcedureComboBox.java index 0a9b3a6..c4b0412 100644
a b import javax.swing.UIManager; 13 13 import org.openstreetmap.josm.gui.widgets.JosmComboBox; 14 14 15 15 /** 16 * Combo box that lets the user choose one of the ava liable {@link AuthorizationProcedure}s.16 * Combo box that lets the user choose one of the available {@link AuthorizationProcedure}s. 17 17 */ 18 18 public class AuthorizationProcedureComboBox extends JosmComboBox<AuthorizationProcedure> { 19 19 -
src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
diff --git a/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java b/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java index 44b5770..cde499e 100644
a b public final class PreferenceTabbedPane extends JTabbedPane implements MouseWhee 419 419 420 420 if (task != null) { 421 421 // if we have to launch a plugin download task we do it asynchronously, followed 422 // by the remaining "save preferences" activit es run on the Swing EDT.422 // by the remaining "save preferences" activities run on the Swing EDT. 423 423 MainApplication.worker.submit(task); 424 424 MainApplication.worker.submit(() -> GuiHelper.runInEDT(continuation)); 425 425 } else { -
src/org/openstreetmap/josm/gui/tagging/TagEditorModel.java
diff --git a/src/org/openstreetmap/josm/gui/tagging/TagEditorModel.java b/src/org/openstreetmap/josm/gui/tagging/TagEditorModel.java index 1211fa4..d7740a1 100644
a b public class TagEditorModel extends AbstractTableModel { 711 711 } 712 712 713 713 /** 714 * A listener that is called whenever the cells may be updated from outside the editor and the editor should thus be commit ed.714 * A listener that is called whenever the cells may be updated from outside the editor and the editor should thus be committed. 715 715 * @since 10604 716 716 */ 717 717 @FunctionalInterface -
src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetNameTemplateList.java
diff --git a/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetNameTemplateList.java b/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetNameTemplateList.java index 878ca73..e163f1a 100644
a b public final class TaggingPresetNameTemplateList implements TaggingPresetListene 47 47 } 48 48 49 49 /** 50 * Finds and returns the first occur ence of preset with template name matching the given primitive50 * Finds and returns the first occurrence of preset with template name matching the given primitive 51 51 * @param primitive The primitive to match 52 * @return the first occur ence of preset with template name matching the primitive52 * @return the first occurrence of preset with template name matching the primitive 53 53 */ 54 54 public TaggingPreset findPresetTemplate(IPrimitive primitive) { 55 55 synchronized (this) { -
src/org/openstreetmap/josm/gui/util/WindowGeometry.java
diff --git a/src/org/openstreetmap/josm/gui/util/WindowGeometry.java b/src/org/openstreetmap/josm/gui/util/WindowGeometry.java index 59e4789..b749006 100644
a b public class WindowGeometry { 365 365 } 366 366 367 367 /** 368 * Determines if the bug affecting getMaximumWindowBounds() occur ed.368 * Determines if the bug affecting getMaximumWindowBounds() occurred. 369 369 * 370 370 * @param maxbounds result of getMaximumWindowBounds() 371 371 * @return {@code true} if the bug happened, {@code false otherwise} -
src/org/openstreetmap/josm/gui/widgets/JosmPasswordField.java
diff --git a/src/org/openstreetmap/josm/gui/widgets/JosmPasswordField.java b/src/org/openstreetmap/josm/gui/widgets/JosmPasswordField.java index 4c308a3..294726e 100644
a b public class JosmPasswordField extends JPasswordField implements FocusListener { 129 129 try { 130 130 pasteAction.actionPerformed(e); 131 131 } catch (NullPointerException npe) { // NOPMD 132 Logging.log(Logging.LEVEL_ERROR, "NullPointerException occur ed because of JDK bug 6322854. "132 Logging.log(Logging.LEVEL_ERROR, "NullPointerException occurred because of JDK bug 6322854. " 133 133 +"Copy/Paste operation has not been performed. Please complain to Oracle: "+ 134 134 "https://bugs.openjdk.java.net/browse/JDK-6322854", npe); 135 135 } -
src/org/openstreetmap/josm/gui/widgets/MultiSplitLayout.java
diff --git a/src/org/openstreetmap/josm/gui/widgets/MultiSplitLayout.java b/src/org/openstreetmap/josm/gui/widgets/MultiSplitLayout.java index 3042957..b71e934 100644
a b public class MultiSplitLayout implements LayoutManager { 591 591 /* First pass of the layout algorithm. 592 592 * 593 593 * If the Dividers are "floating" then set the bounds of each 594 * node to accom odate the preferred size of all of the594 * node to accommodate the preferred size of all of the 595 595 * Leaf's java.awt.Components. Otherwise, just set the bounds 596 596 * of each Leaf/Split node so that it's to the left of (for 597 597 * Split.isRowLayout() Split children) or directly above -
src/org/openstreetmap/josm/io/DefaultProxySelector.java
diff --git a/src/org/openstreetmap/josm/io/DefaultProxySelector.java b/src/org/openstreetmap/josm/io/DefaultProxySelector.java index 32bd8b0..4cf8d47 100644
a b public class DefaultProxySelector extends ProxySelector { 204 204 } 205 205 206 206 /** 207 * Determines if proxy errors have occur ed.208 * @return {@code true} if errors have occur ed, {@code false} otherwise.207 * Determines if proxy errors have occurred. 208 * @return {@code true} if errors have occurred, {@code false} otherwise. 209 209 * @since 6523 210 210 */ 211 211 public final boolean hasErrors() { -
src/org/openstreetmap/josm/io/NetworkManager.java
diff --git a/src/org/openstreetmap/josm/io/NetworkManager.java b/src/org/openstreetmap/josm/io/NetworkManager.java index 44a49b7..9b1b314 100644
a b public final class NetworkManager { 58 58 } 59 59 60 60 /** 61 * Returns the network errors that occur ed until now.62 * @return the network errors that occur ed until now, indexed by URL61 * Returns the network errors that occurred until now. 62 * @return the network errors that occurred until now, indexed by URL 63 63 */ 64 64 public static Map<String, Throwable> getNetworkErrors() { 65 65 return new HashMap<>(NETWORK_ERRORS); -
src/org/openstreetmap/josm/io/OsmApiException.java
diff --git a/src/org/openstreetmap/josm/io/OsmApiException.java b/src/org/openstreetmap/josm/io/OsmApiException.java index 7dbf290..c0cee75 100644
a b public class OsmApiException extends OsmTransferException { 23 23 * See {@link java.net.HttpURLConnection HttpURLConnection} for predefined HTTP response code values 24 24 * @param errorHeader The error header, as transmitted in the {@code Error} field of the HTTP response header 25 25 * @param errorBody The error body, as transmitted in the HTTP response body 26 * @param accessedUrl The complete URL accessed when this error occur ed26 * @param accessedUrl The complete URL accessed when this error occurred 27 27 * @param login the login used to connect to OSM API (can be null) 28 28 * @param contentType the response content-type 29 29 * @since 13499 … … public class OsmApiException extends OsmTransferException { 43 43 * See {@link java.net.HttpURLConnection HttpURLConnection} for predefined HTTP response code values 44 44 * @param errorHeader The error header, as transmitted in the {@code Error} field of the HTTP response header 45 45 * @param errorBody The error body, as transmitted in the HTTP response body 46 * @param accessedUrl The complete URL accessed when this error occur ed46 * @param accessedUrl The complete URL accessed when this error occurred 47 47 * @param login the login used to connect to OSM API (can be null) 48 48 * @since 12992 49 49 */ … … public class OsmApiException extends OsmTransferException { 57 57 * See {@link java.net.HttpURLConnection HttpURLConnection} for predefined HTTP response code values 58 58 * @param errorHeader The error header, as transmitted in the {@code Error} field of the HTTP response header 59 59 * @param errorBody The error body, as transmitted in the HTTP response body 60 * @param accessedUrl The complete URL accessed when this error occur ed60 * @param accessedUrl The complete URL accessed when this error occurred 61 61 * @since 5584 62 62 */ 63 63 public OsmApiException(int responseCode, String errorHeader, String errorBody, String accessedUrl) { … … public class OsmApiException extends OsmTransferException { 215 215 } 216 216 217 217 /** 218 * Sets the complete URL accessed when this error occur ed.218 * Sets the complete URL accessed when this error occurred. 219 219 * This is distinct from the one set with {@link #setUrl}, which is generally only the base URL of the server. 220 * @param url the complete URL accessed when this error occur ed.220 * @param url the complete URL accessed when this error occurred. 221 221 */ 222 222 public void setAccessedUrl(String url) { 223 223 this.accessedUrl = url; 224 224 } 225 225 226 226 /** 227 * Replies the complete URL accessed when this error occur ed.227 * Replies the complete URL accessed when this error occurred. 228 228 * This is distinct from the one returned by {@link #getUrl}, which is generally only the base URL of the server. 229 * @return the complete URL accessed when this error occur ed.229 * @return the complete URL accessed when this error occurred. 230 230 */ 231 231 public String getAccessedUrl() { 232 232 return accessedUrl; -
src/org/openstreetmap/josm/io/OsmApiInitializationException.java
diff --git a/src/org/openstreetmap/josm/io/OsmApiInitializationException.java b/src/org/openstreetmap/josm/io/OsmApiInitializationException.java index ba3492e..d09a047 100644
a b 2 2 package org.openstreetmap.josm.io; 3 3 4 4 /** 5 * Exception thrown when a communication error occur ed with the OSM server during API initialization.5 * Exception thrown when a communication error occurred with the OSM server during API initialization. 6 6 * @see OsmApi#initialize 7 7 */ 8 8 public class OsmApiInitializationException extends OsmTransferException { -
src/org/openstreetmap/josm/io/remotecontrol/handler/AddWayHandler.java
diff --git a/src/org/openstreetmap/josm/io/remotecontrol/handler/AddWayHandler.java b/src/org/openstreetmap/josm/io/remotecontrol/handler/AddWayHandler.java index bc67b13..1199b02 100644
a b public class AddWayHandler extends RequestHandler { 46 46 private Way way; 47 47 48 48 /** 49 * The place to reme ber already added nodes (they are reused if needed @since 584549 * The place to remember already added nodes (they are reused if needed @since 5845 50 50 */ 51 51 private Map<LatLon, Node> addedNodes; 52 52 -
src/org/openstreetmap/josm/plugins/PluginDownloadTask.java
diff --git a/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java b/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java index 7740072..ac22f6f 100644
a b public class PluginDownloadTask extends PleaseWaitRunnable { 212 212 } 213 213 214 214 /** 215 * Replies the last exception that occur ed during download, or {@code null}.216 * @return the last exception that occur ed during download, or {@code null}215 * Replies the last exception that occurred during download, or {@code null}. 216 * @return the last exception that occurred during download, or {@code null} 217 217 * @since 9621 218 218 */ 219 219 public Exception getLastException() { -
src/org/openstreetmap/josm/plugins/PluginHandler.java
diff --git a/src/org/openstreetmap/josm/plugins/PluginHandler.java b/src/org/openstreetmap/josm/plugins/PluginHandler.java index 587e313..2fd2b56 100644
a b public final class PluginHandler { 270 270 static final Collection<PluginProxy> pluginList = new LinkedList<>(); 271 271 272 272 /** 273 * All exceptions that occur ed during plugin loading273 * All exceptions that occurred during plugin loading 274 274 */ 275 275 static final Map<String, Throwable> pluginLoadingExceptions = new HashMap<>(); 276 276 … … public final class PluginHandler { 1418 1418 stack.addAll(Arrays.asList(current.getStackTrace())); 1419 1419 Throwable cause = current.getCause(); 1420 1420 if (cause != null && seen.contains(cause)) { 1421 break; // circular refer nce1421 break; // circular reference 1422 1422 } 1423 1423 current = cause; 1424 1424 } -
src/org/openstreetmap/josm/tools/Geometry.java
diff --git a/src/org/openstreetmap/josm/tools/Geometry.java b/src/org/openstreetmap/josm/tools/Geometry.java index 926f63a..78f51c3 100644
a b public final class Geometry { 365 365 // Basically, the formula from wikipedia is used: 366 366 // https://en.wikipedia.org/wiki/Line%E2%80%93line_intersection 367 367 // However, large numbers lead to rounding errors (see #10286). 368 // To avoid this, p1 is first sub stracted from each of the points:368 // To avoid this, p1 is first subtracted from each of the points: 369 369 // p1' = 0 370 370 // p2' = p2 - p1 371 371 // p3' = p3 - p1 -
src/org/openstreetmap/josm/tools/Logging.java
diff --git a/src/org/openstreetmap/josm/tools/Logging.java b/src/org/openstreetmap/josm/tools/Logging.java index c345656..eb38866 100644
a b public final class Logging { 460 460 } 461 461 462 462 /** 463 * Provides direct access to the logger used. Use of methods like {@link #warn(String)} is prefer ed.463 * Provides direct access to the logger used. Use of methods like {@link #warn(String)} is preferred. 464 464 * @return The logger 465 465 */ 466 466 public static Logger getLogger() { -
src/org/openstreetmap/josm/tools/MemoryManager.java
diff --git a/src/org/openstreetmap/josm/tools/MemoryManager.java b/src/org/openstreetmap/josm/tools/MemoryManager.java index 9d2d8a9..f188b7c 100644
a b public class MemoryManager { 115 115 /** 116 116 * Gets the content of this memory area. 117 117 * <p> 118 * This method should be the prefer ed access to the memory since it will do error checking when {@link #free()} was called.118 * This method should be the preferred access to the memory since it will do error checking when {@link #free()} was called. 119 119 * @return The memory area content. 120 120 */ 121 121 T get(); -
src/org/openstreetmap/josm/tools/PlatformHook.java
diff --git a/src/org/openstreetmap/josm/tools/PlatformHook.java b/src/org/openstreetmap/josm/tools/PlatformHook.java index 14b8dfc..9130199 100644
a b public interface PlatformHook { 59 59 Platform getPlatform(); 60 60 61 61 /** 62 * The preStartupHook will be called extrem ly early. It is62 * The preStartupHook will be called extremely early. It is 63 63 * guaranteed to be called before the GUI setup has started. 64 64 * 65 65 * Reason: On OSX we need to inform the Swing libraries -
src/org/openstreetmap/josm/tools/PlatformHookWindows.java
diff --git a/src/org/openstreetmap/josm/tools/PlatformHookWindows.java b/src/org/openstreetmap/josm/tools/PlatformHookWindows.java index 49129d1..8b99465 100644
a b public class PlatformHookWindows implements PlatformHook { 429 429 } 430 430 } catch (ArrayIndexOutOfBoundsException e) { 431 431 // catch error of JDK-8172244 as bug seems to not be fixed anytime soon 432 Logging.log(Logging.LEVEL_ERROR, "JDK-8172244 occur ed. Abort HTTPS setup", e);432 Logging.log(Logging.LEVEL_ERROR, "JDK-8172244 occurred. Abort HTTPS setup", e); 433 433 return false; 434 434 } 435 435 if (!GraphicsEnvironment.isHeadless()) { -
src/org/openstreetmap/josm/tools/XmlParsingException.java
diff --git a/src/org/openstreetmap/josm/tools/XmlParsingException.java b/src/org/openstreetmap/josm/tools/XmlParsingException.java index 032f987..83f53ff 100644
a b public class XmlParsingException extends SAXException { 40 40 } 41 41 42 42 /** 43 * Sets the location (line/column) where the exception occur ed.44 * @param locator object giving the location (line/column) where the exception occur ed43 * Sets the location (line/column) where the exception occurred. 44 * @param locator object giving the location (line/column) where the exception occurred 45 45 * @return {@code this} 46 46 */ 47 47 public XmlParsingException rememberLocation(Locator locator) { … … public class XmlParsingException extends SAXException { 64 64 } 65 65 66 66 /** 67 * Returns the column number where the exception occur ed.68 * @return the column number where the exception occur ed67 * Returns the column number where the exception occurred. 68 * @return the column number where the exception occurred 69 69 */ 70 70 public int getColumnNumber() { 71 71 return columnNumber; 72 72 } 73 73 74 74 /** 75 * Returns the line number where the exception occur ed.76 * @return the line number where the exception occur ed75 * Returns the line number where the exception occurred. 76 * @return the line number where the exception occurred 77 77 */ 78 78 public int getLineNumber() { 79 79 return lineNumber; -
src/org/openstreetmap/josm/tools/bugreport/BugReportSender.java
diff --git a/src/org/openstreetmap/josm/tools/bugreport/BugReportSender.java b/src/org/openstreetmap/josm/tools/bugreport/BugReportSender.java index 6658632..1f0ec13 100644
a b public class BugReportSender extends Thread { 160 160 } 161 161 162 162 /** 163 * Returns the error message that could have occur ed during bug sending.163 * Returns the error message that could have occurred during bug sending. 164 164 * @return the error message, or {@code null} if successful 165 165 */ 166 166 public final String getErrorMessage() { -
test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java
diff --git a/test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java b/test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java index ab8660b..652e1ee 100644
a b public class ProjectionRefTest { 116 116 private static Collection<RefEntry> readData() throws IOException { 117 117 Collection<RefEntry> result = new ArrayList<>(); 118 118 if (!new File(REFERENCE_DATA_FILE).exists()) { 119 System.err.println("Warning: ref rence file does not exist.");119 System.err.println("Warning: reference file does not exist."); 120 120 return result; 121 121 } 122 122 try (BufferedReader in = new BufferedReader(new InputStreamReader( -
test/unit/org/openstreetmap/josm/data/validation/tests/TagCheckerTest.java
diff --git a/test/unit/org/openstreetmap/josm/data/validation/tests/TagCheckerTest.java b/test/unit/org/openstreetmap/josm/data/validation/tests/TagCheckerTest.java index 6f05aac..6422f3a 100644
a b public class TagCheckerTest { 41 41 } 42 42 43 43 /** 44 * Check for mis pelled key.44 * Check for misspelled key. 45 45 * @throws IOException if any I/O error occurs 46 46 */ 47 47 @Test … … public class TagCheckerTest { 54 54 } 55 55 56 56 /** 57 * Check for mis pelled key.57 * Check for misspelled key. 58 58 * @throws IOException if any I/O error occurs 59 59 */ 60 60 @Test … … public class TagCheckerTest { 67 67 } 68 68 69 69 /** 70 * Check for mis pelled key where the suggested alternative is in use. The error should not be fixable.70 * Check for misspelled key where the suggested alternative is in use. The error should not be fixable. 71 71 * @throws IOException if any I/O error occurs 72 72 */ 73 73 @Test … … public class TagCheckerTest { 93 93 } 94 94 95 95 /** 96 * Check for mis pelled value.96 * Check for misspelled value. 97 97 * @throws IOException if any I/O error occurs 98 98 */ 99 99 @Test -
test/unit/org/openstreetmap/josm/gui/layer/MainLayerManagerTest.java
diff --git a/test/unit/org/openstreetmap/josm/gui/layer/MainLayerManagerTest.java b/test/unit/org/openstreetmap/josm/gui/layer/MainLayerManagerTest.java index 7cc61bf..fca3326 100644
a b public class MainLayerManagerTest extends LayerManagerTest { 138 138 } 139 139 140 140 /** 141 * Test if {@link MainLayerManager#addActiveLayerChangeListener(ActiveLayerChangeListener)} prevents listener from be eing added twice.141 * Test if {@link MainLayerManager#addActiveLayerChangeListener(ActiveLayerChangeListener)} prevents listener from being added twice. 142 142 */ 143 143 @Test(expected = IllegalArgumentException.class) 144 144 public void testAddActiveLayerChangeListenerTwice() { -
test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java
diff --git a/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java b/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java index 16f329e..eed522f 100644
a b public class JOSMTestRules implements TestRule { 410 410 411 411 /** 412 412 * Set up before running a test 413 * @throws InitializationError If an error occur ed while creating the required environment.413 * @throws InitializationError If an error occurred while creating the required environment. 414 414 * @throws ReflectiveOperationException if a reflective access error occurs 415 415 */ 416 416 protected void before() throws InitializationError, ReflectiveOperationException {
Attachments (1)
Change History (14)
by , 6 years ago
comment:1 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 6 years ago
I was translating some strings in launchpad when I saw that "Plate Caree" wasn't right.
Then I did use https://github.com/ss18/grep-typos to spot more typos :-)
comment:5 by , 6 years ago
Milestone: | → 18.09 |
---|
comment:7 by , 6 years ago
Keywords: | typo added |
---|
comment:11 by , 4 years ago
I fixed a bunch of typos, 94 files affected so far. Should I open a new ticket or attach the patch here?
Note:
See TracTickets
for help on using tickets.
In 14273/josm: