From 79baa1f682aa481a1c49c05cc306631e8ecb5dd4 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Mon, 9 Apr 2012 17:08:19 +0000 Subject: [PATCH] LUCENE-3969: Remove unneeded wildcards git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene3969@1311331 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/lucene/analysis/core/TestRandomChains.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java b/modules/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java index e09178320ae..975c56c758f 100644 --- a/modules/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java +++ b/modules/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java @@ -180,8 +180,8 @@ public class TestRandomChains extends BaseTokenStreamTestCase { /** Hack to work around the stupidness of Oracle's strict Java backwards compatibility. * {@code Class#getConstructors()} should return unmodifiable {@code List>} not array! */ @SuppressWarnings("unchecked") - private static Constructor castConstructor(Class instanceClazz, Constructor ctor) { - return (Constructor) ctor; + private static Constructor castConstructor(Class instanceClazz, Constructor ctor) { + return (Constructor) ctor; } private static void getClassesForPackage(String pckgname, List> classes) throws Exception { @@ -556,7 +556,7 @@ public class TestRandomChains extends BaseTokenStreamTestCase { return sb.toString(); } - private T createComponent(Constructor ctor, Object[] args, StringBuilder descr) { + private T createComponent(Constructor ctor, Object[] args, StringBuilder descr) { try { final T instance = ctor.newInstance(args); if (descr.length() > 0) {