Skip to content

Commit 48ffddc

Browse files
authored
Sort class methods (#745)
1 parent c014da3 commit 48ffddc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/main/java/net/revelc/code/formatter/java/JavaFormatter.java

+10-10
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@
3838
*/
3939
public class JavaFormatter extends AbstractCacheableFormatter implements Formatter {
4040

41+
/** The formatter. */
42+
private CodeFormatter formatter;
43+
44+
/** The exclusion pattern. */
45+
private Pattern exclusionPattern;
46+
47+
/** The configuration options */
48+
private Map<String, String> options;
49+
4150
@Override
4251
public boolean equals(Object o) {
4352
if (this == o)
@@ -46,23 +55,14 @@ public boolean equals(Object o) {
4655
return false;
4756
JavaFormatter that = (JavaFormatter) o;
4857
return Objects.equals(formatter, that.formatter) && Objects.equals(exclusionPattern, that.exclusionPattern)
49-
&& Objects.equals(options, that.options);
58+
&& Objects.equals(options, that.options);
5059
}
5160

5261
@Override
5362
public int hashCode() {
5463
return Objects.hash(formatter, exclusionPattern, options);
5564
}
5665

57-
/** The formatter. */
58-
private CodeFormatter formatter;
59-
60-
/** The exclusion pattern. */
61-
private Pattern exclusionPattern;
62-
63-
/** The configuration options */
64-
private Map<String, String> options;
65-
6666
@Override
6767
public void init(final Map<String, String> options, final ConfigurationSource cfg) {
6868
super.initCfg(cfg);

0 commit comments

Comments
 (0)