aboutsummaryrefslogtreecommitdiffstats
path: root/model/context-model
diff options
context:
space:
mode:
authorJvD_Ericsson <jeff.van.dam@est.tech>2020-07-24 10:07:18 +0100
committerJvD_Ericsson <jeff.van.dam@est.tech>2020-07-24 10:18:44 +0100
commit0eef1b686645270765c22eeb7a24544e3db6829f (patch)
tree6f28384e6795f8c1ba1f00c830d84d571283f065 /model/context-model
parentba58c5bad6075f7bc902de80190cc6770a209bb6 (diff)
Fix replaceAll SONAR issues in apex-pdp
Change replaceAll() with repalce() in apex-pdp Issue-ID: POLICY-2722 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I8a15b99f02399addfc8f0e25349e3022d8b8c9f1
Diffstat (limited to 'model/context-model')
-rw-r--r--model/context-model/src/main/java/org/onap/policy/apex/model/contextmodel/concepts/AxContextSchema.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/model/context-model/src/main/java/org/onap/policy/apex/model/contextmodel/concepts/AxContextSchema.java b/model/context-model/src/main/java/org/onap/policy/apex/model/contextmodel/concepts/AxContextSchema.java
index 4ddfb7175..00baebeab 100644
--- a/model/context-model/src/main/java/org/onap/policy/apex/model/contextmodel/concepts/AxContextSchema.java
+++ b/model/context-model/src/main/java/org/onap/policy/apex/model/contextmodel/concepts/AxContextSchema.java
@@ -1,7 +1,7 @@
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2016-2018 Ericsson. All rights reserved.
- * Modifications Copyright (C) 2019 Nordix Foundation.
+ * Modifications Copyright (C) 2019-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.
@@ -324,8 +324,8 @@ public class AxContextSchema extends AxConcept {
if (!schemaFlavour.equals(other.schemaFlavour)) {
return false;
}
- final String thisSchema = CDataConditioner.clean(schemaDefinition).replaceAll("\n", "");
- final String otherSchema = CDataConditioner.clean(other.schemaDefinition).replaceAll("\n", "");
+ final String thisSchema = CDataConditioner.clean(schemaDefinition).replace("\n", "");
+ final String otherSchema = CDataConditioner.clean(other.schemaDefinition).replace("\n", "");
return thisSchema.equals(otherSchema);
}
@@ -351,8 +351,8 @@ public class AxContextSchema extends AxConcept {
if (!schemaFlavour.equals(other.schemaFlavour)) {
return schemaFlavour.compareTo(other.schemaFlavour);
}
- final String thisSchema = CDataConditioner.clean(schemaDefinition).replaceAll("\n", "");
- final String otherSchema = CDataConditioner.clean(other.schemaDefinition).replaceAll("\n", "");
+ final String thisSchema = CDataConditioner.clean(schemaDefinition).replace("\n", "");
+ final String otherSchema = CDataConditioner.clean(other.schemaDefinition).replace("\n", "");
return thisSchema.compareTo(otherSchema);
}
}