Index: trunk/src/org/openstreetmap/josm/data/validation/util/NameVisitor.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/validation/util/NameVisitor.java	(revision 13938)
+++ trunk/src/org/openstreetmap/josm/data/validation/util/NameVisitor.java	(revision 13939)
@@ -41,4 +41,8 @@
     public Icon icon;
 
+    private static final Icon nodeIcon = ImageProvider.get("data", "node");
+    private static final Icon wayIcon = ImageProvider.get("data", "way");
+    private static final Icon relIcon = ImageProvider.get("data", "relation");
+
     /**
      * If the node has a name-key or id-key, this is displayed. If not, (lat,lon) is displayed.
@@ -47,5 +51,5 @@
     public void visit(Node n) {
         name = n.getDisplayName(DefaultNameFormatter.getInstance());
-        icon = ImageProvider.get("data", "node");
+        icon = nodeIcon;
         className = "node";
         classNamePlural = trn("node", "nodes", 2);
@@ -59,5 +63,5 @@
     public void visit(Way w) {
         name = w.getDisplayName(DefaultNameFormatter.getInstance());
-        icon = ImageProvider.get("data", "way");
+        icon = wayIcon;
         className = "way";
         classNamePlural = trn("way", "ways", 2);
@@ -67,5 +71,5 @@
     public void visit(Relation e) {
         name = e.getDisplayName(DefaultNameFormatter.getInstance());
-        icon = ImageProvider.get("data", "relation");
+        icon = relIcon;
         className = "relation";
         classNamePlural = trn("relation", "relations", 2);
