aboutsummaryrefslogtreecommitdiffstats
path: root/utils-test/src/main/java/org/onap/policy/common/utils/test/ToStringTester.java
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2020-06-19 11:05:39 +0000
committerGerrit Code Review <gerrit@onap.org>2020-06-19 11:05:39 +0000
commit0bf7d4c87390df3cdaf52fba340fb6531c7415db (patch)
tree817a7ad448699cd2dcc7e4b28ac2d3d232588b9f /utils-test/src/main/java/org/onap/policy/common/utils/test/ToStringTester.java
parent50d72892e98753fd012aff00c2d42979dce9653e (diff)
parent6c750f414961b3956919ef457d1bf1eb82064d15 (diff)
Merge "More sonar issues in policy-common"
Diffstat (limited to 'utils-test/src/main/java/org/onap/policy/common/utils/test/ToStringTester.java')
-rw-r--r--utils-test/src/main/java/org/onap/policy/common/utils/test/ToStringTester.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/utils-test/src/main/java/org/onap/policy/common/utils/test/ToStringTester.java b/utils-test/src/main/java/org/onap/policy/common/utils/test/ToStringTester.java
index 18502a35..3890ae95 100644
--- a/utils-test/src/main/java/org/onap/policy/common/utils/test/ToStringTester.java
+++ b/utils-test/src/main/java/org/onap/policy/common/utils/test/ToStringTester.java
@@ -37,23 +37,22 @@ import org.hamcrest.Matcher;
*
* @author Ram Krishna Verma (ram.krishna.verma@est.tech)
*/
-@SuppressWarnings("rawtypes")
public class ToStringTester implements Tester {
- private final Matcher matcher;
+ private final Matcher<?> matcher;
public ToStringTester() {
matcher = anything();
}
- public ToStringTester(final Matcher matcher) {
+ public ToStringTester(final Matcher<?> matcher) {
this.matcher = matcher;
}
@SuppressWarnings("unchecked")
@Override
public void run(final PojoClass pojoClass) {
- final Class clazz = pojoClass.getClazz();
+ final Class<?> clazz = pojoClass.getClazz();
if (anyOf(matcher).matches(clazz)) {
final Object classInstance = ValidationHelper.getBasicInstance(pojoClass);