work around jetty compilation issue of analysis.jsp

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@543659 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2007-06-01 23:32:56 +00:00
parent 29222b088c
commit 37816d294d
1 changed files with 10 additions and 0 deletions

View File

@ -312,11 +312,21 @@
List<Tok>[] arr = (List<Tok>[])map.values().toArray(new ArrayList[map.size()]);
/* Jetty 6.1.3 miscompiles this generics version...
Arrays.sort(arr, new Comparator<List<Tok>>() {
public int compare(List<Tok> toks, List<Tok> toks1) {
return toks.get(0).pos - toks1.get(0).pos;
}
}
*/
Arrays.sort(arr, new Comparator() {
public int compare(Object toks, Object toks1) {
return ((List<Tok>)toks).get(0).pos - ((List<Tok>)toks1).get(0).pos;
}
}
);
out.println("<table width=\"auto\" class=\"analysis\" border=\"1\">");