diff options
author | JvD_Ericsson <jeff.van.dam@est.tech> | 2020-08-06 10:00:32 +0100 |
---|---|---|
committer | JvD_Ericsson <jeff.van.dam@est.tech> | 2020-08-07 13:59:20 +0100 |
commit | dc2b85e4ae6db95a0c09494a928ee6fbdf95594e (patch) | |
tree | d51499c785a2526d4f401b6d1e650cbae9ec7d38 /model/context-model/src | |
parent | 56e4f452342da2d0a9e0fb822c68b3440476092a (diff) |
Sonar Fixes
Replace the type specification in this constructor call with the diamond operator
and other small fixes
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Issue-ID: POLICY-2760
Change-Id: I83821859a4a1dbbffbaeae15281abac2de3b5712
Diffstat (limited to 'model/context-model/src')
2 files changed, 4 insertions, 4 deletions
diff --git a/model/context-model/src/main/java/org/onap/policy/apex/model/contextmodel/concepts/AxContextAlbums.java b/model/context-model/src/main/java/org/onap/policy/apex/model/contextmodel/concepts/AxContextAlbums.java index a28fbf663..99e5300dc 100644 --- a/model/context-model/src/main/java/org/onap/policy/apex/model/contextmodel/concepts/AxContextAlbums.java +++ b/model/context-model/src/main/java/org/onap/policy/apex/model/contextmodel/concepts/AxContextAlbums.java @@ -1,7 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2016-2018 Ericsson. All rights reserved. - * Modifications Copyright (C) 2019 Nordix Foundation. + * Modifications Copyright (C) 2019-2020 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -106,7 +106,7 @@ public final class AxContextAlbums extends AxConcept implements AxConceptGetter< * @param key the key of the context album container */ public AxContextAlbums(final AxArtifactKey key) { - this(key, new TreeMap<AxArtifactKey, AxContextAlbum>()); + this(key, new TreeMap<>()); } /** diff --git a/model/context-model/src/main/java/org/onap/policy/apex/model/contextmodel/concepts/AxContextSchemas.java b/model/context-model/src/main/java/org/onap/policy/apex/model/contextmodel/concepts/AxContextSchemas.java index a0f031450..8c4110b62 100644 --- a/model/context-model/src/main/java/org/onap/policy/apex/model/contextmodel/concepts/AxContextSchemas.java +++ b/model/context-model/src/main/java/org/onap/policy/apex/model/contextmodel/concepts/AxContextSchemas.java @@ -1,7 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2016-2018 Ericsson. All rights reserved. - * Modifications Copyright (C) 2019 Nordix Foundation. + * Modifications Copyright (C) 2019-2020 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -108,7 +108,7 @@ public class AxContextSchemas extends AxConcept implements AxConceptGetter<AxCon * @param key the key of the context album container */ public AxContextSchemas(final AxArtifactKey key) { - this(key, new TreeMap<AxArtifactKey, AxContextSchema>()); + this(key, new TreeMap<>()); } /** |