mirror of https://github.com/apache/lucene.git
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:
parent
29222b088c
commit
37816d294d
|
@ -312,11 +312,21 @@
|
||||||
|
|
||||||
List<Tok>[] arr = (List<Tok>[])map.values().toArray(new ArrayList[map.size()]);
|
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>>() {
|
Arrays.sort(arr, new Comparator<List<Tok>>() {
|
||||||
public int compare(List<Tok> toks, List<Tok> toks1) {
|
public int compare(List<Tok> toks, List<Tok> toks1) {
|
||||||
return toks.get(0).pos - toks1.get(0).pos;
|
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\">");
|
out.println("<table width=\"auto\" class=\"analysis\" border=\"1\">");
|
||||||
|
|
Loading…
Reference in New Issue