diff --git a/data/validator/numeric.mapcss b/data/validator/numeric.mapcss index 27e197c..5646988 100644 --- a/data/validator/numeric.mapcss +++ b/data/validator/numeric.mapcss @@ -29,7 +29,7 @@ } *[building:levels][building:levels !~ /^(([0-9]|[1-9][0-9]*)(\.5)?)$/], -*[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 seperated by a ; */ +*[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 ; */ throwWarning: tr("{0} should have numbers only with optional .5 increments", "{0.key}"); assertMatch: "node level=one"; assertMatch: "node level=01"; @@ -342,4 +342,4 @@ way["lanes:forward"]["lanes:forward" !~ /^[1-9]([0-9]*)$/][highway], assertNoMatch: "node ele=-12.1 m"; assertNoMatch: "node ele=12"; assertMatch: "node ele=high"; -} \ No newline at end of file +} diff --git a/src/javax/json/stream/JsonGenerator.java b/src/javax/json/stream/JsonGenerator.java index d85cbd6..73cbd85 100644 --- a/src/javax/json/stream/JsonGenerator.java +++ b/src/javax/json/stream/JsonGenerator.java @@ -99,7 +99,7 @@ import java.math.BigInteger; * *
* Other JSON values (that are not JSON objects or arrays) can be created - * by calling the appropiate {@code write} methods. + * by calling the appropriate {@code write} methods. *
* The following example shows how to generate a JSON string: *
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/src/org/apache/commons/jcs/utils/props/PropertyLoader.java
+++ b/src/org/apache/commons/jcs/utils/props/PropertyLoader.java
@@ -48,7 +48,7 @@ public abstract class PropertyLoader
/**
* Looks up a resource named 'name' in the classpath. The resource must map
- * to a file with .ccf extention. The name is assumed to be absolute and can
+ * to a file with .ccf extension. The name is assumed to be absolute and can
* use either "/" or "." for package segment separation with an optional
* leading "/" and optional ".ccf" suffix.
*
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/src/org/openstreetmap/gui/jmapviewer/interfaces/TileSource.java
+++ b/src/org/openstreetmap/gui/jmapviewer/interfaces/TileSource.java
@@ -91,7 +91,7 @@ public interface TileSource extends Attributed {
* @param lo1 longitude of first point
* @param la2 latitude of second point
* @param lo2 longitude of second point
- * @return the distance betwen first and second point, in m.
+ * @return the distance between first and second point, in m.
*/
double getDistance(double la1, double lo1, double la2, double lo2);
diff --git a/src/org/openstreetmap/josm/actions/AbstractMergeAction.java b/src/org/openstreetmap/josm/actions/AbstractMergeAction.java
index c02a743..ebcfdae 100644
--- a/src/org/openstreetmap/josm/actions/AbstractMergeAction.java
+++ b/src/org/openstreetmap/josm/actions/AbstractMergeAction.java
@@ -98,7 +98,7 @@ public abstract class AbstractMergeAction extends JosmAction {
* @param title title of dialog
* @param buttonText text of button used to select target layer
* @param buttonIcon icon name of button used to select target layer
- * @return choosen target layer
+ * @return chosen target layer
*/
@SuppressWarnings("unchecked")
public static T askTargetLayer(T[] targetLayers, String label, String title, String buttonText, String buttonIcon) {
diff --git a/src/org/openstreetmap/josm/actions/CloseChangesetAction.java b/src/org/openstreetmap/josm/actions/CloseChangesetAction.java
index 171eb6b..c7bd3b6 100644
--- a/src/org/openstreetmap/josm/actions/CloseChangesetAction.java
+++ b/src/org/openstreetmap/josm/actions/CloseChangesetAction.java
@@ -151,8 +151,8 @@ public class CloseChangesetAction extends JosmAction {
}
/**
- * Returns the last exception that occured.
- * @return the last exception that occured, or {@code null}
+ * Returns the last exception that occurred.
+ * @return the last exception that occurred, or {@code null}
*/
public Exception getLastException() {
return lastException;
diff --git a/src/org/openstreetmap/josm/actions/JosmAction.java b/src/org/openstreetmap/josm/actions/JosmAction.java
index b741c91..255d6e2 100644
--- a/src/org/openstreetmap/josm/actions/JosmAction.java
+++ b/src/org/openstreetmap/josm/actions/JosmAction.java
@@ -227,7 +227,7 @@ public abstract class JosmAction extends AbstractAction implements Destroyable {
}
/**
- * Overwrite this if {@link #updateEnabledState()} should be called when the active / availabe layers change. Default is true.
+ * Overwrite this if {@link #updateEnabledState()} should be called when the active / available layers change. Default is true.
* @return true
if a {@link LayerChangeListener} and a {@link ActiveLayerChangeListener} should be registered.
* @since 10353
*/
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/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
+++ b/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
@@ -736,7 +736,7 @@ public class DrawAction extends MapMode implements MapViewPaintable, DataSelecti
}
// If ALT is pressed, a new way should be created and that new way should get
- // selected. This works everytime unless the ways the nodes get inserted into
+ // selected. This works every time unless the ways the nodes get inserted into
// are already selected. This is the case when creating a self-overlapping way
// but pressing ALT prevents this. Therefore we must de-select the way manually
// here so /only/ the new way will be selected after this method finishes.
diff --git a/src/org/openstreetmap/josm/command/RotateCommand.java b/src/org/openstreetmap/josm/command/RotateCommand.java
index 2b4f17a..3d9a213 100644
--- a/src/org/openstreetmap/josm/command/RotateCommand.java
+++ b/src/org/openstreetmap/josm/command/RotateCommand.java
@@ -34,7 +34,7 @@ public class RotateCommand extends TransformNodesCommand {
/**
* Creates a RotateCommand.
- * Assign the initial object set, compute pivot point and inital rotation angle.
+ * Assign the initial object set, compute pivot point and initial rotation angle.
* @param objects objects to fetch nodes from
* @param currentEN cuurent eats/north
*/
diff --git a/src/org/openstreetmap/josm/data/Version.java b/src/org/openstreetmap/josm/data/Version.java
index f8bfa31..19e6195 100644
--- a/src/org/openstreetmap/josm/data/Version.java
+++ b/src/org/openstreetmap/josm/data/Version.java
@@ -154,9 +154,9 @@ public class Version {
}
/**
- * Replies true if this is a local build, i.e. an inofficial development build.
+ * Replies true if this is a local build, i.e. an unofficial development build.
*
- * @return true if this is a local build, i.e. an inofficial development build.
+ * @return true if this is a local build, i.e. an unofficial development build.
*/
public boolean isLocalBuild() {
return isLocalBuild;
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/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java
+++ b/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java
@@ -383,7 +383,7 @@ public abstract class JCSCachedTileLoaderJob implements
Logging.debug("JCS - Caching empty object {0}", getUrl());
return true;
} else {
- Logging.debug("JCS - failure during load - reponse is not loadable nor cached as empty");
+ Logging.debug("JCS - failure during load - response is not loadable nor cached as empty");
return false;
}
}
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/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
+++ b/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
@@ -489,7 +489,7 @@ public class WMTSTileSource extends AbstractTMSTileSource implements TemplatedTi
supportedMimeTypes.add("image/jpgpng"); // used by ESRI
supportedMimeTypes.add("image/png8"); // used by geoserver
if (supportedMimeTypes.contains("image/jpeg")) {
- supportedMimeTypes.add("image/jpg"); // sometimes mispelled by Arcgis
+ supportedMimeTypes.add("image/jpg"); // sometimes misspelled by Arcgis
}
Collection unsupportedFormats = new ArrayList<>();
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/src/org/openstreetmap/josm/data/osm/Storage.java
+++ b/src/org/openstreetmap/josm/data/osm/Storage.java
@@ -14,7 +14,7 @@ import org.openstreetmap.josm.tools.Utils;
/**
* A Set-like class that allows looking up equivalent preexising instance.
- * It is useful whereever one would use self-mapping construct like
+ * It is useful wherever one would use self-mapping construct like
* Map<T,T>.put(t,t)
, that is, for caches, uniqueness filters or similar.
*
* The semantics of equivalency can be external to the object, using the
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/src/org/openstreetmap/josm/data/osm/visitor/paint/ArrowPaintHelper.java
+++ b/src/org/openstreetmap/josm/data/osm/visitor/paint/ArrowPaintHelper.java
@@ -30,7 +30,7 @@ public class ArrowPaintHelper {
* Paint the arrow
* @param path The path to append the arrow to.
* @param point The point to paint the tip at
- * @param fromDirection The direction the line is comming from.
+ * @param fromDirection The direction the line is coming from.
*/
public void paintArrowAt(MapPath2D path, MapViewPoint point, MapViewPoint fromDirection) {
double x = point.getInViewX();
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/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
+++ b/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
@@ -161,7 +161,7 @@ public class StyledMapRenderer extends AbstractMapRenderer {
boolean negative = (value & 0x80000000L) != 0;
// Invert the sign bit, so that negative numbers are lower
value ^= 0x80000000L;
- // Now do the shift. Do it before accounting for negative numbers (symetry)
+ // Now do the shift. Do it before accounting for negative numbers (symmetry)
if (totalBits < 32) {
value >>= (32 - totalBits);
}
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/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFile.java
+++ b/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFile.java
@@ -45,7 +45,7 @@ import org.openstreetmap.josm.tools.Logging;
* Grid Shift files can be read as InputStreams or RandomAccessFiles.
* Loading an InputStream places all the required node information
* (accuracy data is optional) into heap based Java arrays. This is the
- * highest perfomance option, and is useful for large volume transformations.
+ * highest performance option, and is useful for large volume transformations.
* Non-file data sources (eg using an SQL Blob) are also supported through
* InputStream. The RandonAccessFile option has a much smaller memory
* footprint as only the Sub Grid headers are stored in memory, but
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/src/org/openstreetmap/josm/data/projection/proj/AbstractProj.java
+++ b/src/org/openstreetmap/josm/data/projection/proj/AbstractProj.java
@@ -111,7 +111,7 @@ public abstract class AbstractProj implements Proj {
/**
* Calculates the meridian distance. This is the distance along the central
* meridian from the equator to {@code phi}. Accurate to < 1e-5 meters
- * when used in conjuction with typical major axis values.
+ * when used in conjunction with typical major axis values.
*
* @param phi latitude to calculate meridian distance for.
* @param sphi sin(phi).
@@ -132,7 +132,7 @@ public abstract class AbstractProj implements Proj {
* Calculates the latitude ({@code phi}) from a meridian distance.
* Determines phi to TOL (1e-11) radians, about 1e-6 seconds.
*
- * @param arg meridian distance to calulate latitude for.
+ * @param arg meridian distance to calculate latitude for.
* @return the latitude of the meridian distance.
* @throws RuntimeException if the itteration does not converge.
*/
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/src/org/openstreetmap/josm/data/projection/proj/EquidistantCylindrical.java
+++ b/src/org/openstreetmap/josm/data/projection/proj/EquidistantCylindrical.java
@@ -36,7 +36,7 @@ public class EquidistantCylindrical extends AbstractProj {
@Override
public String getName() {
- return tr("Equidistant Cylindrical (Plate Caree)");
+ return tr("Equidistant Cylindrical (Plate Carrée)");
}
@Override
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/src/org/openstreetmap/josm/data/projection/proj/ObliqueMercator.java
+++ b/src/org/openstreetmap/josm/data/projection/proj/ObliqueMercator.java
@@ -141,7 +141,7 @@ public class ObliqueMercator extends AbstractProj implements ICentralMeridianPro
//////
/**
- * The azimuth of the central line passing throught the centre of the projection, in radians.
+ * The azimuth of the central line passing through the centre of the projection, in radians.
*/
protected double azimuth;
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/src/org/openstreetmap/josm/data/projection/proj/TransverseMercator.java
+++ b/src/org/openstreetmap/josm/data/projection/proj/TransverseMercator.java
@@ -15,8 +15,8 @@ import org.openstreetmap.josm.tools.Utils;
* is a cylindrical projection, in which the cylinder has been rotated 90°.
* Instead of being tangent to the equator (or to an other standard latitude),
* it is tangent to a central meridian. Deformation are more important as we
- * are going futher from the central meridian. The Transverse Mercator
- * projection is appropriate for region wich have a greater extent north-south
+ * are going further from the central meridian. The Transverse Mercator
+ * projection is appropriate for region which have a greater extent north-south
* than east-west.
*
*
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/src/org/openstreetmap/josm/data/validation/routines/DomainValidator.java
+++ b/src/org/openstreetmap/josm/data/validation/routines/DomainValidator.java
@@ -1880,11 +1880,11 @@ public final class DomainValidator extends AbstractValidator {
* @since 1.5.1 made public and added read-only array references
*/
public enum ArrayType {
- /** Update (or get a copy of) the GENERIC_TLDS_PLUS table containing additonal generic TLDs */
+ /** Update (or get a copy of) the GENERIC_TLDS_PLUS table containing additional generic TLDs */
GENERIC_PLUS,
/** Update (or get a copy of) the GENERIC_TLDS_MINUS table containing deleted generic TLDs */
GENERIC_MINUS,
- /** Update (or get a copy of) the COUNTRY_CODE_TLDS_PLUS table containing additonal country code TLDs */
+ /** Update (or get a copy of) the COUNTRY_CODE_TLDS_PLUS table containing additional country code TLDs */
COUNTRY_CODE_PLUS,
/** Update (or get a copy of) the COUNTRY_CODE_TLDS_MINUS table containing deleted country code TLDs */
COUNTRY_CODE_MINUS,
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/src/org/openstreetmap/josm/data/validation/routines/package.html
+++ b/src/org/openstreetmap/josm/data/validation/routines/package.html
@@ -19,7 +19,7 @@
Package Documentation for org.openstreetmap.josm.data.validation.routines Package
- This package contains independant validation routines adapted from Apache Commons Validator 1.5.0.
+ This package contains independent validation routines adapted from Apache Commons Validator 1.5.0.
Table of Contents
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/src/org/openstreetmap/josm/data/validation/tests/Addresses.java
+++ b/src/org/openstreetmap/josm/data/validation/tests/Addresses.java
@@ -262,7 +262,7 @@ public class Addresses extends Test {
checkHouseNumbersWithoutStreet(r);
checkForDuplicate(r);
if (r.hasTag("type", ASSOCIATED_STREET)) {
- // Used to count occurences of each house number in order to find duplicates
+ // Used to count occurrences of each house number in order to find duplicates
Map> map = new HashMap<>();
// Used to detect different street names
String relationName = r.get("name");
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/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
+++ b/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
@@ -247,13 +247,13 @@ public class MapCSSTagChecker extends Test.TagTest {
public static class ParseResult {
/** Checks successfully parsed */
public final List parseChecks;
- /** Errors that occured during parsing */
+ /** Errors that occurred during parsing */
public final Collection parseErrors;
/**
* Constructs a new {@code ParseResult}.
* @param parseChecks Checks successfully parsed
- * @param parseErrors Errors that occured during parsing
+ * @param parseErrors Errors that occurred during parsing
*/
public ParseResult(List parseChecks, Collection parseErrors) {
this.parseChecks = parseChecks;
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/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java
+++ b/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java
@@ -265,7 +265,7 @@ public class RelationChecker extends Test {
*
* @param n relation to validate
* @param allroles contains presets for specified relation
- * @param map contains statistics of occurances of specified role types in relation
+ * @param map contains statistics of occurrences of specified role types in relation
*/
private void checkRoles(Relation n, Map allroles, Map map) {
// go through all members of relation
diff --git a/src/org/openstreetmap/josm/gui/GettingStarted.java b/src/org/openstreetmap/josm/gui/GettingStarted.java
index 71cfe5c..951829f 100644
--- a/src/org/openstreetmap/josm/gui/GettingStarted.java
+++ b/src/org/openstreetmap/josm/gui/GettingStarted.java
@@ -114,7 +114,7 @@ public final class GettingStarted extends JPanel implements ProxyPreferenceListe
// We assume a default of myVersion because it only kicks in in two cases:
// 1. Not yet written - but so isn't the interval variable, so it gets updated anyway
// 2. Cannot be written (e.g. while developing). Obviously we don't want to update
- // everytime because of something we can't read.
+ // every time because of something we can't read.
return (Config.getPref().getInt("cache.motd.html.version", -999) == myVersion)
&& Config.getPref().get("cache.motd.html.java").equals(myJava)
&& Config.getPref().get("cache.motd.html.lang").equals(myLang);
diff --git a/src/org/openstreetmap/josm/gui/MainApplication.java b/src/org/openstreetmap/josm/gui/MainApplication.java
index aceadf9..7fbe8ab 100644
--- a/src/org/openstreetmap/josm/gui/MainApplication.java
+++ b/src/org/openstreetmap/josm/gui/MainApplication.java
@@ -977,7 +977,7 @@ public class MainApplication {
if ("true".equals(Config.getPref().get("prefer.ipv6", "auto"))
&& !"true".equals(Utils.updateSystemProperty("java.net.preferIPv6Addresses", "true"))) {
// never set this to false, only true!
- Logging.info(tr("Try enabling IPv6 network, prefering IPv6 over IPv4 (only works on early startup)."));
+ Logging.info(tr("Try enabling IPv6 network, preferring IPv6 over IPv4 (only works on early startup)."));
}
Utils.updateSystemProperty("http.agent", Version.getInstance().getAgentString());
Utils.updateSystemProperty("user.language", Config.getPref().get("language"));
@@ -1192,9 +1192,9 @@ public class MainApplication {
SSLSocketFactory.getDefault().createSocket(a, 443).close();
Utils.updateSystemProperty("java.net.preferIPv6Addresses", "true");
if (!wasv6) {
- Logging.info(tr("Detected useable IPv6 network, prefering IPv6 over IPv4 after next restart."));
+ Logging.info(tr("Detected useable IPv6 network, preferring IPv6 over IPv4 after next restart."));
} else {
- Logging.info(tr("Detected useable IPv6 network, prefering IPv6 over IPv4."));
+ Logging.info(tr("Detected useable IPv6 network, preferring IPv6 over IPv4."));
}
hasv6 = true;
}
@@ -1206,7 +1206,7 @@ public class MainApplication {
Logging.trace(e);
}
if (wasv6 && !hasv6) {
- Logging.info(tr("Detected no useable IPv6 network, prefering IPv4 over IPv6 after next restart."));
+ Logging.info(tr("Detected no useable IPv6 network, preferring IPv4 over IPv6 after next restart."));
Config.getPref().putBoolean("validated.ipv6", hasv6); // be sure it is stored before the restart!
try {
RestartAction.restartJOSM();
diff --git a/src/org/openstreetmap/josm/gui/MainFrame.java b/src/org/openstreetmap/josm/gui/MainFrame.java
index 28cd8ae..576a2bb 100644
--- a/src/org/openstreetmap/josm/gui/MainFrame.java
+++ b/src/org/openstreetmap/josm/gui/MainFrame.java
@@ -61,7 +61,7 @@ public class MainFrame extends JFrame {
/**
* Create a new main window. The parameter will be removed in the future.
- * @param geometry The inital geometry to use.
+ * @param geometry The initial geometry to use.
* @since 12127
*/
public MainFrame(WindowGeometry geometry) {
diff --git a/src/org/openstreetmap/josm/gui/MapViewState.java b/src/org/openstreetmap/josm/gui/MapViewState.java
index 1c3ecce..8e6a3bc 100644
--- a/src/org/openstreetmap/josm/gui/MapViewState.java
+++ b/src/org/openstreetmap/josm/gui/MapViewState.java
@@ -361,13 +361,13 @@ public final class MapViewState implements Serializable {
* Creates a new state that is the same as the current state except for that it is using the location of the given component.
*
* The view is moved so that the center is the same as the old center.
- * @param positon The new location to use.
+ * @param position The new location to use.
* @return The new state.
* @since 10375
*/
- public MapViewState usingLocation(JComponent positon) {
+ public MapViewState usingLocation(JComponent position) {
EastNorth center = this.getCenter().getEastNorth();
- return new MapViewState(positon, this).usingCenter(center);
+ return new MapViewState(position, this).usingCenter(center);
}
/**
@@ -540,7 +540,7 @@ public final class MapViewState implements Serializable {
/**
* Gets the direction in which this point is outside of the given view rectangle.
- * @param rect The rectangle to check agains.
+ * @param rect The rectangle to check against.
* @return The direction in which it is outside of the view, as OUTSIDE_... flags.
* @since 10827
*/
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/src/org/openstreetmap/josm/gui/bbox/BBoxChooser.java
+++ b/src/org/openstreetmap/josm/gui/bbox/BBoxChooser.java
@@ -26,7 +26,7 @@ public interface BBoxChooser {
/**
* Replies the currently selected bounding box in this BBoxChooser.
- * Replies null, if currently there isn't a bbox choosen in this
+ * Replies null, if currently there isn't a bbox chosen in this
* BBoxChooser.
*
* @return the currently selected bounding box
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/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java
+++ b/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java
@@ -370,7 +370,7 @@ public class SlippyMapBBoxChooser extends JMapViewer implements BBoxChooser, Cha
/**
* Sets the current bounding box in this bbox chooser without
- * emiting a property change event.
+ * emitting a property change event.
*
* @param bbox the bounding box. null to reset the bounding box
*/
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/src/org/openstreetmap/josm/gui/bugreport/DebugTextDisplay.java
+++ b/src/org/openstreetmap/josm/gui/bugreport/DebugTextDisplay.java
@@ -34,7 +34,7 @@ public class DebugTextDisplay extends JScrollPane {
}
/**
- * Creates a new text area with an inital text to display
+ * Creates a new text area with an initial text to display
* @param textToDisplay The text to display.
*/
public DebugTextDisplay(String textToDisplay) {
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/src/org/openstreetmap/josm/gui/bugreport/JosmUpdatePanel.java
+++ b/src/org/openstreetmap/josm/gui/bugreport/JosmUpdatePanel.java
@@ -75,7 +75,7 @@ public class JosmUpdatePanel extends JPanel {
* Display that there was an error while checking the current version.
*/
private void displayError() {
- testedVersionField.setText(tr("An error occured while checking if your JOSM instance is up to date."));
+ testedVersionField.setText(tr("An error occurred while checking if your JOSM instance is up to date."));
showUpdateButton();
}
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/src/org/openstreetmap/josm/gui/datatransfer/data/LayerTransferData.java
+++ b/src/org/openstreetmap/josm/gui/datatransfer/data/LayerTransferData.java
@@ -40,7 +40,7 @@ public class LayerTransferData extends LayerTransferable.Data {
}
/**
- * Gets the layer to be transfered.
+ * Gets the layer to be transferred.
* @return The layer
*/
public Layer getLayer() {
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/src/org/openstreetmap/josm/gui/datatransfer/data/PrimitiveTransferData.java
+++ b/src/org/openstreetmap/josm/gui/datatransfer/data/PrimitiveTransferData.java
@@ -21,7 +21,7 @@ import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
import org.openstreetmap.josm.tools.CompositeList;
/**
- * A list of primitives that are transfered. The list allows you to implicitly add primitives.
+ * A list of primitives that are transferred. The list allows you to implicitly add primitives.
* It distinguishes between primitives that were directly added and implicitly added ones.
* @author Michael Zangl
* @since 10604
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/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
+++ b/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
@@ -558,7 +558,7 @@ public class SelectionListDialog extends ToggleDialog {
/**
* Replies the collection of OSM primitives currently selected in the view of this model
*
- * @return choosen elements in the view
+ * @return chosen elements in the view
*/
public synchronized Collection getSelected() {
Set sel = new HashSet<>();
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/src/org/openstreetmap/josm/gui/download/PlaceSelection.java
+++ b/src/org/openstreetmap/josm/gui/download/PlaceSelection.java
@@ -268,7 +268,7 @@ public class PlaceSelection implements DownloadSelection {
} catch (SAXParseException e) {
if (!canceled) {
// Nominatim sometimes returns garbage, see #5934, #10643
- Logging.log(Logging.LEVEL_WARN, tr("Error occured with query ''{0}'': ''{1}''", urlString, e.getMessage()), e);
+ Logging.log(Logging.LEVEL_WARN, tr("Error occurred with query ''{0}'': ''{1}''", urlString, e.getMessage()), e);
GuiHelper.runInEDTAndWait(() -> HelpAwareOptionPane.showOptionDialog(
MainApplication.getMainFrame(),
tr("Name server returned invalid data. Please try again."),
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/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
+++ b/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
@@ -210,7 +210,7 @@ public class HistoryBrowserModel extends ChangeNotifier implements ActiveLayerCh
}
/**
- * Should be called everytime either reference of current changes to update the diff.
+ * Should be called every time either reference of current changes to update the diff.
* TODO: Maybe rename to reflect this? eg. updateNodeListTableModels
*/
private void initNodeListTableModels() {
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/src/org/openstreetmap/josm/gui/history/HistoryLoadTask.java
+++ b/src/org/openstreetmap/josm/gui/history/HistoryLoadTask.java
@@ -234,8 +234,8 @@ public class HistoryLoadTask extends PleaseWaitRunnable {
}
/**
- * Returns the last exception that occured during loading, if any.
- * @return the last exception that occured during loading, or {@code null}
+ * Returns the last exception that occurred during loading, if any.
+ * @return the last exception that occurred during loading, or {@code null}
*/
public Exception getLastException() {
return lastException;
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/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java
+++ b/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java
@@ -229,7 +229,7 @@ public class VersionInfoPanel extends JPanel implements ChangeListener {
/**
* Updates the content of this panel based on the changeset information given by {@code primitive}.
* @param primitive the primitive to extract the changeset information from
- * @param isLatest whether this relates to a not yet commited changeset
+ * @param isLatest whether this relates to a not yet committed changeset
*/
public void update(final OsmPrimitive primitive, final boolean isLatest) {
update(Changeset.fromPrimitive(primitive), isLatest, primitive.getTimestamp(), primitive.getVersion());
@@ -238,7 +238,7 @@ public class VersionInfoPanel extends JPanel implements ChangeListener {
/**
* Updates the content of this panel based on the changeset information given by {@code cs}.
* @param cs the changeset information
- * @param isLatest whether this relates to a not yet commited changeset
+ * @param isLatest whether this relates to a not yet committed changeset
* @param timestamp the timestamp
* @param version the version of the primitive
*/
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/src/org/openstreetmap/josm/gui/io/DownloadOpenChangesetsTask.java
+++ b/src/org/openstreetmap/josm/gui/io/DownloadOpenChangesetsTask.java
@@ -106,9 +106,9 @@ public class DownloadOpenChangesetsTask extends PleaseWaitRunnable {
// have the respective privileges or if he didn't or he can't authenticate with
// a username/password-pair.
//
- // Downgrade your knowlege about its identity if we've assumed that he was fully
+ // Downgrade your knowledge about its identity if we've assumed that he was fully
// identified. Otherwise, if he is anonymous or partially identified, keep our level
- // of knowlege.
+ // of knowledge.
//
if (im.isFullyIdentified()) {
im.setPartiallyIdentified(im.getUserName());
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/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java
+++ b/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java
@@ -654,7 +654,7 @@ public class SaveLayersDialog extends JDialog implements TableModelListener {
int numProblems = model.getNumCancel() + model.getNumFailed();
if (numProblems == 0)
return;
- Logging.warn(numProblems + " problems occured during upload/save");
+ Logging.warn(numProblems + " problems occurred during upload/save");
String msg = trn(
"An upload and/or save operation of one layer with modifications
"
+ "was canceled or has failed.",
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/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
+++ b/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
@@ -839,7 +839,7 @@ implements ImageObserver, TileLoaderListener, ZoomChangeListener, FilterChangeLi
/**
* Zoom out from map.
*
- * @return true, if zoom increasing was successfull, false othervise
+ * @return true, if zoom increasing was successful, false othervise
*/
public boolean decreaseZoomLevel() {
if (zoomDecreaseAllowed()) {
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/src/org/openstreetmap/josm/gui/layer/gpx/DownloadAlongPanel.java
+++ b/src/org/openstreetmap/josm/gui/layer/gpx/DownloadAlongPanel.java
@@ -109,8 +109,8 @@ public class DownloadAlongPanel extends JPanel {
}
/**
- * Gets the "download near" choosen value
- * @return the "download near" choosen value (0: track only, 1: waypoints only, 2: both)
+ * Gets the "download near" chosen value
+ * @return the "download near" chosen value (0: track only, 1: waypoints only, 2: both)
*/
public final int getNear() {
return downloadNear.getSelectedIndex();
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/src/org/openstreetmap/josm/gui/layer/imagery/TileCoordinateConverter.java
+++ b/src/org/openstreetmap/josm/gui/layer/imagery/TileCoordinateConverter.java
@@ -112,7 +112,7 @@ public class TileCoordinateConverter {
/**
* Gets the position of the tile inside the map view.
* @param tile The tile
- * @return The positon as a rectangle in screen coordinates
+ * @return The position as a rectangle in screen coordinates
*/
public Rectangle2D getRectangleForTile(Tile tile) {
ICoordinate c1 = tile.getTileSource().tileXYToLatLon(tile);
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/src/org/openstreetmap/josm/gui/mappaint/StyleSource.java
+++ b/src/org/openstreetmap/josm/gui/mappaint/StyleSource.java
@@ -140,7 +140,7 @@ public abstract class StyleSource extends SourceEntry {
}
/**
- * Log an error that occured with this style.
+ * Log an error that occurred with this style.
* @param e error
*/
public void logError(Throwable e) {
@@ -148,7 +148,7 @@ public abstract class StyleSource extends SourceEntry {
}
/**
- * Log a warning that occured with this style.
+ * Log a warning that occurred with this style.
* @param w warnings
*/
public void logWarning(String w) {
@@ -156,7 +156,7 @@ public abstract class StyleSource extends SourceEntry {
}
/**
- * Replies the collection of errors that occured with this style.
+ * Replies the collection of errors that occurred with this style.
* @return collection of errors
*/
public Collection getErrors() {
@@ -164,7 +164,7 @@ public abstract class StyleSource extends SourceEntry {
}
/**
- * Replies the collection of warnings that occured with this style.
+ * Replies the collection of warnings that occurred with this style.
* @return collection of warnings
*/
public Collection getWarnings() {
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/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSException.java
+++ b/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSException.java
@@ -6,9 +6,9 @@ package org.openstreetmap.josm.gui.mappaint.mapcss;
*/
public class MapCSSException extends RuntimeException {
- /** line number at which the parse error occured */
+ /** line number at which the parse error occurred */
protected Integer line;
- /** column number at which the parse error occured */
+ /** column number at which the parse error occurred */
protected Integer column;
/**
@@ -29,16 +29,16 @@ public class MapCSSException extends RuntimeException {
}
/**
- * Sets the column number at which the parse error occured.
- * @param column the column number at which the parse error occured
+ * Sets the column number at which the parse error occurred.
+ * @param column the column number at which the parse error occurred
*/
public void setColumn(int column) {
this.column = column;
}
/**
- * Sets the line number at which the parse error occured.
- * @param line the line number at which the parse error occured
+ * Sets the line number at which the parse error occurred.
+ * @param line the line number at which the parse error occurred
*/
public void setLine(int line) {
this.line = line;
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/src/org/openstreetmap/josm/gui/mappaint/styleelement/placement/OnLineStrategy.java
+++ b/src/org/openstreetmap/josm/gui/mappaint/styleelement/placement/OnLineStrategy.java
@@ -133,7 +133,7 @@ public class OnLineStrategy implements PositionForAreaStrategy {
}
});
- // find the segment with the best quality. If there are several with best quality, the one close to the center is prefered.
+ // find the segment with the best quality. If there are several with best quality, the one close to the center is preferred.
return longHalfSegment.stream().max(
Comparator.comparingDouble(segment -> segment.quality - 1e-5 * Math.abs(segment.offset - length / 2)));
}
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/src/org/openstreetmap/josm/gui/oauth/AuthorizationProcedureComboBox.java
+++ b/src/org/openstreetmap/josm/gui/oauth/AuthorizationProcedureComboBox.java
@@ -13,7 +13,7 @@ import javax.swing.UIManager;
import org.openstreetmap.josm.gui.widgets.JosmComboBox;
/**
- * Combo box that lets the user choose one of the avaliable {@link AuthorizationProcedure}s.
+ * Combo box that lets the user choose one of the available {@link AuthorizationProcedure}s.
*/
public class AuthorizationProcedureComboBox extends JosmComboBox {
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/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
+++ b/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
@@ -419,7 +419,7 @@ public final class PreferenceTabbedPane extends JTabbedPane implements MouseWhee
if (task != null) {
// if we have to launch a plugin download task we do it asynchronously, followed
- // by the remaining "save preferences" activites run on the Swing EDT.
+ // by the remaining "save preferences" activities run on the Swing EDT.
MainApplication.worker.submit(task);
MainApplication.worker.submit(() -> GuiHelper.runInEDT(continuation));
} else {
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/src/org/openstreetmap/josm/gui/tagging/TagEditorModel.java
+++ b/src/org/openstreetmap/josm/gui/tagging/TagEditorModel.java
@@ -711,7 +711,7 @@ public class TagEditorModel extends AbstractTableModel {
}
/**
- * A listener that is called whenever the cells may be updated from outside the editor and the editor should thus be commited.
+ * A listener that is called whenever the cells may be updated from outside the editor and the editor should thus be committed.
* @since 10604
*/
@FunctionalInterface
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/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetNameTemplateList.java
+++ b/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetNameTemplateList.java
@@ -47,9 +47,9 @@ public final class TaggingPresetNameTemplateList implements TaggingPresetListene
}
/**
- * Finds and returns the first occurence of preset with template name matching the given primitive
+ * Finds and returns the first occurrence of preset with template name matching the given primitive
* @param primitive The primitive to match
- * @return the first occurence of preset with template name matching the primitive
+ * @return the first occurrence of preset with template name matching the primitive
*/
public TaggingPreset findPresetTemplate(IPrimitive primitive) {
synchronized (this) {
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/src/org/openstreetmap/josm/gui/util/WindowGeometry.java
+++ b/src/org/openstreetmap/josm/gui/util/WindowGeometry.java
@@ -365,7 +365,7 @@ public class WindowGeometry {
}
/**
- * Determines if the bug affecting getMaximumWindowBounds() occured.
+ * Determines if the bug affecting getMaximumWindowBounds() occurred.
*
* @param maxbounds result of getMaximumWindowBounds()
* @return {@code true} if the bug happened, {@code false otherwise}
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/src/org/openstreetmap/josm/gui/widgets/JosmPasswordField.java
+++ b/src/org/openstreetmap/josm/gui/widgets/JosmPasswordField.java
@@ -129,7 +129,7 @@ public class JosmPasswordField extends JPasswordField implements FocusListener {
try {
pasteAction.actionPerformed(e);
} catch (NullPointerException npe) { // NOPMD
- Logging.log(Logging.LEVEL_ERROR, "NullPointerException occured because of JDK bug 6322854. "
+ Logging.log(Logging.LEVEL_ERROR, "NullPointerException occurred because of JDK bug 6322854. "
+"Copy/Paste operation has not been performed. Please complain to Oracle: "+
"https://bugs.openjdk.java.net/browse/JDK-6322854", npe);
}
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/src/org/openstreetmap/josm/gui/widgets/MultiSplitLayout.java
+++ b/src/org/openstreetmap/josm/gui/widgets/MultiSplitLayout.java
@@ -591,7 +591,7 @@ public class MultiSplitLayout implements LayoutManager {
/* First pass of the layout algorithm.
*
* If the Dividers are "floating" then set the bounds of each
- * node to accomodate the preferred size of all of the
+ * node to accommodate the preferred size of all of the
* Leaf's java.awt.Components. Otherwise, just set the bounds
* of each Leaf/Split node so that it's to the left of (for
* Split.isRowLayout() Split children) or directly above
diff --git a/src/org/openstreetmap/josm/io/DefaultProxySelector.java b/src/org/openstreetmap/josm/io/DefaultProxySelector.java
index 32bd8b0..4cf8d47 100644
--- a/src/org/openstreetmap/josm/io/DefaultProxySelector.java
+++ b/src/org/openstreetmap/josm/io/DefaultProxySelector.java
@@ -204,8 +204,8 @@ public class DefaultProxySelector extends ProxySelector {
}
/**
- * Determines if proxy errors have occured.
- * @return {@code true} if errors have occured, {@code false} otherwise.
+ * Determines if proxy errors have occurred.
+ * @return {@code true} if errors have occurred, {@code false} otherwise.
* @since 6523
*/
public final boolean hasErrors() {
diff --git a/src/org/openstreetmap/josm/io/NetworkManager.java b/src/org/openstreetmap/josm/io/NetworkManager.java
index 44a49b7..9b1b314 100644
--- a/src/org/openstreetmap/josm/io/NetworkManager.java
+++ b/src/org/openstreetmap/josm/io/NetworkManager.java
@@ -58,8 +58,8 @@ public final class NetworkManager {
}
/**
- * Returns the network errors that occured until now.
- * @return the network errors that occured until now, indexed by URL
+ * Returns the network errors that occurred until now.
+ * @return the network errors that occurred until now, indexed by URL
*/
public static Map getNetworkErrors() {
return new HashMap<>(NETWORK_ERRORS);
diff --git a/src/org/openstreetmap/josm/io/OsmApiException.java b/src/org/openstreetmap/josm/io/OsmApiException.java
index 7dbf290..c0cee75 100644
--- a/src/org/openstreetmap/josm/io/OsmApiException.java
+++ b/src/org/openstreetmap/josm/io/OsmApiException.java
@@ -23,7 +23,7 @@ public class OsmApiException extends OsmTransferException {
* See {@link java.net.HttpURLConnection HttpURLConnection} for predefined HTTP response code values
* @param errorHeader The error header, as transmitted in the {@code Error} field of the HTTP response header
* @param errorBody The error body, as transmitted in the HTTP response body
- * @param accessedUrl The complete URL accessed when this error occured
+ * @param accessedUrl The complete URL accessed when this error occurred
* @param login the login used to connect to OSM API (can be null)
* @param contentType the response content-type
* @since 13499
@@ -43,7 +43,7 @@ public class OsmApiException extends OsmTransferException {
* See {@link java.net.HttpURLConnection HttpURLConnection} for predefined HTTP response code values
* @param errorHeader The error header, as transmitted in the {@code Error} field of the HTTP response header
* @param errorBody The error body, as transmitted in the HTTP response body
- * @param accessedUrl The complete URL accessed when this error occured
+ * @param accessedUrl The complete URL accessed when this error occurred
* @param login the login used to connect to OSM API (can be null)
* @since 12992
*/
@@ -57,7 +57,7 @@ public class OsmApiException extends OsmTransferException {
* See {@link java.net.HttpURLConnection HttpURLConnection} for predefined HTTP response code values
* @param errorHeader The error header, as transmitted in the {@code Error} field of the HTTP response header
* @param errorBody The error body, as transmitted in the HTTP response body
- * @param accessedUrl The complete URL accessed when this error occured
+ * @param accessedUrl The complete URL accessed when this error occurred
* @since 5584
*/
public OsmApiException(int responseCode, String errorHeader, String errorBody, String accessedUrl) {
@@ -215,18 +215,18 @@ public class OsmApiException extends OsmTransferException {
}
/**
- * Sets the complete URL accessed when this error occured.
+ * Sets the complete URL accessed when this error occurred.
* This is distinct from the one set with {@link #setUrl}, which is generally only the base URL of the server.
- * @param url the complete URL accessed when this error occured.
+ * @param url the complete URL accessed when this error occurred.
*/
public void setAccessedUrl(String url) {
this.accessedUrl = url;
}
/**
- * Replies the complete URL accessed when this error occured.
+ * Replies the complete URL accessed when this error occurred.
* This is distinct from the one returned by {@link #getUrl}, which is generally only the base URL of the server.
- * @return the complete URL accessed when this error occured.
+ * @return the complete URL accessed when this error occurred.
*/
public String getAccessedUrl() {
return accessedUrl;
diff --git a/src/org/openstreetmap/josm/io/OsmApiInitializationException.java b/src/org/openstreetmap/josm/io/OsmApiInitializationException.java
index ba3492e..d09a047 100644
--- a/src/org/openstreetmap/josm/io/OsmApiInitializationException.java
+++ b/src/org/openstreetmap/josm/io/OsmApiInitializationException.java
@@ -2,7 +2,7 @@
package org.openstreetmap.josm.io;
/**
- * Exception thrown when a communication error occured with the OSM server during API initialization.
+ * Exception thrown when a communication error occurred with the OSM server during API initialization.
* @see OsmApi#initialize
*/
public class OsmApiInitializationException extends OsmTransferException {
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/src/org/openstreetmap/josm/io/remotecontrol/handler/AddWayHandler.java
+++ b/src/org/openstreetmap/josm/io/remotecontrol/handler/AddWayHandler.java
@@ -46,7 +46,7 @@ public class AddWayHandler extends RequestHandler {
private Way way;
/**
- * The place to remeber already added nodes (they are reused if needed @since 5845
+ * The place to remember already added nodes (they are reused if needed @since 5845
*/
private Map addedNodes;
diff --git a/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java b/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java
index 7740072..ac22f6f 100644
--- a/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java
+++ b/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java
@@ -212,8 +212,8 @@ public class PluginDownloadTask extends PleaseWaitRunnable {
}
/**
- * Replies the last exception that occured during download, or {@code null}.
- * @return the last exception that occured during download, or {@code null}
+ * Replies the last exception that occurred during download, or {@code null}.
+ * @return the last exception that occurred during download, or {@code null}
* @since 9621
*/
public Exception getLastException() {
diff --git a/src/org/openstreetmap/josm/plugins/PluginHandler.java b/src/org/openstreetmap/josm/plugins/PluginHandler.java
index 587e313..2fd2b56 100644
--- a/src/org/openstreetmap/josm/plugins/PluginHandler.java
+++ b/src/org/openstreetmap/josm/plugins/PluginHandler.java
@@ -270,7 +270,7 @@ public final class PluginHandler {
static final Collection pluginList = new LinkedList<>();
/**
- * All exceptions that occured during plugin loading
+ * All exceptions that occurred during plugin loading
*/
static final Map pluginLoadingExceptions = new HashMap<>();
@@ -1418,7 +1418,7 @@ public final class PluginHandler {
stack.addAll(Arrays.asList(current.getStackTrace()));
Throwable cause = current.getCause();
if (cause != null && seen.contains(cause)) {
- break; // circular refernce
+ break; // circular reference
}
current = cause;
}
diff --git a/src/org/openstreetmap/josm/tools/Geometry.java b/src/org/openstreetmap/josm/tools/Geometry.java
index 926f63a..78f51c3 100644
--- a/src/org/openstreetmap/josm/tools/Geometry.java
+++ b/src/org/openstreetmap/josm/tools/Geometry.java
@@ -365,7 +365,7 @@ public final class Geometry {
// Basically, the formula from wikipedia is used:
// https://en.wikipedia.org/wiki/Line%E2%80%93line_intersection
// However, large numbers lead to rounding errors (see #10286).
- // To avoid this, p1 is first substracted from each of the points:
+ // To avoid this, p1 is first subtracted from each of the points:
// p1' = 0
// p2' = p2 - p1
// p3' = p3 - p1
diff --git a/src/org/openstreetmap/josm/tools/Logging.java b/src/org/openstreetmap/josm/tools/Logging.java
index c345656..eb38866 100644
--- a/src/org/openstreetmap/josm/tools/Logging.java
+++ b/src/org/openstreetmap/josm/tools/Logging.java
@@ -460,7 +460,7 @@ public final class Logging {
}
/**
- * Provides direct access to the logger used. Use of methods like {@link #warn(String)} is prefered.
+ * Provides direct access to the logger used. Use of methods like {@link #warn(String)} is preferred.
* @return The logger
*/
public static Logger getLogger() {
diff --git a/src/org/openstreetmap/josm/tools/MemoryManager.java b/src/org/openstreetmap/josm/tools/MemoryManager.java
index 9d2d8a9..f188b7c 100644
--- a/src/org/openstreetmap/josm/tools/MemoryManager.java
+++ b/src/org/openstreetmap/josm/tools/MemoryManager.java
@@ -115,7 +115,7 @@ public class MemoryManager {
/**
* Gets the content of this memory area.
*
- * This method should be the prefered access to the memory since it will do error checking when {@link #free()} was called.
+ * This method should be the preferred access to the memory since it will do error checking when {@link #free()} was called.
* @return The memory area content.
*/
T get();
diff --git a/src/org/openstreetmap/josm/tools/PlatformHook.java b/src/org/openstreetmap/josm/tools/PlatformHook.java
index 14b8dfc..9130199 100644
--- a/src/org/openstreetmap/josm/tools/PlatformHook.java
+++ b/src/org/openstreetmap/josm/tools/PlatformHook.java
@@ -59,7 +59,7 @@ public interface PlatformHook {
Platform getPlatform();
/**
- * The preStartupHook will be called extremly early. It is
+ * The preStartupHook will be called extremely early. It is
* guaranteed to be called before the GUI setup has started.
*
* Reason: On OSX we need to inform the Swing libraries
diff --git a/src/org/openstreetmap/josm/tools/PlatformHookWindows.java b/src/org/openstreetmap/josm/tools/PlatformHookWindows.java
index 49129d1..8b99465 100644
--- a/src/org/openstreetmap/josm/tools/PlatformHookWindows.java
+++ b/src/org/openstreetmap/josm/tools/PlatformHookWindows.java
@@ -429,7 +429,7 @@ public class PlatformHookWindows implements PlatformHook {
}
} catch (ArrayIndexOutOfBoundsException e) {
// catch error of JDK-8172244 as bug seems to not be fixed anytime soon
- Logging.log(Logging.LEVEL_ERROR, "JDK-8172244 occured. Abort HTTPS setup", e);
+ Logging.log(Logging.LEVEL_ERROR, "JDK-8172244 occurred. Abort HTTPS setup", e);
return false;
}
if (!GraphicsEnvironment.isHeadless()) {
diff --git a/src/org/openstreetmap/josm/tools/XmlParsingException.java b/src/org/openstreetmap/josm/tools/XmlParsingException.java
index 032f987..83f53ff 100644
--- a/src/org/openstreetmap/josm/tools/XmlParsingException.java
+++ b/src/org/openstreetmap/josm/tools/XmlParsingException.java
@@ -40,8 +40,8 @@ public class XmlParsingException extends SAXException {
}
/**
- * Sets the location (line/column) where the exception occured.
- * @param locator object giving the location (line/column) where the exception occured
+ * Sets the location (line/column) where the exception occurred.
+ * @param locator object giving the location (line/column) where the exception occurred
* @return {@code this}
*/
public XmlParsingException rememberLocation(Locator locator) {
@@ -64,16 +64,16 @@ public class XmlParsingException extends SAXException {
}
/**
- * Returns the column number where the exception occured.
- * @return the column number where the exception occured
+ * Returns the column number where the exception occurred.
+ * @return the column number where the exception occurred
*/
public int getColumnNumber() {
return columnNumber;
}
/**
- * Returns the line number where the exception occured.
- * @return the line number where the exception occured
+ * Returns the line number where the exception occurred.
+ * @return the line number where the exception occurred
*/
public int getLineNumber() {
return lineNumber;
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/src/org/openstreetmap/josm/tools/bugreport/BugReportSender.java
+++ b/src/org/openstreetmap/josm/tools/bugreport/BugReportSender.java
@@ -160,7 +160,7 @@ public class BugReportSender extends Thread {
}
/**
- * Returns the error message that could have occured during bug sending.
+ * Returns the error message that could have occurred during bug sending.
* @return the error message, or {@code null} if successful
*/
public final String getErrorMessage() {
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/test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java
+++ b/test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java
@@ -116,7 +116,7 @@ public class ProjectionRefTest {
private static Collection readData() throws IOException {
Collection result = new ArrayList<>();
if (!new File(REFERENCE_DATA_FILE).exists()) {
- System.err.println("Warning: refrence file does not exist.");
+ System.err.println("Warning: reference file does not exist.");
return result;
}
try (BufferedReader in = new BufferedReader(new InputStreamReader(
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/test/unit/org/openstreetmap/josm/data/validation/tests/TagCheckerTest.java
+++ b/test/unit/org/openstreetmap/josm/data/validation/tests/TagCheckerTest.java
@@ -41,7 +41,7 @@ public class TagCheckerTest {
}
/**
- * Check for mispelled key.
+ * Check for misspelled key.
* @throws IOException if any I/O error occurs
*/
@Test
@@ -54,7 +54,7 @@ public class TagCheckerTest {
}
/**
- * Check for mispelled key.
+ * Check for misspelled key.
* @throws IOException if any I/O error occurs
*/
@Test
@@ -67,7 +67,7 @@ public class TagCheckerTest {
}
/**
- * Check for mispelled key where the suggested alternative is in use. The error should not be fixable.
+ * Check for misspelled key where the suggested alternative is in use. The error should not be fixable.
* @throws IOException if any I/O error occurs
*/
@Test
@@ -93,7 +93,7 @@ public class TagCheckerTest {
}
/**
- * Check for mispelled value.
+ * Check for misspelled value.
* @throws IOException if any I/O error occurs
*/
@Test
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/test/unit/org/openstreetmap/josm/gui/layer/MainLayerManagerTest.java
+++ b/test/unit/org/openstreetmap/josm/gui/layer/MainLayerManagerTest.java
@@ -138,7 +138,7 @@ public class MainLayerManagerTest extends LayerManagerTest {
}
/**
- * Test if {@link MainLayerManager#addActiveLayerChangeListener(ActiveLayerChangeListener)} prevents listener from beeing added twice.
+ * Test if {@link MainLayerManager#addActiveLayerChangeListener(ActiveLayerChangeListener)} prevents listener from being added twice.
*/
@Test(expected = IllegalArgumentException.class)
public void testAddActiveLayerChangeListenerTwice() {
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/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java
+++ b/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java
@@ -410,7 +410,7 @@ public class JOSMTestRules implements TestRule {
/**
* Set up before running a test
- * @throws InitializationError If an error occured while creating the required environment.
+ * @throws InitializationError If an error occurred while creating the required environment.
* @throws ReflectiveOperationException if a reflective access error occurs
*/
protected void before() throws InitializationError, ReflectiveOperationException {