Adding Junits for policy engine
[policy/engine.git] / PolicyEngineUtils / src / main / java / org / onap / policy / std / StdLoadedPolicy.java
index c1f4fed..10268f6 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;
        }