Fix java check style issue
[msb/discovery.git] / sdclient / discovery-service / src / main / java / org / onap / msb / sdclient / core / NodeInfo.java
index 263b54d..45ac443 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;
 
@@ -23,21 +21,21 @@ import com.google.common.base.Objects;
 public class NodeInfo extends Node {
 
     private static final long serialVersionUID = 8955786461351557306L;
-    
-    private String nodeId; //node唯一标识
-    
-    private String status; //实例健康检查状态
-    
-  
+
+    private String nodeId; // node唯一标识
+
+    private String status; // 实例健康检查状态
+
+
     @JsonSerialize(using = CustomDateSerializer.class)
     private Date expiration;
-    
+
     @JsonSerialize(using = CustomDateSerializer.class)
     private Date created_at;
-    
+
     @JsonSerialize(using = CustomDateSerializer.class)
     private Date updated_at;
-    
+
 
 
     public Date getExpiration() {
@@ -79,28 +77,24 @@ public class NodeInfo extends Node {
     public void setStatus(String status) {
         this.status = status;
     }
-    
+
     @Override
     public int hashCode() {
-        return Objects.hashCode(getIp(),getPort(),getHa_role(),status );
+        return Objects.hashCode(getIp(), getPort(), getHa_role(), status);
     }
-    
+
     @Override
-    public boolean equals(Object other)
-    {
-        if(this == other)
+    public boolean equals(Object other) {
+        if (this == other)
             return true;
-        if(other instanceof NodeInfo)
-        {
-          NodeInfo that = (NodeInfo)other;
-            return Objects.equal(getIp(), that.getIp()) 
-                   && Objects.equal(getPort(), that.getPort());
-        } else
-        {
+        if (other instanceof NodeInfo) {
+            NodeInfo that = (NodeInfo) other;
+            return Objects.equal(getIp(), that.getIp()) && Objects.equal(getPort(), that.getPort());
+        } else {
             return false;
         }
     }
 
-  
-    
+
+
 }