changeset 3371:ceb435d36186

8139832: JShell API: Diag constructor should not be exposed and fix typo Reviewed-by: jlahoda
author rfield
date Mon, 02 May 2016 08:54:14 -0700
parents b82035aa5622
children a3e5875a0b7e
files src/jdk.jshell/share/classes/jdk/jshell/Diag.java
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.jshell/share/classes/jdk/jshell/Diag.java	Mon May 02 12:57:05 2016 +0200
+++ b/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();