From 44441b246bcd2a0cd5935e00ca405ead49796fab Mon Sep 17 00:00:00 2001 From: Sky Ao Date: Wed, 16 Aug 2017 17:32:59 +0800 Subject: [PATCH] move property definition to begin of class to improve code style (#242) --- .../serviceregistry/AutoServiceRegistrationProperties.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-cloud-commons/src/main/java/org/springframework/cloud/client/serviceregistry/AutoServiceRegistrationProperties.java b/spring-cloud-commons/src/main/java/org/springframework/cloud/client/serviceregistry/AutoServiceRegistrationProperties.java index a43c68adfa..b29e3e9639 100644 --- a/spring-cloud-commons/src/main/java/org/springframework/cloud/client/serviceregistry/AutoServiceRegistrationProperties.java +++ b/spring-cloud-commons/src/main/java/org/springframework/cloud/client/serviceregistry/AutoServiceRegistrationProperties.java @@ -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 void setRegisterManagement(boolean registerManagement) { this.registerManagement = registerManagement; } - /** Should startup fail if there is no AutoServiceRegistration, default to false. */ - private boolean failFast = false; - public boolean isFailFast() { return failFast; }