diff options
author | 2020-03-13 21:37:47 +0000 | |
---|---|---|
committer | 2020-03-13 21:37:47 +0000 | |
commit | c38ecec3e51ef7a5cbb820875a441f8551cd133b (patch) | |
tree | 7986f3e680d00f7a9cc0a1da33be2d3d3f4382b4 /controlloop/common/coordination | |
parent | 50c693bd21e104bea8d2e53f7130f31ae5869f75 (diff) | |
parent | 7f6929e5ea6da4015090b3adac73b35f9b3afb18 (diff) |
Merge "Fix sonar issues in drools-applications"
Diffstat (limited to 'controlloop/common/coordination')
-rw-r--r-- | controlloop/common/coordination/src/main/java/org/onap/policy/coordination/Util.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/controlloop/common/coordination/src/main/java/org/onap/policy/coordination/Util.java b/controlloop/common/coordination/src/main/java/org/onap/policy/coordination/Util.java index 12b361f9f..a47854736 100644 --- a/controlloop/common/coordination/src/main/java/org/onap/policy/coordination/Util.java +++ b/controlloop/common/coordination/src/main/java/org/onap/policy/coordination/Util.java @@ -1,8 +1,8 @@ /*- * ============LICENSE_START======================================================= - * controlloop + * ONAP * ================================================================================ - * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2019-2020 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. @@ -95,9 +95,9 @@ public final class Util { */ String xacmlPolicy = null; try (Stream<String> stream = Files.lines(Paths.get(xacmlProtoFilename))) { - xacmlPolicy = stream.map(s -> s.replaceAll("UNIQUE_ID", uniqueId)) - .map(s -> s.replaceAll("CONTROL_LOOP_ONE", cLOne)) - .map(s -> s.replaceAll("CONTROL_LOOP_TWO", cLTwo)) + xacmlPolicy = stream.map(s -> s.replace("UNIQUE_ID", uniqueId)) + .map(s -> s.replace("CONTROL_LOOP_ONE", cLOne)) + .map(s -> s.replace("CONTROL_LOOP_TWO", cLTwo)) .collect(Collectors.joining(System.lineSeparator())); } catch (IOException e) { logger.error("Error while generating XACML policy for coordination directive", e); |