mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-11 22:19:43 +00:00
8139832: JShell API: Diag constructor should not be exposed and fix typo
Reviewed-by: jlahoda
This commit is contained in:
parent
d7af112d8d
commit
c7ff526996
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user