Index: /applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/ClockSystem.java
===================================================================
--- /applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/ClockSystem.java	(revision 30115)
+++ /applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/ClockSystem.java	(revision 30116)
@@ -5,7 +5,19 @@
 import java.util.Locale;
 
+/**
+ * Clock system (12 or 24 hours).
+ */
 public enum ClockSystem {
-    TWELVE_HOURS, TWENTYFOUR_HOURS;
+    
+    /** 12-hour clock system */
+    TWELVE_HOURS, 
+    /** 24-hour clock system */
+    TWENTYFOUR_HOURS;
 
+    /**
+     * Returns the clock system for the given locale.
+     * @param locale The locale
+     * @return the clock system for the given locale
+     */
     public static ClockSystem getClockSystem(Locale locale) {
         DateFormat stdFormat = DateFormat.getTimeInstance(DateFormat.SHORT, Locale.US);
Index: /applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/OheDialogPanel.java
===================================================================
--- /applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/OheDialogPanel.java	(revision 30115)
+++ /applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/OheDialogPanel.java	(revision 30116)
@@ -120,5 +120,8 @@
     }
 
-    // returns the compiled Time from the valueField
+    /**
+     * Returns the compiled Time from the valueField.
+     * @return the compiled Time from the valueField
+     */
     public ArrayList<int[]> getTime() throws Exception {
         String value = valueField.getText();
@@ -138,6 +141,7 @@
                     SyntaxException syntaxError = (SyntaxException) t;
                     tColumns = new int[] { syntaxError.getStartColumn(), syntaxError.getEndColumn() };
-                    info = syntaxError.getInfo();
+                    info = syntaxError.getMessage();
                 } else {
+                    info = t.getMessage();
                     Main.warn(t);
                 }
@@ -162,5 +166,5 @@
                 }
 
-                throw new Exception("Error in the TimeValue");
+                throw new Exception("Error in the TimeValue", t);
             }
         }
@@ -169,5 +173,7 @@
     }
 
-    // updates the valueField with the given timeRects
+    /**
+     * Updates the valueField with the given timeRects.
+     */
     public void updateValueField(ArrayList<TimeRect> timeRects) {
         if (valueField != null && timeRects != null)
@@ -180,5 +186,6 @@
 
     /**
-     * @return the hourMode
+     * Returns the clock system (12 or 24 hours).
+     * @return the clock system
      */
     public ClockSystem getHourMode() {
Index: /applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/OheEditor.java
===================================================================
--- /applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/OheEditor.java	(revision 30115)
+++ /applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/OheEditor.java	(revision 30116)
@@ -244,5 +244,7 @@
     }
 
-    // removes the given timerect from the panel and from the arraylist
+    /**
+     * Removes the given timerect from the panel and from the arraylist
+     */
     public void removeTimeRect(TimeRect timeRectToRemove) {
         timeRects.remove(timeRectToRemove);
Index: /applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/TimeRect.java
===================================================================
--- /applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/TimeRect.java	(revision 30115)
+++ /applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/TimeRect.java	(revision 30116)
@@ -19,6 +19,6 @@
 import javax.swing.JPopupMenu;
 
-public class TimeRect extends JPanel implements MouseListener,
-        MouseMotionListener {
+public class TimeRect extends JPanel implements MouseListener, MouseMotionListener {
+    
     public static final int[] transformCursorTypes = new int[] {
             Cursor.MOVE_CURSOR, Cursor.N_RESIZE_CURSOR,
@@ -53,6 +53,5 @@
     private int minuteEnd;
 
-    public TimeRect(OheEditor editor, int dayStart, int dayEnd,
-            int minutesStart, int minutesEnd) {
+    public TimeRect(OheEditor editor, int dayStart, int dayEnd, int minutesStart, int minutesEnd) {
         this.editor = editor;
 
@@ -117,6 +116,5 @@
     }
 
-    public static void drawTimeRect(Graphics2D g2D, Rectangle bounds,
-            boolean isZeroMinuteInterval, boolean isOpenEndInterval) {
+    public static void drawTimeRect(Graphics2D g2D, Rectangle bounds, boolean isZeroMinuteInterval, boolean isOpenEndInterval) {
 
         Color innerColor = new Color(135, 135, 234);
@@ -156,6 +154,5 @@
     private int transformType;
 
-    // Calculate where the Component was clicked and returns the
-    // transformtype
+    // Calculate where the Component was clicked and returns the transformtype
     private int getTransformType(MouseEvent evt) {
         int tmpClickAreaWidth = Math.min(clickAreaSize, getWidth() / 3);
Index: /applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/parser/OpeningTimeCompiler.jj
===================================================================
--- /applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/parser/OpeningTimeCompiler.jj	(revision 30115)
+++ /applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/parser/OpeningTimeCompiler.jj	(revision 30116)
@@ -50,10 +50,14 @@
 import org.openstreetmap.josm.plugins.ohe.OpeningTimeUtils.DateTime;
 
-public class OpeningTimeCompiler
-{
+public class OpeningTimeCompiler {
+
+  /**
+   * Abbreviated week days.
+   */
   public static final String[] WEEKDAYS = new String[] {"Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"};
-
-  public OpeningTimeCompiler(String time)
-  {
+  /**
+   * Constructs a new OpeningTimeCompiler.
+   */
+  public OpeningTimeCompiler(String time) {
     this(new ByteArrayInputStream(time.getBytes()), null);
   }
Index: /applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/parser/SyntaxException.java
===================================================================
--- /applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/parser/SyntaxException.java	(revision 30115)
+++ /applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/parser/SyntaxException.java	(revision 30116)
@@ -15,9 +15,6 @@
     }
 
-    public String getInfo() {
-        return info;
-    }
-
     public SyntaxException(String info, int startColumn, int endColumn) {
+        super(info);
         this.startColumn = startColumn;
         this.endColumn = endColumn;
