8277012: Use blessed modifier order in src/utils

Reviewed-by: dholmes, stuefe
This commit is contained in:
Magnus Ihse Bursie 2021-11-12 14:08:43 +00:00
parent 13deb38433
commit c4b44329c1
10 changed files with 25 additions and 25 deletions

View File

@ -188,7 +188,7 @@ final class BytecodeViewTopComponent extends TopComponent implements ExplorerMan
}
final static class ResolvableHelper implements Serializable {
static final class ResolvableHelper implements Serializable {
private static final long serialVersionUID = 1L;

View File

@ -165,7 +165,7 @@ final class ControlFlowTopComponent extends TopComponent implements LookupListen
scene.getView().requestFocus();
}
final static class ResolvableHelper implements Serializable {
static final class ResolvableHelper implements Serializable {
private static final long serialVersionUID = 1L;

View File

@ -91,7 +91,7 @@ public class BinaryParser implements GraphParser {
String toString(Length l);
}
private static abstract class Member implements LengthToString {
private abstract static class Member implements LengthToString {
public final Klass holder;
public final int accessFlags;
public final String name;

View File

@ -659,7 +659,7 @@ public final class FilterTopComponent extends TopComponent implements LookupList
updateComboBox();
}
final static class ResolvableHelper implements Serializable {
static final class ResolvableHelper implements Serializable {
private static final long serialVersionUID = 1L;

View File

@ -32,18 +32,18 @@ import java.util.prefs.Preferences;
*/
public class Settings {
public final static String NODE_TEXT = "nodeText";
public final static String NODE_TEXT_DEFAULT = "[idx] [name]";
public final static String NODE_SHORT_TEXT = "nodeShortText";
public final static String NODE_SHORT_TEXT_DEFAULT = "[idx] [name]";
public final static String NODE_WIDTH = "nodeWidth";
public final static String NODE_WIDTH_DEFAULT = "100";
public final static String PORT = "port";
public final static String PORT_BINARY = "portBinary";
public final static String PORT_DEFAULT = "4444";
public final static String PORT_BINARY_DEFAULT = "4445";
public final static String DIRECTORY = "directory";
public final static String DIRECTORY_DEFAULT = System.getProperty("user.dir");
public static final String NODE_TEXT = "nodeText";
public static final String NODE_TEXT_DEFAULT = "[idx] [name]";
public static final String NODE_SHORT_TEXT = "nodeShortText";
public static final String NODE_SHORT_TEXT_DEFAULT = "[idx] [name]";
public static final String NODE_WIDTH = "nodeWidth";
public static final String NODE_WIDTH_DEFAULT = "100";
public static final String PORT = "port";
public static final String PORT_BINARY = "portBinary";
public static final String PORT_DEFAULT = "4444";
public static final String PORT_BINARY_DEFAULT = "4445";
public static final String DIRECTORY = "directory";
public static final String DIRECTORY_DEFAULT = System.getProperty("user.dir");
public static Preferences get() {
return Preferences.userNodeForPackage(Settings.class);

View File

@ -90,5 +90,5 @@ public abstract class BasicLogEvent implements LogEvent {
this.compilation = compilation;
}
abstract public void print(PrintStream stream, boolean printID);
public abstract void print(PrintStream stream, boolean printID);
}

View File

@ -54,9 +54,9 @@ class LogCleanupReader extends Reader {
reader = r;
}
static final private Matcher duplicateCompileID = Pattern.compile(".+ compile_id='[0-9]+'.*( compile_id='[0-9]+)").matcher("");
static final private Matcher compilerName = Pattern.compile("' (C[12]) compile_id=").matcher("");
static final private Matcher destroyVM = Pattern.compile("'(destroy_vm)/").matcher("");
private static final Matcher duplicateCompileID = Pattern.compile(".+ compile_id='[0-9]+'.*( compile_id='[0-9]+)").matcher("");
private static final Matcher compilerName = Pattern.compile("' (C[12]) compile_id=").matcher("");
private static final Matcher destroyVM = Pattern.compile("'(destroy_vm)/").matcher("");
/**
* The log cleanup takes place in this method. If any of the three patterns

View File

@ -439,9 +439,9 @@ public class LogParser extends DefaultHandler implements ErrorHandler {
this.method = method;
this.bci = bci;
}
final public Method method;
final public int bci;
final public String toString() {
public final Method method;
public final int bci;
public final String toString() {
return "@" + bci + " " + method;
}
}

View File

@ -57,7 +57,7 @@ public class CommentChecker {
static int errors = 0;
// Turn on this flag and recompile to dump this tool's state changes.
final static boolean verbose = false;
static final boolean verbose = false;
static void check(String fileName) {
BufferedReader in = null;

View File

@ -29,7 +29,7 @@ import java.io.File;
import java.util.TreeSet;
public class DirDiff implements Runnable {
private final static String FILE_SEPARATOR = System.getProperty("file.separator");
private static final String FILE_SEPARATOR = System.getProperty("file.separator");
private static final boolean traversSccsDirs;
private static final boolean recurseExtraDirs;
private static final boolean verboseMode;