8276641: Use blessed modifier order in jshell
Reviewed-by: iris
This commit is contained in:
parent
0616d868c7
commit
b9331360f5
@ -45,7 +45,7 @@ public class AnsiWriter extends FilterWriter {
|
||||
super(out);
|
||||
}
|
||||
|
||||
private final static int MAX_ESCAPE_SEQUENCE_LENGTH = 100;
|
||||
private static final int MAX_ESCAPE_SEQUENCE_LENGTH = 100;
|
||||
private final char[] buffer = new char[MAX_ESCAPE_SEQUENCE_LENGTH];
|
||||
private int pos = 0;
|
||||
private int startOfValue;
|
||||
|
@ -70,7 +70,7 @@ public final class WindowsAnsiWriter extends AnsiWriter {
|
||||
BACKGROUND_WHITE,
|
||||
};
|
||||
|
||||
private final static int MAX_ESCAPE_SEQUENCE_LENGTH = 100;
|
||||
private static final int MAX_ESCAPE_SEQUENCE_LENGTH = 100;
|
||||
|
||||
private final Pointer console;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -76,7 +76,7 @@ abstract class Key {
|
||||
* They are keyed off at least the name. They may be Modified/Replaced
|
||||
* with new input.
|
||||
*/
|
||||
static abstract class PersistentKey extends Key {
|
||||
abstract static class PersistentKey extends Key {
|
||||
|
||||
private final String name;
|
||||
|
||||
@ -95,7 +95,7 @@ abstract class Key {
|
||||
/**
|
||||
* Grouping for snippets which reference declarations
|
||||
*/
|
||||
static abstract class DeclarationKey extends PersistentKey {
|
||||
abstract static class DeclarationKey extends PersistentKey {
|
||||
|
||||
DeclarationKey(JShell state, String name) {
|
||||
super(state, name);
|
||||
@ -201,7 +201,7 @@ abstract class Key {
|
||||
* exactly same entry is made again. The referenced snippets are thus
|
||||
* unmodifiable.
|
||||
*/
|
||||
static abstract class UniqueKey extends Key {
|
||||
abstract static class UniqueKey extends Key {
|
||||
|
||||
UniqueKey(JShell state) {
|
||||
super(state);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -73,7 +73,7 @@ class MemoryFileManager implements JavaFileManager {
|
||||
return this.stdFileManager.getLocationAsPaths(loc);
|
||||
}
|
||||
|
||||
static abstract class MemoryJavaFileObject extends SimpleJavaFileObject {
|
||||
abstract static class MemoryJavaFileObject extends SimpleJavaFileObject {
|
||||
|
||||
public MemoryJavaFileObject(String name, JavaFileObject.Kind kind) {
|
||||
super(URI.create("string:///" + name.replace('.', '/')
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -337,7 +337,7 @@ public interface ExecutionControl extends AutoCloseable {
|
||||
/**
|
||||
* The abstract base of all {@code ExecutionControl} exceptions.
|
||||
*/
|
||||
public static abstract class ExecutionControlException extends Exception {
|
||||
public abstract static class ExecutionControlException extends Exception {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ -410,7 +410,7 @@ public interface ExecutionControl extends AutoCloseable {
|
||||
/**
|
||||
* The abstract base of of exceptions specific to running user code.
|
||||
*/
|
||||
public static abstract class RunException extends ExecutionControlException {
|
||||
public abstract static class RunException extends ExecutionControlException {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user