Remove rawtypes/unchecked warning in FST Util.java

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1297001 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2012-03-05 10:51:29 +00:00
parent 60d9caa11e
commit e5f216f3dd
1 changed files with 3 additions and 1 deletions

View File

@ -490,7 +490,9 @@ public final class Util {
} }
} }
return results.toArray(new MinResult[results.size()]); @SuppressWarnings({"rawtypes","unchecked"}) final MinResult<T>[] arr =
(MinResult<T>[]) new MinResult[results.size()];
return results.toArray(arr);
} }
} }