diff options
author | Jim Hahn <jrh3@att.com> | 2021-05-06 14:57:24 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2021-05-06 15:00:49 -0400 |
commit | 5301a4b0b49eb568d05d59fd20d7b5724b47b8ac (patch) | |
tree | 5ac180d2228cb65d8f74a0b3a79547fde53184b4 /xacml-test/src | |
parent | 2f74523b7c5657b4bed38315c5ebfc0ed1bd02c6 (diff) |
Fix sonars in xacml-pdp
Fixed:
- use "var" instead of actual type
Issue-ID: POLICY-3285
Change-Id: Id17142d1f2e3e5f9dfbffcb96aff7fe76321a56b
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'xacml-test/src')
-rw-r--r-- | xacml-test/src/main/java/org/onap/policy/pdp/xacml/xacmltest/TestUtils.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xacml-test/src/main/java/org/onap/policy/pdp/xacml/xacmltest/TestUtils.java b/xacml-test/src/main/java/org/onap/policy/pdp/xacml/xacmltest/TestUtils.java index cb12e0f6..e2bdd96a 100644 --- a/xacml-test/src/main/java/org/onap/policy/pdp/xacml/xacmltest/TestUtils.java +++ b/xacml-test/src/main/java/org/onap/policy/pdp/xacml/xacmltest/TestUtils.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * ONAP * ================================================================================ - * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2019, 2021 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. @@ -60,7 +60,7 @@ public class TestUtils { // // Decode it // - String policyYaml = ResourceUtils.getResourceAsString(resourceFile); + var policyYaml = ResourceUtils.getResourceAsString(resourceFile); // // Serialize it into a class // @@ -73,7 +73,7 @@ public class TestUtils { // // Make sure all the fields are setup properly // - JpaToscaServiceTemplate jtst = new JpaToscaServiceTemplate(); + var jtst = new JpaToscaServiceTemplate(); jtst.fromAuthorative(serviceTemplate); ToscaServiceTemplate completedJtst = jtst.toAuthorative(); // @@ -92,4 +92,4 @@ public class TestUtils { return loadedPolicies; } -}
\ No newline at end of file +} |