Fields are declared at the top of the class. (#35891)

Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.
This commit is contained in:
Sachin Araballi 2018-11-27 02:35:28 +05:30 committed by Simon Willnauer
parent 8fe5f66637
commit 5f656e4eab

View File

@ -73,6 +73,21 @@ import java.util.Objects;
*/
public final class PainlessLookupUtility {
/**
* The name for an anonymous class.
*/
public static final String ANONYMOUS_CLASS_NAME = "$anonymous";
/**
* The def type name as specified in the source for a script.
*/
public static final String DEF_CLASS_NAME = "def";
/**
* The method name for all constructors.
*/
public static final String CONSTRUCTOR_NAME = "<init>";
/**
* Converts a canonical type name to a type based on the terminology specified as part of the documentation for
* {@link PainlessLookupUtility}. Since canonical class names are a subset of canonical type names, this method will
@ -344,21 +359,6 @@ public final class PainlessLookupUtility {
return fieldName;
}
/**
* The name for an anonymous class.
*/
public static final String ANONYMOUS_CLASS_NAME = "$anonymous";
/**
* The def type name as specified in the source for a script.
*/
public static final String DEF_CLASS_NAME = "def";
/**
* The method name for all constructors.
*/
public static final String CONSTRUCTOR_NAME = "<init>";
private PainlessLookupUtility() {
}