From f6cb6ea73c8daff289dc8d89992ce09efeab3590 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 30 Jun 2015 11:43:16 +0300 Subject: [PATCH] changed enum order-WARNING at end as DB has enum code stored for collection Status and TRASHED collection was being mapped to WARNING based on DB code --- .../main/java/qa/qcri/aidr/manager/util/CollectionStatus.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aidr-manager/src/main/java/qa/qcri/aidr/manager/util/CollectionStatus.java b/aidr-manager/src/main/java/qa/qcri/aidr/manager/util/CollectionStatus.java index 756a0acd4..ba4dcc5f0 100644 --- a/aidr-manager/src/main/java/qa/qcri/aidr/manager/util/CollectionStatus.java +++ b/aidr-manager/src/main/java/qa/qcri/aidr/manager/util/CollectionStatus.java @@ -8,8 +8,8 @@ public enum CollectionStatus { NOT_FOUND("NOT_FOUND"), RUNNING_WARNING("RUNNING_WARNING"), NOT_RUNNING("NOT_RUNNING"), - WARNING("WARNING"), - TRASHED("TRASHED"); + TRASHED("TRASHED"), + WARNING("WARNING"); private CollectionStatus(String status) { this.status = status;