diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2020-01-14 13:51:12 -0500 |
---|---|---|
committer | Pamela Dragosh <pdragosh@research.att.com> | 2020-01-14 14:09:41 -0500 |
commit | c22d70d8f2429747ac7eb991c8d83aa3be633d1b (patch) | |
tree | d378efb029367b1cd692f96cfc2693397c359067 /utils/src/main/java/org | |
parent | aaa77292ce7f5fa9909e1921a2881e83a520652a (diff) |
Sonar cleanup overrides and fixes
Removal of UTF-8 because its already set
capabilities doesn't generate any code, no need to include
override false positives for passwords etc.
override for logging and exception throw that we want
add synchronized to overrides that are synchronized
ignore checking of some conditions
adding synchronized to match set* methods
Issue-ID: POLICY-2321
Change-Id: I26d9ca22a0cdd67fdaae9c44b718b8dc103f190e
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'utils/src/main/java/org')
-rw-r--r-- | utils/src/main/java/org/onap/policy/common/utils/properties/SpecProperties.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/utils/src/main/java/org/onap/policy/common/utils/properties/SpecProperties.java b/utils/src/main/java/org/onap/policy/common/utils/properties/SpecProperties.java index 17009a83..ec7157d3 100644 --- a/utils/src/main/java/org/onap/policy/common/utils/properties/SpecProperties.java +++ b/utils/src/main/java/org/onap/policy/common/utils/properties/SpecProperties.java @@ -2,14 +2,14 @@ * ============LICENSE_START======================================================= * ONAP * ================================================================================ - * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2018, 2020 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -40,7 +40,7 @@ public class SpecProperties extends Properties { /** * Constructor. - * + * * @param prefix the property name prefix that appears before any specialization, may * be "" * @param specialization the property name specialization (e.g., session name) @@ -52,7 +52,7 @@ public class SpecProperties extends Properties { /** * Constructor. - * + * * @param prefix the property name prefix that appears before any specialization, may * be "" * @param specialization the property name specialization (e.g., session name) @@ -67,7 +67,7 @@ public class SpecProperties extends Properties { /** * Adds a trailing "." to a String, if it doesn't already have one. - * + * * @param text text to which the "." should be added * @return the text, with a trailing "." */ @@ -78,7 +78,7 @@ public class SpecProperties extends Properties { /** * Gets the property whose value has the given key, looking first for the specialized * property name, and then for the generalized property name. - * + * * @param key property name, without the specialization * @return the value from the property set, or {@code null} if the property set does * not contain the value @@ -108,12 +108,12 @@ public class SpecProperties extends Properties { } @Override - public final int hashCode() { + public final synchronized int hashCode() { throw new UnsupportedOperationException("SpecProperties cannot be hashed"); } @Override - public final boolean equals(Object obj) { + public final synchronized boolean equals(Object obj) { throw new UnsupportedOperationException("cannot compare SpecProperties"); } } |