8264333: Use the blessed modifier order in jdk.jshell
Reviewed-by: iris, shade
This commit is contained in:
parent
d2a63f259e
commit
8735259f05
src/jdk.jshell/share/classes/jdk/jshell
@ -46,7 +46,7 @@ public abstract class Diag {
|
||||
/**
|
||||
* Used to signal that no position is available.
|
||||
*/
|
||||
public final static long NOPOS = Diagnostic.NOPOS;
|
||||
public static final long NOPOS = Diagnostic.NOPOS;
|
||||
|
||||
/**
|
||||
* Indicates whether this diagnostic is an error (as opposed to a warning or
|
||||
|
@ -36,11 +36,11 @@ import java.util.stream.Stream;
|
||||
*/
|
||||
class MaskCommentsAndModifiers {
|
||||
|
||||
private final static Set<String> IGNORED_MODIFIERS =
|
||||
private static final Set<String> IGNORED_MODIFIERS =
|
||||
Stream.of( "public", "protected", "private", "static" )
|
||||
.collect( Collectors.toSet() );
|
||||
|
||||
private final static Set<String> ALL_MODIFIERS =
|
||||
private static final Set<String> ALL_MODIFIERS =
|
||||
Stream.of(
|
||||
"public", "protected", "private",
|
||||
"static", "abstract", "final",
|
||||
|
@ -103,7 +103,7 @@ class TaskFactory {
|
||||
private final MemoryFileManager fileManager;
|
||||
private final JShell state;
|
||||
private String classpath = System.getProperty("java.class.path");
|
||||
private final static Version INITIAL_SUPPORTED_VER = Version.parse("9");
|
||||
private static final Version INITIAL_SUPPORTED_VER = Version.parse("9");
|
||||
|
||||
TaskFactory(JShell state) {
|
||||
this.state = state;
|
||||
|
Loading…
x
Reference in New Issue
Block a user