Index: trunk/src/org/openstreetmap/josm/data/osm/NameFormatter.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/NameFormatter.java	(revision 9201)
+++ trunk/src/org/openstreetmap/josm/data/osm/NameFormatter.java	(revision 9203)
@@ -4,11 +4,40 @@
 import java.util.Comparator;
 
+/**
+ * Formats a name for a {@link OsmPrimitive}.
+ * @since 1990
+ */
 public interface NameFormatter {
+
+    /**
+     * Formats a name for a {@link Node}.
+     *
+     * @param node the node
+     * @return the name
+     */
     String format(Node node);
 
+    /**
+     * Formats a name for a {@link Way}.
+     *
+     * @param way the way
+     * @return the name
+     */
     String format(Way way);
 
+    /**
+     * Formats a name for a {@link Relation}.
+     *
+     * @param relation the relation
+     * @return the name
+     */
     String format(Relation relation);
 
+    /**
+     * Formats a name for a {@link Changeset}.
+     *
+     * @param changeset the changeset
+     * @return the name
+     */
     String format(Changeset changeset);
 
Index: trunk/src/org/openstreetmap/josm/data/osm/history/HistoryNameFormatter.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/history/HistoryNameFormatter.java	(revision 9201)
+++ trunk/src/org/openstreetmap/josm/data/osm/history/HistoryNameFormatter.java	(revision 9203)
@@ -2,9 +2,32 @@
 package org.openstreetmap.josm.data.osm.history;
 
+/**
+ * Formats a name for a {@link HistoryOsmPrimitive}.
+ * @since 2686
+ */
 public interface HistoryNameFormatter {
+
+    /**
+     * Formats a name for a {@link HistoryNode}.
+     *
+     * @param node the node
+     * @return the name
+     */
     String format(HistoryNode node);
 
-    String format(HistoryWay node);
+    /**
+     * Formats a name for a {@link HistoryWay}.
+     *
+     * @param way the way
+     * @return the name
+     */
+    String format(HistoryWay way);
 
-    String format(HistoryRelation node);
+    /**
+     * Formats a name for a {@link HistoryRelation}.
+     *
+     * @param relation the relation
+     * @return the name
+     */
+    String format(HistoryRelation relation);
 }
Index: trunk/src/org/openstreetmap/josm/gui/DefaultNameFormatter.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/DefaultNameFormatter.java	(revision 9201)
+++ trunk/src/org/openstreetmap/josm/gui/DefaultNameFormatter.java	(revision 9203)
@@ -45,6 +45,7 @@
 
 /**
- * This is the default implementation of a {@link NameFormatter} for names of {@link OsmPrimitive}s.
- *
+ * This is the default implementation of a {@link NameFormatter} for names of {@link OsmPrimitive}s
+ * and {@link HistoryOsmPrimitive}s.
+ * @since 1990
  */
 public class DefaultNameFormatter implements NameFormatter, HistoryNameFormatter {
@@ -135,10 +136,4 @@
     }
 
-    /**
-     * Formats a name for a node
-     *
-     * @param node the node
-     * @return the name
-     */
     @Override
     public String format(Node node) {
@@ -211,11 +206,4 @@
     }
 
-
-    /**
-     * Formats a name for a way
-     *
-     * @param way the way
-     * @return the name
-     */
     @Override
     public String format(Way way) {
@@ -249,8 +237,8 @@
                 }
                 if (n == null) {
-                    n =     (way.get("highway") != null) ? tr("highway") :
-                                (way.get("railway") != null) ? tr("railway") :
-                                    (way.get("waterway") != null) ? tr("waterway") :
-                                            (way.get("landuse") != null) ? tr("landuse") : null;
+                    n = (way.get("highway") != null) ? tr("highway") :
+                            (way.get("railway") != null) ? tr("railway") :
+                                (way.get("waterway") != null) ? tr("waterway") :
+                                        (way.get("landuse") != null) ? tr("landuse") : null;
                 }
                 if (n == null) {
@@ -313,11 +301,4 @@
     }
 
-
-    /**
-     * Formats a name for a relation
-     *
-     * @param relation the relation
-     * @return the name
-     */
     @Override
     public String format(Relation relation) {
@@ -488,10 +469,4 @@
     }
 
-    /**
-     * Formats a name for a changeset
-     *
-     * @param changeset the changeset
-     * @return the name
-     */
     @Override
     public String format(Changeset changeset) {
@@ -554,10 +529,4 @@
     }
 
-    /**
-     * Formats a name for a history node
-     *
-     * @param node the node
-     * @return the name
-     */
     @Override
     public String format(HistoryNode node) {
@@ -586,10 +555,4 @@
     }
 
-    /**
-     * Formats a name for a way
-     *
-     * @param way the way
-     * @return the name
-     */
     @Override
     public String format(HistoryWay way) {
@@ -628,10 +591,4 @@
     }
 
-    /**
-     * Formats a name for a {@link HistoryRelation})
-     *
-     * @param relation the relation
-     * @return the name
-     */
     @Override
     public String format(HistoryRelation relation) {
@@ -684,4 +641,9 @@
     }
 
+    /**
+     * Formats the given collection of primitives as an HTML unordered list.
+     * @param primitives collection of primitives to format
+     * @return HTML unordered list
+     */
     public String formatAsHtmlUnorderedList(Collection<? extends OsmPrimitive> primitives) {
         return Utils.joinAsHtmlUnorderedList(Utils.transform(primitives, new Function<OsmPrimitive, String>() {
@@ -694,4 +656,9 @@
     }
 
+    /**
+     * Formats the given primitive(s) as an HTML unordered list.
+     * @param primitives primitive(s) to format
+     * @return HTML unordered list
+     */
     public String formatAsHtmlUnorderedList(OsmPrimitive... primitives) {
         return formatAsHtmlUnorderedList(Arrays.asList(primitives));
