Fix java check style issue
[msb/discovery.git] / sdclient / discovery-service / src / main / java / org / onap / msb / sdclient / core / AgentService.java
index 9b61cd2..a5e21e0 100644 (file)
@@ -1,17 +1,15 @@
 /**
  * Copyright 2016-2017 ZTE, Inc. and others.
  *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
  *
- *     http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+ * or implied. See the License for the specific language governing permissions and limitations under
+ * the License.
  */
 package org.onap.msb.sdclient.core;
 
@@ -20,12 +18,12 @@ import java.util.List;
 
 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
 import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.annotation.JsonInclude.Include;
+import com.fasterxml.jackson.annotation.JsonProperty;
 
 @JsonIgnoreProperties(ignoreUnknown = true)
 public class AgentService implements Serializable {
-   
+
 
     private static final long serialVersionUID = 1L;
 
@@ -43,71 +41,81 @@ public class AgentService implements Serializable {
 
     @JsonProperty("Port")
     private int port;
-    
+
     @JsonProperty("Check")
-    @JsonInclude(Include.NON_EMPTY) 
+    @JsonInclude(Include.NON_EMPTY)
     private Check check;
-    
-    @JsonInclude(Include.NON_EMPTY)  
-    public class Check{
-        
+
+    @JsonInclude(Include.NON_EMPTY)
+    public class Check {
+
         @JsonProperty("HTTP")
         private String http;
-        
+
         @JsonProperty("TCP")
         private String tcp;
-        
+
         @JsonProperty("TTL")
         private String ttl;
-        
+
         @JsonProperty("Interval")
         private String interval;
-        
+
         @JsonProperty("Timeout")
         private String timeout;
-        
-      
-        private String status="passing";
-        
+
+
+        private String status = "passing";
+
         public String getTimeout() {
-          return timeout;
+            return timeout;
         }
+
         public void setTimeout(String timeout) {
-          this.timeout = timeout;
+            this.timeout = timeout;
         }
-        
+
         public String getHttp() {
             return http;
         }
+
         public void setHttp(String http) {
             this.http = http;
         }
+
         public String getTcp() {
             return tcp;
         }
+
         public void setTcp(String tcp) {
             this.tcp = tcp;
         }
+
         public String getTtl() {
             return ttl;
         }
+
         public void setTtl(String ttl) {
             this.ttl = ttl;
         }
+
         public String getInterval() {
             return interval;
         }
+
         public void setInterval(String interval) {
             this.interval = interval;
         }
+
         public String getStatus() {
             return status;
         }
+
         public void setStatus(String status) {
             this.status = status;
         }
-      
-        
+
+
     }
 
     public String getId() {
@@ -118,7 +126,7 @@ public class AgentService implements Serializable {
         this.id = id;
     }
 
-   
+
 
     public String getName() {
         return name;
@@ -151,7 +159,7 @@ public class AgentService implements Serializable {
     public void setPort(int port) {
         this.port = port;
     }
-    
+
     public Check getCheck() {
         return check;
     }
@@ -159,9 +167,9 @@ public class AgentService implements Serializable {
     public void setCheck(Check check) {
         this.check = check;
     }
-   
-    public Check createCheck(){
+
+    public Check createCheck() {
         return new Check();
-         
+
     }
 }