diff --git a/src/main/java/org/gcube/gcat/persistence/ckan/CKANPackage.java b/src/main/java/org/gcube/gcat/persistence/ckan/CKANPackage.java index 8f91e24..2d36947 100644 --- a/src/main/java/org/gcube/gcat/persistence/ckan/CKANPackage.java +++ b/src/main/java/org/gcube/gcat/persistence/ckan/CKANPackage.java @@ -100,8 +100,6 @@ public class CKANPackage extends CKAN { // The 'results' array is included in the 'result' object for package_search private static final String RESULTS_KEY = "results"; - private static final String COUNT_KEY = "count"; - protected static final String PRIVATE_KEY = "private"; protected static final String SEARCHABLE_KEY = "searchable"; protected static final String CAPACITY_KEY = "capacity"; @@ -347,7 +345,7 @@ public class CKANPackage extends CKAN { sendGetRequest(LIST, parameters); - int count = result.get(COUNT_KEY).asInt(); + int count = result.get(GCatConstants.COUNT_KEY).asInt(); return count; }