From 4c29ad416991203712fa245415e7d19f59d4aad6 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Wed, 9 Mar 2011 09:44:14 +0000 Subject: [PATCH] Make older JDK 1.5 happy with the ugly casts by removing generics here git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1079712 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/src/java/org/apache/lucene/search/SortField.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/src/java/org/apache/lucene/search/SortField.java b/lucene/src/java/org/apache/lucene/search/SortField.java index de10014e8b5..b17b2247d7f 100644 --- a/lucene/src/java/org/apache/lucene/search/SortField.java +++ b/lucene/src/java/org/apache/lucene/search/SortField.java @@ -90,7 +90,7 @@ public class SortField { private String field; private int type; // defaults to determining type dynamically boolean reverse = false; // defaults to natural order - private CachedArrayCreator creator; + @SuppressWarnings("unchecked") private CachedArrayCreator creator; public Object missingValue = null; // used for 'sortMissingFirst/Last' // Used for CUSTOM sort