aboutsummaryrefslogtreecommitdiffstats
path: root/common/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/main')
-rw-r--r--common/src/main/java/org/openecomp/mso/logger/MsoAlarmLogger.java4
-rw-r--r--common/src/main/java/org/openecomp/mso/properties/MsoPropertiesFactory.java4
-rw-r--r--common/src/main/java/org/openecomp/mso/utils/CheckResults.java2
3 files changed, 5 insertions, 5 deletions
diff --git a/common/src/main/java/org/openecomp/mso/logger/MsoAlarmLogger.java b/common/src/main/java/org/openecomp/mso/logger/MsoAlarmLogger.java
index 7b9c6a5166..b2b8d0aa33 100644
--- a/common/src/main/java/org/openecomp/mso/logger/MsoAlarmLogger.java
+++ b/common/src/main/java/org/openecomp/mso/logger/MsoAlarmLogger.java
@@ -162,8 +162,8 @@ public class MsoAlarmLogger implements ServletContextListener {
encoder.setPattern(logPattern);
encoder.setContext(context);
encoder.start();
- RollingFileAppender<ILoggingEvent> fileAppender=new RollingFileAppender<ILoggingEvent>();
- TimeBasedRollingPolicy<ILoggingEvent> rollingPolicy=new TimeBasedRollingPolicy<ILoggingEvent>();
+ RollingFileAppender<ILoggingEvent> fileAppender= new RollingFileAppender<>();
+ TimeBasedRollingPolicy<ILoggingEvent> rollingPolicy= new TimeBasedRollingPolicy<>();
rollingPolicy.setContext(context);
rollingPolicy.setFileNamePattern(msoAlarmFile + ".%d");
rollingPolicy.setParent(fileAppender);
diff --git a/common/src/main/java/org/openecomp/mso/properties/MsoPropertiesFactory.java b/common/src/main/java/org/openecomp/mso/properties/MsoPropertiesFactory.java
index cf69cf92c8..3f81734796 100644
--- a/common/src/main/java/org/openecomp/mso/properties/MsoPropertiesFactory.java
+++ b/common/src/main/java/org/openecomp/mso/properties/MsoPropertiesFactory.java
@@ -78,7 +78,7 @@ public class MsoPropertiesFactory implements Serializable {
// Hardcode if nothing is received
prefixMsoPropertiesPath = "";
}
- msoPropertiesCache = new ConcurrentHashMap <String, MsoPropertiesParameters> ();
+ msoPropertiesCache = new ConcurrentHashMap<>();
}
private static final ReentrantReadWriteLock rwl = new ReentrantReadWriteLock ();
@@ -268,7 +268,7 @@ public class MsoPropertiesFactory implements Serializable {
*/
public List <AbstractMsoProperties> getAllMsoProperties () {
- List <AbstractMsoProperties> resultList = new LinkedList <AbstractMsoProperties> ();
+ List <AbstractMsoProperties> resultList = new LinkedList<>();
rwl.readLock ().lock ();
try {
diff --git a/common/src/main/java/org/openecomp/mso/utils/CheckResults.java b/common/src/main/java/org/openecomp/mso/utils/CheckResults.java
index 75337f0cf1..ad0344d028 100644
--- a/common/src/main/java/org/openecomp/mso/utils/CheckResults.java
+++ b/common/src/main/java/org/openecomp/mso/utils/CheckResults.java
@@ -36,7 +36,7 @@ public class CheckResults {
private List <CheckResult> results;
public CheckResults () {
- results = new ArrayList <CheckResult> ();
+ results = new ArrayList<>();
}
public List <CheckResult> getResults () {