diff --git a/ivysettings.xml b/ivysettings.xml
index 6e9cdfcff9f..f02e7f83064 100644
--- a/ivysettings.xml
+++ b/ivysettings.xml
@@ -5,4 +5,7 @@
+
+
+
diff --git a/src/org/openstreetmap/josm/actions/CloseChangesetAction.java b/src/org/openstreetmap/josm/actions/CloseChangesetAction.java
index 02e8c0d456e..9a079bfc57b 100644
--- a/src/org/openstreetmap/josm/actions/CloseChangesetAction.java
+++ b/src/org/openstreetmap/josm/actions/CloseChangesetAction.java
@@ -35,7 +35,7 @@
/**
* User action to close open changesets.
- *
+ *
* The list of open changesets will be downloaded from the server and presented
* to the user.
*/
@@ -109,11 +109,12 @@ protected void cancel() {
@Override
protected void finish() {
SwingUtilities.invokeLater(() -> {
- if (lastException != null) {
- ExceptionDialogUtil.explainException(lastException);
+ Exception exception = getLastException();
+ if (exception != null) {
+ ExceptionDialogUtil.explainException(exception);
}
ChangesetCache.getInstance().update(changesets);
- if (!canceled && lastException == null) {
+ if (!isCanceled() && exception == null) {
onPostDownloadOpenChangesets();
}
});
diff --git a/src/org/openstreetmap/josm/actions/JoinAreasAction.java b/src/org/openstreetmap/josm/actions/JoinAreasAction.java
index fec9fe392a5..3615ad59a86 100644
--- a/src/org/openstreetmap/josm/actions/JoinAreasAction.java
+++ b/src/org/openstreetmap/josm/actions/JoinAreasAction.java
@@ -245,7 +245,7 @@ public AssembledMultipolygon(AssembledPolygon way) {
}
/**
- * This hepler class implements algorithm traversing trough connected ways.
+ * This helper class implements algorithm traversing through connected ways.
* Assumes you are going in clockwise orientation.
* @author viesturs
*/
diff --git a/src/org/openstreetmap/josm/actions/OpenFileAction.java b/src/org/openstreetmap/josm/actions/OpenFileAction.java
index b2882845812..be8153cd796 100644
--- a/src/org/openstreetmap/josm/actions/OpenFileAction.java
+++ b/src/org/openstreetmap/josm/actions/OpenFileAction.java
@@ -274,7 +274,7 @@ protected void alertFilesWithUnknownImporter(Collection files) {
protected void realRun() throws SAXException, IOException, OsmTransferException {
if (Utils.isEmpty(files)) return;
- /**
+ /*
* Find the importer with the chosen file filter
*/
FileImporter chosenImporter = null;
@@ -285,7 +285,7 @@ protected void realRun() throws SAXException, IOException, OsmTransferException
}
}
}
- /**
+ /*
* If the filter hasn't been changed in the dialog, chosenImporter is null now.
* When the filter has been set explicitly to AllFormatsImporter, treat this the same.
*/
diff --git a/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java b/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java
index 2a1f27e4114..3483442798e 100644
--- a/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java
+++ b/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java
@@ -268,7 +268,7 @@ private static List paramCleanup(Collection params) {
* @return map that maps shortened name to full directory path
*/
static Map getAnonimicDirectorySymbolMap() {
- /** maps the anonymized name to the actual used path */
+ /* maps the anonymized name to the actual used path */
Map map = new LinkedHashMap<>();
map.put(PlatformManager.isPlatformWindows() ? "%JAVA_HOME%" : "${JAVA_HOME}", getSystemEnv("JAVA_HOME"));
map.put("", getSystemProperty("java.home"));
diff --git a/src/org/openstreetmap/josm/actions/UploadAction.java b/src/org/openstreetmap/josm/actions/UploadAction.java
index b0bd3d48e24..4104b9bb367 100644
--- a/src/org/openstreetmap/josm/actions/UploadAction.java
+++ b/src/org/openstreetmap/josm/actions/UploadAction.java
@@ -72,27 +72,27 @@ public class UploadAction extends AbstractUploadAction {
private static final String IS_ASYNC_UPLOAD_ENABLED = "asynchronous.upload";
static {
- /**
+ /*
* Calls validator before upload.
*/
UPLOAD_HOOKS.add(new ValidateUploadHook());
- /**
+ /*
* Fixes database errors
*/
UPLOAD_HOOKS.add(new FixDataHook());
- /**
+ /*
* Checks server capabilities before upload.
*/
UPLOAD_HOOKS.add(new ApiPreconditionCheckerHook());
- /**
+ /*
* Adjusts the upload order of new relations
*/
UPLOAD_HOOKS.add(new RelationUploadOrderHook());
- /**
+ /*
* Removes discardable tags like created_by on modified objects
*/
LATE_UPLOAD_HOOKS.add(new DiscardTagsHook());
diff --git a/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java b/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java
index 55b14af6394..79d75a00964 100644
--- a/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java
+++ b/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java
@@ -55,35 +55,30 @@
/**
* MapMode for making parallel ways.
- *
+ *
* All calculations are done in projected coordinates.
- *
+ *
* TODO:
+ *
* == Functionality ==
- *
- * 1. Use selected nodes as split points for the selected ways.
- *
+ *
+ * - Use selected nodes as split points for the selected ways.
+ *
* The ways containing the selected nodes will be split and only the "inner"
- * parts will be copied
- *
- * 2. Enter exact offset
- *
- * 3. Improve snapping
- *
- * 4. Visual cues could be better
- *
- * 5. (long term) Parallelize and adjust offsets of existing ways
- *
+ * parts will be copied
+ * - Enter exact offset
+ * - Improve snapping
+ * - Visual cues could be better
+ * - (long term) Parallelize and adjust offsets of existing ways
+ *
* == Code quality ==
- *
- * a) The mode, flags, and modifiers might be updated more than necessary.
- *
- * Not a performance problem, but better if they where more centralized
- *
- * b) Extract generic MapMode services into a super class and/or utility class
- *
- * c) Maybe better to simply draw our own source way highlighting?
- *
+ *
+ * - The mode, flags, and modifiers might be updated more than necessary.
+ *
+ * Not a performance problem, but better if they where more centralized
+ * - Extract generic MapMode services into a super class and/or utility class
+ * - Maybe better to simply draw our own source way highlighting?
+ *
* Current code doesn't not take into account that ways might been highlighted
* by other than us. Don't think that situation should ever happen though.
*
@@ -351,7 +346,7 @@ private static void removeWayHighlighting(Collection ways) {
@Override
public void mouseDragged(MouseEvent e) {
- // WTF.. the event passed here doesn't have button info?
+ // WTF... the event passed here doesn't have button info?
// Since we get this event from other buttons too, we must check that
// _BUTTON1_ is down.
if (!mouseIsDown)
@@ -455,7 +450,7 @@ private boolean matchesCurrentModifiers(Map spec) {
if (shift) {
modifiers.add(Modifier.SHIFT);
}
- return spec.entrySet().stream().allMatch(entry -> modifiers.contains(entry.getKey()) == entry.getValue().booleanValue());
+ return spec.entrySet().stream().allMatch(entry -> modifiers.contains(entry.getKey()) == entry.getValue());
}
private boolean isModifiersValidForDragMode() {
@@ -464,11 +459,11 @@ private boolean isModifiersValidForDragMode() {
}
private void updateFlagsOnlyChangeableOnPress() {
- copyTags = COPY_TAGS_DEFAULT.get().booleanValue() != matchesCurrentModifiers(COPY_TAGS_MODIFIER_COMBO);
+ copyTags = COPY_TAGS_DEFAULT.get() != matchesCurrentModifiers(COPY_TAGS_MODIFIER_COMBO);
}
private void updateFlagsChangeableAlways() {
- snap = SNAP_DEFAULT.get().booleanValue() != matchesCurrentModifiers(SNAP_MODIFIER_COMBO);
+ snap = SNAP_DEFAULT.get() != matchesCurrentModifiers(SNAP_MODIFIER_COMBO);
}
// We keep the source ways and the selection in sync so the user can see the source way's tags
@@ -553,7 +548,7 @@ private static String prefKey(String subKey) {
private static class KeyboardModifiersProperty extends AbstractToStringProperty