Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
junjiem committed Jul 10, 2017
1 parent f111319 commit adb54dc
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/main/java/org/cboard/solr/SolrDataProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -213,24 +213,4 @@ public String[][] getData() throws Exception {

return strings;
}

private static Ordering<Field> fieldOrdering = Ordering.from(new Comparator<Field>() {
@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;
}
});
}

0 comments on commit adb54dc

Please sign in to comment.