Skip to content

Commit 8735259

Browse files
alblueshipilev
authored andcommitted
8264333: Use the blessed modifier order in jdk.jshell
Reviewed-by: iris, shade
1 parent d2a63f2 commit 8735259

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/jdk.jshell/share/classes/jdk/jshell/Diag.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public abstract class Diag {
4646
/**
4747
* Used to signal that no position is available.
4848
*/
49-
public final static long NOPOS = Diagnostic.NOPOS;
49+
public static final long NOPOS = Diagnostic.NOPOS;
5050

5151
/**
5252
* Indicates whether this diagnostic is an error (as opposed to a warning or

src/jdk.jshell/share/classes/jdk/jshell/MaskCommentsAndModifiers.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
*/
3737
class MaskCommentsAndModifiers {
3838

39-
private final static Set<String> IGNORED_MODIFIERS =
39+
private static final Set<String> IGNORED_MODIFIERS =
4040
Stream.of( "public", "protected", "private", "static" )
4141
.collect( Collectors.toSet() );
4242

43-
private final static Set<String> ALL_MODIFIERS =
43+
private static final Set<String> ALL_MODIFIERS =
4444
Stream.of(
4545
"public", "protected", "private",
4646
"static", "abstract", "final",

src/jdk.jshell/share/classes/jdk/jshell/TaskFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class TaskFactory {
103103
private final MemoryFileManager fileManager;
104104
private final JShell state;
105105
private String classpath = System.getProperty("java.class.path");
106-
private final static Version INITIAL_SUPPORTED_VER = Version.parse("9");
106+
private static final Version INITIAL_SUPPORTED_VER = Version.parse("9");
107107

108108
TaskFactory(JShell state) {
109109
this.state = state;

0 commit comments

Comments
 (0)