diff options
author | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2017-09-28 12:57:15 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-28 12:57:15 +0000 |
commit | 0c5c8e885350ee2a8468a758dcf11d1ddc9218b4 (patch) | |
tree | 08718f35f6b0998d9fe98a36e52be6883cab43d0 | |
parent | be546cdf714e991f5d53a5c3f4e3733f3ca61a67 (diff) | |
parent | d019aee0e3fc220478956d2a6b9a20a2e98082db (diff) |
Merge "Removed the unused variables"
5 files changed, 7 insertions, 7 deletions
diff --git a/common/src/main/java/org/openecomp/mso/db/AbstractSessionFactoryManager.java b/common/src/main/java/org/openecomp/mso/db/AbstractSessionFactoryManager.java index d639978770..2988e30254 100644 --- a/common/src/main/java/org/openecomp/mso/db/AbstractSessionFactoryManager.java +++ b/common/src/main/java/org/openecomp/mso/db/AbstractSessionFactoryManager.java @@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap; public abstract class AbstractSessionFactoryManager { - protected static Map<String, SessionFactory> sessionFactories = new ConcurrentHashMap<String, SessionFactory>(); + protected static Map<String, SessionFactory> sessionFactories = new ConcurrentHashMap<>(); protected synchronized SessionFactory initializeSessionFactory(URL hibernateConfigFile) throws MsoDatabaseException { diff --git a/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatEnvironment.java b/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatEnvironment.java index 455620784d..dd628bb863 100644 --- a/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatEnvironment.java +++ b/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatEnvironment.java @@ -87,7 +87,7 @@ public class HeatEnvironment extends MavenLikeVersioning implements Serializable @Override public String toString () { - StringBuffer sb = new StringBuffer(); + StringBuilder sb = new StringBuilder(); sb.append ("Artifact UUID=" + this.artifactUuid); sb.append (", name="); sb.append (name); diff --git a/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatFiles.java b/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatFiles.java index e38e598d57..b90578d369 100644 --- a/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatFiles.java +++ b/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatFiles.java @@ -82,10 +82,13 @@ public class HeatFiles extends MavenLikeVersioning implements Serializable { public void setAsdcUuid(String artifactUuid) { this.artifactUuid = artifactUuid; } + + @Override public String getVersion() { return version; } + @Override public void setVersion(String version) { this.version = version; } @@ -99,7 +102,7 @@ public class HeatFiles extends MavenLikeVersioning implements Serializable { @Override public String toString () { - StringBuffer sb = new StringBuffer(); + StringBuilder sb = new StringBuilder(); sb.append ("artifactUuid=" + this.artifactUuid); if (this.description == null) { sb.append(", description=null"); diff --git a/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatNestedTemplate.java b/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatNestedTemplate.java index d59f49a533..eec0f410c6 100644 --- a/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatNestedTemplate.java +++ b/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatNestedTemplate.java @@ -90,7 +90,7 @@ public class HeatNestedTemplate implements Serializable { public int hashCode () { // hash code does not have to be a unique result - only that two objects that should be treated as equal // return the same value. so this should work. - int result = 0; + int result; result = this.parentTemplateId.hashCode() + this.childTemplateId.hashCode(); return result; } diff --git a/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatTemplate.java b/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatTemplate.java index b17fea460e..03813a7299 100644 --- a/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatTemplate.java +++ b/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatTemplate.java @@ -26,14 +26,11 @@ import java.text.DateFormat; import java.util.Set; import org.openecomp.mso.db.catalog.utils.MavenLikeVersioning; -import org.openecomp.mso.logger.MsoLogger; public class HeatTemplate extends MavenLikeVersioning implements Serializable { private static final long serialVersionUID = 768026109321305392L; - private static final MsoLogger LOGGER = MsoLogger.getMsoLogger (MsoLogger.Catalog.GENERAL); - private String artifactUuid; private String templateName; private String templateBody = null; |