summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/pom.xml6
-rw-r--r--common/src/main/java/org/openecomp/mso/properties/MsoJsonProperties.java2
-rw-r--r--common/src/main/java/org/openecomp/mso/utils/CryptoUtils.java10
3 files changed, 9 insertions, 9 deletions
diff --git a/common/pom.xml b/common/pom.xml
index 6a304c272c..48518aea31 100644
--- a/common/pom.xml
+++ b/common/pom.xml
@@ -2,12 +2,12 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>org.openecomp.so</groupId>
+ <groupId>org.onap.so</groupId>
<artifactId>so</artifactId>
<version>1.2.0-SNAPSHOT</version>
</parent>
- <groupId>org.openecomp.so</groupId>
+ <groupId>org.onap.so</groupId>
<artifactId>common</artifactId>
<name>MSO Common classes</name>
<description>MSO Common classes:- Logger</description>
@@ -241,7 +241,7 @@
</executions>
<dependencies>
<dependency>
- <groupId>org.openecomp.so</groupId>
+ <groupId>org.onap.so</groupId>
<artifactId>common</artifactId>
<version>${project.version}</version>
</dependency>
diff --git a/common/src/main/java/org/openecomp/mso/properties/MsoJsonProperties.java b/common/src/main/java/org/openecomp/mso/properties/MsoJsonProperties.java
index c0997f31d9..cf69e1c5a7 100644
--- a/common/src/main/java/org/openecomp/mso/properties/MsoJsonProperties.java
+++ b/common/src/main/java/org/openecomp/mso/properties/MsoJsonProperties.java
@@ -159,7 +159,7 @@ public class MsoJsonProperties extends AbstractMsoProperties {
@Override
public String toString() {
- StringBuffer response = new StringBuffer();
+ StringBuilder response = new StringBuilder();
response.append("Config file " + propertiesFileName + "(Timer:" + automaticRefreshInMinutes + "mins):"
+ System.getProperty("line.separator"));
response.append(this.jsonRootNode.toString());
diff --git a/common/src/main/java/org/openecomp/mso/utils/CryptoUtils.java b/common/src/main/java/org/openecomp/mso/utils/CryptoUtils.java
index 42cd190e95..5d0ff5b79e 100644
--- a/common/src/main/java/org/openecomp/mso/utils/CryptoUtils.java
+++ b/common/src/main/java/org/openecomp/mso/utils/CryptoUtils.java
@@ -72,13 +72,13 @@ public final class CryptoUtils {
}
public static String byteArrayToHexString (byte[] b) {
- StringBuffer sb = new StringBuffer (b.length * 2);
- for (int i = 0; i < b.length; i++) {
- int v = b[i] & 0xff;
+ StringBuilder sb = new StringBuilder(b.length * 2);
+ for (byte aB : b) {
+ int v = aB & 0xff;
if (v < 16) {
- sb.append ('0');
+ sb.append('0');
}
- sb.append (Integer.toHexString (v));
+ sb.append(Integer.toHexString(v));
}
return sb.toString ().toUpperCase ();
}