Skip to content

Commit

Permalink
Removing Note Creation Date
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kmpoppe committed Jun 20, 2021
1 parent 607bf67 commit 07b14b7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions notesolver/MANIFEST
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.10.7
Created-By: 1.8.0_251-b08 (Oracle Corporation)
Created-By: 1.8.0_281-b09 (Oracle Corporation)
Plugin-Mainversion: 16538
Plugin-Version: 0.3.2
Plugin-Version: 0.3.3
Plugin-Class: org.openstreetmap.josm.plugins.notesolver.NoteSolverPlug
in
Plugin-Description: Used for closing notes when uploading a changeset
and referencing them in each other's comments to keep references.
Plugin-Date: 2020-06-10T07:00:00.815
Plugin-Date: 2021-06-20T09:33:57.439
Author: Kai Michael Poppe
Plugin-Link: https://wiki.openstreetmap.org/wiki/User:Kmpoppe/Plugins#
noteSolver
Expand Down
2 changes: 1 addition & 1 deletion notesolver/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project name="notesolver" default="dist" basedir=".">
<property name="commit.message" value="Note Solver"/>
<property name="plugin.main.version" value="16538"/>
<property name="version.entry.commit.revision" value="0.3.2"/>
<property name="version.entry.commit.revision" value="0.3.3"/>
<property name="plugin.author" value="Kai Michael Poppe"/>
<property name="plugin.class" value="org.openstreetmap.josm.plugins.notesolver.NoteSolverPlugin"/>
<property name="plugin.description" value="Used for closing notes when uploading a changeset and referencing them in each other's comments to keep references."/>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ private String noteShortText(Note n) {
String menuItemText =
"* " + Long.toString(n.getId()) + " " +
"[" + n.getFirstComment().getUser().getName().toString() +
" @ " + DateFormat.getDateInstance().format(n.getCreatedAt()) +
// " @ " + DateFormat.getDateInstance().format(n.getCreatedAt()) +
": " + firstComment +
"]";
return menuItemText;
Expand Down

0 comments on commit 07b14b7

Please sign in to comment.