Index: trunk/src/org/openstreetmap/josm/actions/mapmode/AddNoteAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/mapmode/AddNoteAction.java	(revision 9942)
+++ trunk/src/org/openstreetmap/josm/actions/mapmode/AddNoteAction.java	(revision 9944)
@@ -81,7 +81,5 @@
             noteData.createNote(latlon, input);
         } else {
-            Notification notification = new Notification(tr("You must enter a comment to create a new note"));
-            notification.setIcon(JOptionPane.WARNING_MESSAGE);
-            notification.show();
+            new Notification(tr("You must enter a comment to create a new note")).setIcon(JOptionPane.WARNING_MESSAGE).show();
         }
     }
