Add instructions to invoke the linter and code formatter plugins to the README and...
[aai/schema-service.git] / aai-schema-service / src / main / java / org / onap / aai / schemaservice / versions / Version.java
index 47da48d..2bdf179 100644 (file)
@@ -8,7 +8,7 @@
  * 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,
@@ -17,6 +17,7 @@
  * limitations under the License.
  * ============LICENSE_END=========================================================
  */
+
 package org.onap.aai.schemaservice.versions;
 
 import com.google.gson.annotations.SerializedName;
@@ -99,35 +100,33 @@ public class Version {
 
     @Override
     public boolean equals(Object o) {
-        if (this == o) return true;
-        if (o == null || getClass() != o.getClass()) return false;
+        if (this == o)
+            return true;
+        if (o == null || getClass() != o.getClass())
+            return false;
         Version that = (Version) o;
-        return Objects.equals(versions, that.versions) &&
-            Objects.equals(edgeVersion, that.edgeVersion) &&
-            Objects.equals(defaultVersion, that.defaultVersion) &&
-            Objects.equals(depthVersion, that.depthVersion) &&
-            Objects.equals(appRootVersion, that.appRootVersion) &&
-            Objects.equals(relatedLinkVersion, that.relatedLinkVersion) &&
-            Objects.equals(namespaceChangeVersion, that.namespaceChangeVersion);
+        return Objects.equals(versions, that.versions)
+            && Objects.equals(edgeVersion, that.edgeVersion)
+            && Objects.equals(defaultVersion, that.defaultVersion)
+            && Objects.equals(depthVersion, that.depthVersion)
+            && Objects.equals(appRootVersion, that.appRootVersion)
+            && Objects.equals(relatedLinkVersion, that.relatedLinkVersion)
+            && Objects.equals(namespaceChangeVersion, that.namespaceChangeVersion);
     }
 
     @Override
     public int hashCode() {
-        return Objects.hash(versions, edgeVersion, defaultVersion, depthVersion, appRootVersion, relatedLinkVersion, namespaceChangeVersion);
+        return Objects.hash(versions, edgeVersion, defaultVersion, depthVersion, appRootVersion,
+            relatedLinkVersion, namespaceChangeVersion);
     }
 
-
     @Override
     public String toString() {
-        return "Version{" +
-            "versions=" + versions +
-            ", edgeVersion='" + edgeVersion + '\'' +
-            ", defaultVersion='" + defaultVersion + '\'' +
-            ", depthVersion='" + depthVersion + '\'' +
-            ", appRootVersion='" + appRootVersion + '\'' +
-            ", relatedLinkVersion='" + relatedLinkVersion + '\'' +
-            ", namespaceChangeVersion='" + namespaceChangeVersion + '\'' +
-            '}';
+        return "Version{" + "versions=" + versions + ", edgeVersion='" + edgeVersion + '\''
+            + ", defaultVersion='" + defaultVersion + '\'' + ", depthVersion='" + depthVersion
+            + '\'' + ", appRootVersion='" + appRootVersion + '\'' + ", relatedLinkVersion='"
+            + relatedLinkVersion + '\'' + ", namespaceChangeVersion='" + namespaceChangeVersion
+            + '\'' + '}';
     }
 
 }