From 82c22128be44c738388d5562081bf2c753d562ea Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Wed, 9 Mar 2011 09:54:19 +0000 Subject: [PATCH] add a comment to previous commit, so nobody breaks this by e.g. Eclipse auto-cleanup git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1079716 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/src/java/org/apache/lucene/search/SortField.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lucene/src/java/org/apache/lucene/search/SortField.java b/lucene/src/java/org/apache/lucene/search/SortField.java index b17b2247d7f..f5860ffe272 100644 --- a/lucene/src/java/org/apache/lucene/search/SortField.java +++ b/lucene/src/java/org/apache/lucene/search/SortField.java @@ -90,7 +90,11 @@ public class SortField { private String field; private int type; // defaults to determining type dynamically boolean reverse = false; // defaults to natural order + + // This is not generified because of a javac bug in early JDK 1.5 (e.g. used by FreeBSD). + // With as type param, getComparator() fails to compile because of cast problems. @SuppressWarnings("unchecked") private CachedArrayCreator creator; + public Object missingValue = null; // used for 'sortMissingFirst/Last' // Used for CUSTOM sort