Skip to content

Commit

Permalink
Use the blessed modifier order in projects located in java projects
Browse files Browse the repository at this point in the history
  • Loading branch information
mklaehn committed Feb 18, 2022
1 parent 5c49be4 commit 0cfebd4
Show file tree
Hide file tree
Showing 226 changed files with 501 additions and 501 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public VerticalGridLayout() {

private final int screenHeight;

final private Set<Component> components = new LinkedHashSet<Component>();
private final Set<Component> components = new LinkedHashSet<Component>();

@Override
public void addLayoutComponent(Component comp, Object constraints) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ private static String deletedEscapedShells(String text) {

// Result classes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

private static abstract class AbstractResultNode extends AbstractNode implements GrammarResult {
private abstract static class AbstractResultNode extends AbstractNode implements GrammarResult {

public @Override Icon getIcon(int kind) {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public interface CompilerOptionsQueryImplementation {
* Result of finding compiler options, encapsulating the answer as well as the
* ability to listen to it.
*/
public static abstract class Result {
public abstract static class Result {
/**
* Gets the explicit compiler options.
* @return the list of the compiler options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public final class PatternAnalyser {
/** deep introspection analyzes also super classes; useful for bean info*/
private boolean deepIntrospection = false;

final static Logger LOG = Logger.getLogger(PatternAnalyser.class.getName());
static final Logger LOG = Logger.getLogger(PatternAnalyser.class.getName());

public PatternAnalyser( FileObject fileObject, BeanPanelUI ui ) {
this(fileObject, ui, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*/
abstract class CPName extends CPEntry {

final static int INVALID_INDEX = -1;
static final int INVALID_INDEX = -1;

int index;
private String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ public final class ClassName implements Comparable<ClassName>, Comparator<ClassN

private final String type;
private final transient String internalName;
private volatile transient String externalName;
private volatile transient String packageName;
private volatile transient String simpleName;
private transient volatile String externalName;
private transient volatile String packageName;
private transient volatile String simpleName;

private final static WeakHashMap<String,WeakReference<ClassName>> cache =
private static final WeakHashMap<String,WeakReference<ClassName>> cache =
new WeakHashMap<String,WeakReference<ClassName>>();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public interface Impl {
/** Default implementation of the Impl interface.
* It just holds the property values.
*/
static abstract class Memory implements DBElement.Impl {
abstract static class Memory implements DBElement.Impl {
/** the element for this implementation */
protected DBElement _element;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
public final class DBIdentifier {
private String name;
transient private String fullName = null;
private transient String fullName = null;

/** Default constructor
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
)
public class DBschemaDataObject extends MultiDataObject {

transient protected SchemaElement schemaElement;
protected transient SchemaElement schemaElement;
transient SchemaElementImpl schemaElementImpl;

public DBschemaDataObject (FileObject pf, DBschemaDataLoader loader) throws DataObjectExistsException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class TableElementImpl extends DBElementImpl implements TableElement.Impl
private DBElementsCollection columns;
private DBElementsCollection indexes;
private DBElementsCollection keys;
transient private DBElementsCollection columnPairs;
private transient DBElementsCollection columnPairs;

private String table;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.awt.Component;
import org.openide.util.HelpCtx;

final public class DBSchemaConnectionWizardPanel extends DBSchemaPanel {
public final class DBSchemaConnectionWizardPanel extends DBSchemaPanel {

/** aggregation, instance of UI component of this wizard panel */
private DBSchemaConnectionPanel panelUI;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ public void fireChange (Object source) {
}
}

private static abstract class Handler {
private abstract static class Handler {

public abstract void handle(Parameters params);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ public class MapClassName {
static String LEGACYPREFIX= "com.sun.forte4j.modules.dbmodel.";
static String CURRENTPREFIX= "org.netbeans.modules.dbschema.";

static public String getClassNameToken(String realClassName){
public static String getClassNameToken(String realClassName){
if (realClassName.startsWith(CURRENTPREFIX)){
realClassName = LEGACYPREFIX + realClassName.substring(CURRENTPREFIX.length(),realClassName.length());
}

return realClassName;
}

static public String getRealClassName(String token){
public static String getRealClassName(String token){
if (token.startsWith(LEGACYPREFIX)){
token = CURRENTPREFIX + token.substring(LEGACYPREFIX.length(),token.length());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static String getString(String key) {
* @param sqlType the type number from java.sql.Types
* @return the type name
*/
static public String getSqlTypeString(int sqlType) {
public static String getSqlTypeString(int sqlType) {
switch (sqlType) {
case Types.BIGINT:
return "BIGINT"; //NOI18N
Expand Down Expand Up @@ -121,7 +121,7 @@ static public String getSqlTypeString(int sqlType) {
* @param type the type from java.sql.Types
* @return true if the given type is numeric type; false otherwise
*/
static public boolean isNumeric(int type) {
public static boolean isNumeric(int type) {
switch (type) {
case Types.BIGINT:
case Types.BIT:
Expand All @@ -145,7 +145,7 @@ static public boolean isNumeric(int type) {
* @param type the type from java.sql.Types
* @return true if the given type is character type; false otherwise
*/
static public boolean isCharacter(int type) {
public static boolean isCharacter(int type) {
switch (type) {
case Types.BINARY:
case Types.CHAR:
Expand All @@ -168,7 +168,7 @@ static public boolean isCharacter(int type) {
* @param type the type from java.sql.Types return true if the give type is
* blob type; false otherwise
*/
static public boolean isBlob(int type) {
public static boolean isBlob(int type) {
switch (type) {
case Types.BLOB:
case Types.CLOB:
Expand All @@ -193,7 +193,7 @@ static public boolean isBlob(int type) {
* @param type the type from java.sql.Types return true if the give type is
* lob type; false otherwise
*/
static public boolean isLob(int type) {
public static boolean isLob(int type) {
return (isBlob(type)
|| (Types.CLOB == type)
|| (Types.LONGVARCHAR == type));
Expand All @@ -206,7 +206,7 @@ static public boolean isLob(int type) {
* @param type2 second type to compare
* @return true if the types are compatible; false otherwise
*/
static public boolean isCompatibleType(int type1, int type2) {
public static boolean isCompatibleType(int type1, int type2) {
return ((type1 == type2)
|| (isCharacter(type1) && isCharacter(type2))
|| (isNumeric(type1) && isNumeric(type2))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public static ConstantPool parse(byte[] bytes, String description) {

// Entries inner classes

public static abstract class Entry {
public abstract static class Entry {

private final byte tag;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,7 @@ public static <R,D> R interpretOrCompileCode(final Expression<Object> expression
}


private static abstract class ScanRunnable <E extends Throwable> implements Runnable {
private abstract static class ScanRunnable <E extends Throwable> implements Runnable {

private Future<Void>[] resultPtr;
private E[] excPtr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ public void run() {
);
}

static abstract class LazyActionPerformer implements Models.ActionPerformer {
abstract static class LazyActionPerformer implements Models.ActionPerformer {

private final RequestProcessor rp;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public Void get(long timeout, TimeUnit unit) throws InterruptedException, Execut
};
}

private static abstract class ScanRunnable <E extends Throwable> implements Runnable {
private abstract static class ScanRunnable <E extends Throwable> implements Runnable {

private Future<Void>[] resultPtr;
private E[] excPtr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public void run() {
);
}

static abstract class LazyActionPerformer implements Models.ActionPerformer {
abstract static class LazyActionPerformer implements Models.ActionPerformer {

private RequestProcessor rp;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ public void propertyChange(PropertyChangeEvent evt) {

}

private final static class ListenerDetaching {
private static final class ListenerDetaching {

private String propertyName;
private Session session;
Expand All @@ -1032,7 +1032,7 @@ public void removePropertyChangeListener(PropertyChangeListener l) {
}
}

private final static class FrameUIInfo {
private static final class FrameUIInfo {
String sourcePath;
String className;
String url;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private static synchronized SwitchViewAction getSwitchViewAction(String viewId)
return a;
}

private final static class SwitchViewAction extends AbstractAction implements Presenter.Popup {
private static final class SwitchViewAction extends AbstractAction implements Presenter.Popup {

private String id;
private String treeNodeFormat;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ String getIconBase() {
}
}

private static abstract class SpecialNode {
private abstract static class SpecialNode {
protected ObjectVariable object;

protected SpecialNode(ObjectVariable parent) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,8 @@ private String createComponentsAddAt(Component[] components) {

private static class ComponentInfo {

private final static int INT_DATA_LENGTH = 8;
private final static ComponentInfo[] NO_SUBCOMPONENTS = new ComponentInfo[] {};
private static final int INT_DATA_LENGTH = 8;
private static final ComponentInfo[] NO_SUBCOMPONENTS = new ComponentInfo[] {};

private Component c;
private String name;
Expand Down
Loading

0 comments on commit 0cfebd4

Please sign in to comment.