You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For this check we don't want to sort based on the modifiers, this will be done later or in a separate Error Prone check.
We don't want to change anything w.r.t. the empty lines, so we want to replace only on the lines where we already had a member variable defined. For that reason the example has a few variables below a method, usually we only have these declarations at the top of the class. Put another way: ideally only SuggestedFix#replace(Tree tree, String replaceWith) is used. Canonicalization of whitespace will be handles by a separate check.
The text was updated successfully, but these errors were encountered:
Problem
We want to sort the order of the members in a class.
Internally we are quite strict with our ordering for the sake of consistency.
The following order should be enforced in a class:
Description of the proposed new feature
Create an Error Prone check that changes the order of the members of a class without altering the empty lines between the members of the class.
I would like to rewrite the following code:
to:
Considerations
SuggestedFix#replace(Tree tree, String replaceWith)
is used. Canonicalization of whitespace will be handles by a separate check.The text was updated successfully, but these errors were encountered: