Merge "Fixed the SDK Junits and cleaned unused code"
[policy/engine.git] / ONAP-PAP-REST / src / main / java / org / onap / policy / pap / xacml / rest / components / CreateBrmsParamPolicy.java
index 4de65fd..2a13fb0 100644 (file)
@@ -214,10 +214,8 @@ public class CreateBrmsParamPolicy extends Policy {
                                                comment = true;
                                                continue;
                                        }
-                                       if (line.contains("//")) {
-                                               if(!(line.contains("http://") || line.contains("https://"))){
+                                       if (line.contains("//") && !(line.contains("http://") || line.contains("https://"))){
                                                        line = line.split("\\/\\/")[0];
-                                               }
                                        }
                                        if (line.contains("/*")) {
                                                comment = true;