Skip to content

Commit b933136

Browse files
committed
8276641: Use blessed modifier order in jshell
Reviewed-by: iris
1 parent 0616d86 commit b933136

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/jdk.internal.le/share/classes/jdk/internal/org/jline/utils/AnsiWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public AnsiWriter(Writer out) {
4545
super(out);
4646
}
4747

48-
private final static int MAX_ESCAPE_SEQUENCE_LENGTH = 100;
48+
private static final int MAX_ESCAPE_SEQUENCE_LENGTH = 100;
4949
private final char[] buffer = new char[MAX_ESCAPE_SEQUENCE_LENGTH];
5050
private int pos = 0;
5151
private int startOfValue;

src/jdk.internal.le/windows/classes/jdk/internal/org/jline/terminal/impl/jna/win/WindowsAnsiWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public final class WindowsAnsiWriter extends AnsiWriter {
7070
BACKGROUND_WHITE,
7171
};
7272

73-
private final static int MAX_ESCAPE_SEQUENCE_LENGTH = 100;
73+
private static final int MAX_ESCAPE_SEQUENCE_LENGTH = 100;
7474

7575
private final Pointer console;
7676

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -76,7 +76,7 @@ abstract class Key {
7676
* They are keyed off at least the name. They may be Modified/Replaced
7777
* with new input.
7878
*/
79-
static abstract class PersistentKey extends Key {
79+
abstract static class PersistentKey extends Key {
8080

8181
private final String name;
8282

@@ -95,7 +95,7 @@ static abstract class PersistentKey extends Key {
9595
/**
9696
* Grouping for snippets which reference declarations
9797
*/
98-
static abstract class DeclarationKey extends PersistentKey {
98+
abstract static class DeclarationKey extends PersistentKey {
9999

100100
DeclarationKey(JShell state, String name) {
101101
super(state, name);
@@ -201,7 +201,7 @@ public String toString() { return "ImportKey(" + name() + "," +
201201
* exactly same entry is made again. The referenced snippets are thus
202202
* unmodifiable.
203203
*/
204-
static abstract class UniqueKey extends Key {
204+
abstract static class UniqueKey extends Key {
205205

206206
UniqueKey(JShell state) {
207207
super(state);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -73,7 +73,7 @@ Iterable<? extends Path> getLocationAsPaths(Location loc) {
7373
return this.stdFileManager.getLocationAsPaths(loc);
7474
}
7575

76-
static abstract class MemoryJavaFileObject extends SimpleJavaFileObject {
76+
abstract static class MemoryJavaFileObject extends SimpleJavaFileObject {
7777

7878
public MemoryJavaFileObject(String name, JavaFileObject.Kind kind) {
7979
super(URI.create("string:///" + name.replace('.', '/')

src/jdk.jshell/share/classes/jdk/jshell/spi/ExecutionControl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -337,7 +337,7 @@ public String name() {
337337
/**
338338
* The abstract base of all {@code ExecutionControl} exceptions.
339339
*/
340-
public static abstract class ExecutionControlException extends Exception {
340+
public abstract static class ExecutionControlException extends Exception {
341341

342342
private static final long serialVersionUID = 1L;
343343

@@ -410,7 +410,7 @@ public boolean[] installed() {
410410
/**
411411
* The abstract base of of exceptions specific to running user code.
412412
*/
413-
public static abstract class RunException extends ExecutionControlException {
413+
public abstract static class RunException extends ExecutionControlException {
414414

415415
private static final long serialVersionUID = 1L;
416416

0 commit comments

Comments
 (0)