From 3a2e21f609f4ba73a79e2dd79940849e3a5014bd Mon Sep 17 00:00:00 2001 From: Artem Naluzhnyy Date: Thu, 8 Aug 2019 11:41:05 +0200 Subject: Fix copy&paste typo in AxEvent.compareTo Coverity-scan: CID-229652 Issue-ID: POLICY-1961 Signed-off-by: Artem Naluzhnyy Change-Id: I29fa25d0ead6930dd47a0eed17d2a4dd6e489ee6 --- .../java/org/onap/policy/apex/model/eventmodel/concepts/AxEvent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'model') 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); -- cgit 1.2.3-korg