From adb54dc42f4ed06e3b42c1d212526492795ff925 Mon Sep 17 00:00:00 2001 From: "Junjie.M" Date: Mon, 10 Jul 2017 16:32:04 +0800 Subject: [PATCH] update --- .../org/cboard/solr/SolrDataProvider.java | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/src/main/java/org/cboard/solr/SolrDataProvider.java b/src/main/java/org/cboard/solr/SolrDataProvider.java index 13028aa75..5281a9f3f 100644 --- a/src/main/java/org/cboard/solr/SolrDataProvider.java +++ b/src/main/java/org/cboard/solr/SolrDataProvider.java @@ -213,24 +213,4 @@ public String[][] getData() throws Exception { return strings; } - - private static Ordering fieldOrdering = Ordering.from(new Comparator() { - @Override - public int compare(Field o1, Field o2) { - return Integer.compare(getOrder(o1), getOrder(o2)); - } - - private int getOrder(Field field) { - field.setAccessible(true); - DatasourceParameter datasourceParameter = field.getAnnotation(DatasourceParameter.class); - if (datasourceParameter != null) { - return datasourceParameter.order(); - } - QueryParameter queryParameter = field.getAnnotation(QueryParameter.class); - if (queryParameter != null) { - return queryParameter.order(); - } - return 0; - } - }); } \ No newline at end of file