Sonar cleanup for PolicyEngineUtils
[policy/engine.git] / PolicyEngineUtils / src / main / java / org / onap / policy / std / StdLoadedPolicy.java
index 10268f6..ebbed21 100644 (file)
@@ -34,7 +34,7 @@ public class StdLoadedPolicy implements LoadedPolicy{
        @Override
        public String getPolicyName() {
                if(policyName!=null && policyName.contains(".xml")){
-                       return (policyName.substring(0, policyName.substring(0, policyName.lastIndexOf('.')).lastIndexOf('.')));
+                       return policyName.substring(0, policyName.substring(0, policyName.lastIndexOf('.')).lastIndexOf('.'));
                }
                return this.policyName;
        }