Skip to content

Commit

Permalink
Fields are declared at the top of the class. (#35891)
Browse files Browse the repository at this point in the history
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.
  • Loading branch information
sachinaraballi authored and s1monw committed Nov 26, 2018
1 parent 8fe5f66 commit 5f656e4
Showing 1 changed file with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,21 @@
* </ul>
*/
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
Expand Down Expand Up @@ -343,22 +358,7 @@ public static String buildPainlessMethodKey(String methodName, int methodArity)
public static String buildPainlessFieldKey(String fieldName) {
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() {

}
Expand Down

0 comments on commit 5f656e4

Please sign in to comment.