8139832: JShell API: Diag constructor should not be exposed and fix typo
authorrfield
Mon, 02 May 2016 08:54:14 -0700
changeset 37756 87dff934a38a
parent 37755 b0918e7eb16b
child 37757 f38cc75b6fa0
8139832: JShell API: Diag constructor should not be exposed and fix typo Reviewed-by: jlahoda
langtools/src/jdk.jshell/share/classes/jdk/jshell/Diag.java
--- a/langtools/src/jdk.jshell/share/classes/jdk/jshell/Diag.java	Mon May 02 12:57:05 2016 +0200
+++ b/langtools/src/jdk.jshell/share/classes/jdk/jshell/Diag.java	Mon May 02 08:54:14 2016 -0700
@@ -36,12 +36,18 @@
     // Simplified view on compiler Diagnostic.
 
     /**
+     * In-package creation only.
+     */
+    Diag() {
+    }
+
+    /**
      * Used to signal that no position is available.
      */
     public final static long NOPOS = Diagnostic.NOPOS;
 
     /**
-     * Is this diagnostic and error (as opposed to a warning or note)
+     * Is this diagnostic an error (as opposed to a warning or note)
      * @return true if this diagnostic is an error
      */
     public abstract boolean isError();