Skip to content

Commit 07b14b7

Browse files
committed
Removing Note Creation Date
At some point in time, getCreatedAt() for the Notes object was removed from JOSM which now leads to an unhandled exception. As a workaround the failing part of the code is removed as it was purely decorative.
1 parent 607bf67 commit 07b14b7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

notesolver/MANIFEST

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
Manifest-Version: 1.0
22
Ant-Version: Apache Ant 1.10.7
3-
Created-By: 1.8.0_251-b08 (Oracle Corporation)
3+
Created-By: 1.8.0_281-b09 (Oracle Corporation)
44
Plugin-Mainversion: 16538
5-
Plugin-Version: 0.3.2
5+
Plugin-Version: 0.3.3
66
Plugin-Class: org.openstreetmap.josm.plugins.notesolver.NoteSolverPlug
77
in
88
Plugin-Description: Used for closing notes when uploading a changeset
99
and referencing them in each other's comments to keep references.
10-
Plugin-Date: 2020-06-10T07:00:00.815
10+
Plugin-Date: 2021-06-20T09:33:57.439
1111
Author: Kai Michael Poppe
1212
Plugin-Link: https://wiki.openstreetmap.org/wiki/User:Kmpoppe/Plugins#
1313
noteSolver

notesolver/build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<project name="notesolver" default="dist" basedir=".">
33
<property name="commit.message" value="Note Solver"/>
44
<property name="plugin.main.version" value="16538"/>
5-
<property name="version.entry.commit.revision" value="0.3.2"/>
5+
<property name="version.entry.commit.revision" value="0.3.3"/>
66
<property name="plugin.author" value="Kai Michael Poppe"/>
77
<property name="plugin.class" value="org.openstreetmap.josm.plugins.notesolver.NoteSolverPlugin"/>
88
<property name="plugin.description" value="Used for closing notes when uploading a changeset and referencing them in each other's comments to keep references."/>
Binary file not shown.

notesolver/src/org/openstreetmap/josm/plugins/notesolver/NoteSolverPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ private String noteShortText(Note n) {
316316
String menuItemText =
317317
"* " + Long.toString(n.getId()) + " " +
318318
"[" + n.getFirstComment().getUser().getName().toString() +
319-
" @ " + DateFormat.getDateInstance().format(n.getCreatedAt()) +
319+
// " @ " + DateFormat.getDateInstance().format(n.getCreatedAt()) +
320320
": " + firstComment +
321321
"]";
322322
return menuItemText;

0 commit comments

Comments
 (0)