move property definition to begin of class to improve code style (#242)

This commit is contained in:
Sky Ao
2017-08-16 17:32:59 +08:00
committed by Spencer Gibb
parent 72f9b83041
commit 44441b246b

View File

@@ -14,6 +14,9 @@ public class AutoServiceRegistrationProperties {
/** Whether to register the management as a service, defaults to true */
private boolean registerManagement = true;
/** Should startup fail if there is no AutoServiceRegistration, default to false. */
private boolean failFast = false;
public boolean shouldRegisterManagement() {
return registerManagement;
}
@@ -22,9 +25,6 @@ public class AutoServiceRegistrationProperties {
this.registerManagement = registerManagement;
}
/** Should startup fail if there is no AutoServiceRegistration, default to false. */
private boolean failFast = false;
public boolean isFailFast() {
return failFast;
}