8139832: JShell API: Diag constructor should not be exposed and fix typo

Reviewed-by: jlahoda
This commit is contained in:
Robert Field 2016-05-02 08:54:14 -07:00
parent d7af112d8d
commit c7ff526996

View File

@ -35,13 +35,19 @@ import javax.tools.Diagnostic;
public abstract class Diag {
// 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();