LUCENE-3969: Remove unneeded wildcards

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene3969@1311331 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2012-04-09 17:08:19 +00:00
parent eae8e8159d
commit 79baa1f682
1 changed files with 3 additions and 3 deletions

View File

@ -180,8 +180,8 @@ public class TestRandomChains extends BaseTokenStreamTestCase {
/** Hack to work around the stupidness of Oracle's strict Java backwards compatibility. /** Hack to work around the stupidness of Oracle's strict Java backwards compatibility.
* {@code Class<T>#getConstructors()} should return unmodifiable {@code List<Constructor<T>>} not array! */ * {@code Class<T>#getConstructors()} should return unmodifiable {@code List<Constructor<T>>} not array! */
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
private static <T> Constructor<? extends T> castConstructor(Class<T> instanceClazz, Constructor<?> ctor) { private static <T> Constructor<T> castConstructor(Class<T> instanceClazz, Constructor<?> ctor) {
return (Constructor<? extends T>) ctor; return (Constructor<T>) ctor;
} }
private static void getClassesForPackage(String pckgname, List<Class<?>> classes) throws Exception { private static void getClassesForPackage(String pckgname, List<Class<?>> classes) throws Exception {
@ -556,7 +556,7 @@ public class TestRandomChains extends BaseTokenStreamTestCase {
return sb.toString(); return sb.toString();
} }
private <T> T createComponent(Constructor<? extends T> ctor, Object[] args, StringBuilder descr) { private <T> T createComponent(Constructor<T> ctor, Object[] args, StringBuilder descr) {
try { try {
final T instance = ctor.newInstance(args); final T instance = ctor.newInstance(args);
if (descr.length() > 0) { if (descr.length() > 0) {