diff options
author | 2017-09-28 16:44:01 +0530 | |
---|---|---|
committer | 2017-09-28 16:45:38 +0530 | |
commit | 702322555d11626d14ef075133202ca67d09c7f0 (patch) | |
tree | 3bcd35940e823b3139d25c9ce32e982009f52d2c /src/main/java/org/openecomp/datarouter/util/OxmModelLoader.java | |
parent | c3da674039c279812a11b187059003216413b1cc (diff) |
Removed useless assignment to variables
Replaced with diamnond symbol on RHS side
Used isEmpty instead of size
Issue-id: CIMAN-65
Change-Id: I3c5f0bfddc6496ab4e49ab06c5ec8998a1e632d7
Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
Diffstat (limited to 'src/main/java/org/openecomp/datarouter/util/OxmModelLoader.java')
-rw-r--r-- | src/main/java/org/openecomp/datarouter/util/OxmModelLoader.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/openecomp/datarouter/util/OxmModelLoader.java b/src/main/java/org/openecomp/datarouter/util/OxmModelLoader.java index 799b61c..a696740 100644 --- a/src/main/java/org/openecomp/datarouter/util/OxmModelLoader.java +++ b/src/main/java/org/openecomp/datarouter/util/OxmModelLoader.java @@ -50,8 +50,8 @@ import org.springframework.core.io.support.ResourcePatternResolver; public class OxmModelLoader { - private static Map<String, DynamicJAXBContext> versionContextMap = new ConcurrentHashMap<String, DynamicJAXBContext>(); - private static List<ExternalOxmModelProcessor> oxmModelProcessorRegistry = new ArrayList<ExternalOxmModelProcessor>(); + private static Map<String, DynamicJAXBContext> versionContextMap = new ConcurrentHashMap<>(); + private static List<ExternalOxmModelProcessor> oxmModelProcessorRegistry = new ArrayList<>(); final static Pattern p = Pattern.compile("aai_oxm_(.*).xml"); @@ -95,7 +95,7 @@ public class OxmModelLoader { private synchronized static void loadModel(String version,String resourceName,InputStream inputStream) throws JAXBException, FileNotFoundException { - Map<String, Object> properties = new HashMap<String, Object>(); + Map<String, Object> properties = new HashMap<>(); properties.put(JAXBContextProperties.OXM_METADATA_SOURCE, inputStream); final DynamicJAXBContext jaxbContext = DynamicJAXBContextFactory .createContextFromOXM(Thread.currentThread().getContextClassLoader(), properties); |