lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r1311331 - /lucene/dev/branches/lucene3969/modules/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java
Date Mon, 09 Apr 2012 17:08:19 GMT
Author: uschindler
Date: Mon Apr  9 17:08:19 2012
New Revision: 1311331

URL: http://svn.apache.org/viewvc?rev=1311331&view=rev
Log:
LUCENE-3969: Remove unneeded wildcards

Modified:
    lucene/dev/branches/lucene3969/modules/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java

Modified: lucene/dev/branches/lucene3969/modules/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene3969/modules/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java?rev=1311331&r1=1311330&r2=1311331&view=diff
==============================================================================
--- lucene/dev/branches/lucene3969/modules/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java
(original)
+++ lucene/dev/branches/lucene3969/modules/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java
Mon Apr  9 17:08:19 2012
@@ -180,8 +180,8 @@ public class TestRandomChains extends Ba
   /** 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! */
   @SuppressWarnings("unchecked") 
-  private static <T> Constructor<? extends T> castConstructor(Class<T>
instanceClazz, Constructor<?> ctor) {
-    return (Constructor<? extends T>) ctor;
+  private static <T> Constructor<T> castConstructor(Class<T> instanceClazz,
Constructor<?> ctor) {
+    return (Constructor<T>) ctor;
   }
   
   private static void getClassesForPackage(String pckgname, List<Class<?>> classes)
throws Exception {
@@ -556,7 +556,7 @@ public class TestRandomChains extends Ba
       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 {
         final T instance = ctor.newInstance(args);
         if (descr.length() > 0) {



Mime
View raw message