-
Story
-
Resolution: Done
-
Medium
-
None
-
None
-
None
-
Policy Beijing 1 - 11/20-12/21, Policy Beijing 2 - 01-24, Policy Beijing 4 - 3-14
As an ONAP Developer, I wish to pare down the technical debt identified by sonar.
Please NOTE, this work is not to be done until post-Amsterdam release.
Acceptable fixes will be only the following:
- Replace this usage of System.out or System.err by a logger (Most likely these should be deleted if there already is a logging statement)
- Move the XXXX string literal on the left side of this string comparison.
- Introduce a new variable instead of reusing the parameter
- The type of the "keySet" object should be an interface such as "Set" rather than the implementation "HashSet" (Applies to Map/HashMap as well)
- Add a nested comment explaining why this method is empty (Due to empty constructors, which Sonar complains that need to be there.)
- Remove this useless assignment to local variable
- Remove those useless parentheses
- Use isEmpty() to check whether the collection is empty or not
- Change this "try" to a try-with-resources.
- Replace the type specification in this constructor call with the diamond operator ("<>").
- Add the "@Override" annotation above this method signature
- Remove unused imports
- Unused values/fields/local variables
- Type safety: The expression of type HashMap needs unchecked conversion to conform to Map<String,String>
- The serializable class URLEntry does not declare a static final serialVersionUID field of type long
- is blocked by
-
POLICY-649 Policy Major:Local variables should not shadow class field
- Closed
-
POLICY-656 Sonar :Blocker
- Closed
-
POLICY-683 Sonar:Blocker:Use try-with-resources or close this "FileWriter" in a "finally" clause.
- Closed
-
POLICY-688 Sonar Blocker:Use try-with-resources or close this "JarFile" in a "finally" clause.
- Closed
- relates to
-
POLICY-630 Replace this use of System.out or System.err by a logger
- Closed
-
POLICY-631 Make "drlRuleAndUIParams" transient or serializable
- Closed
-
POLICY-635 Replace System.out or System.err by logger
- Closed
-
POLICY-636 Replace this use of System.out or System.err by a logger
- Closed
-
POLICY-646 Make "responseHistoryList" private or transient.
- Closed
-
POLICY-647 Make "pgStream" private or transient.
- Closed
-
POLICY-675 Replace this use of System.out or System.err by a logger
- Closed
-
POLICY-678 Remove this useless assignment to local variable "xMessage"
- Closed
-
POLICY-679 Remove this useless assignment to local variable em
- Closed
-
POLICY-682 Remove this useless assignment to local variable "temp"
- Closed
-
POLICY-685 Move the "null" string literal on the left side of this string comparison
- Closed
-
POLICY-686 Merge this if statement with the enclosing one
- Closed
-
POLICY-687 Use try-with-resources or close this "BufferedWriter" in a "finally" clause.
- Closed
-
POLICY-689 Move the GUARD_BL_YAML string literal on the left side of this string comparison
- Closed
-
POLICY-690 Move the "api" string literal on the left side of this string comparison
- Closed