summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--model/event-model/src/main/java/org/onap/policy/apex/model/eventmodel/concepts/AxEvent.java2
-rw-r--r--model/utilities/src/main/java/org/onap/policy/apex/model/utilities/comparison/KeyedMapDifference.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/model/event-model/src/main/java/org/onap/policy/apex/model/eventmodel/concepts/AxEvent.java b/model/event-model/src/main/java/org/onap/policy/apex/model/eventmodel/concepts/AxEvent.java
index 74ba1f958..5a7550c03 100644
--- a/model/event-model/src/main/java/org/onap/policy/apex/model/eventmodel/concepts/AxEvent.java
+++ b/model/event-model/src/main/java/org/onap/policy/apex/model/eventmodel/concepts/AxEvent.java
@@ -526,7 +526,7 @@ public class AxEvent extends AxConcept {
return nameSpace.compareTo(other.nameSpace);
}
if (!source.equals(other.source)) {
- return target.compareTo(other.source);
+ return source.compareTo(other.source);
}
if (!target.equals(other.target)) {
return target.compareTo(other.target);
diff --git a/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/comparison/KeyedMapDifference.java b/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/comparison/KeyedMapDifference.java
index a7022d84d..91c523ed1 100644
--- a/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/comparison/KeyedMapDifference.java
+++ b/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/comparison/KeyedMapDifference.java
@@ -102,7 +102,7 @@ public class KeyedMapDifference<K, V> {
builder.append(getInOneSideOnlyAsString(leftOnly, "left", keysOnly));
}
- if (leftOnly.isEmpty()) {
+ if (rightOnly.isEmpty()) {
if (!diffsOnly) {
builder.append("*** all right keys in left\n");
}