From 0eef1b686645270765c22eeb7a24544e3db6829f Mon Sep 17 00:00:00 2001 From: JvD_Ericsson Date: Fri, 24 Jul 2020 10:07:18 +0100 Subject: Fix replaceAll SONAR issues in apex-pdp Change replaceAll() with repalce() in apex-pdp Issue-ID: POLICY-2722 Signed-off-by: JvD_Ericsson Change-Id: I8a15b99f02399addfc8f0e25349e3022d8b8c9f1 --- .../main/java/org/onap/policy/apex/model/modelapi/ApexApiResult.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'model/model-api/src') diff --git a/model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/ApexApiResult.java b/model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/ApexApiResult.java index 7d69ff551..9fdb471dc 100644 --- a/model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/ApexApiResult.java +++ b/model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/ApexApiResult.java @@ -1,6 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * Modifications Copyright (C) 2020 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -269,7 +270,7 @@ public class ApexApiResult { } else { builder.append(",\n\""); } - builder.append(message.replaceAll("\"", "\\\\\"")); + builder.append(message.replace("\"", "\\\\\"")); builder.append("\""); } builder.append("]\n"); -- cgit 1.2.3-korg