commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1088087 - /commons/proper/discovery/trunk/src/test/org/apache/commons/discovery/test/TestAll.java
Date Sat, 02 Apr 2011 19:01:30 GMT
Author: simonetripodi
Date: Sat Apr  2 19:01:30 2011
New Revision: 1088087

URL: http://svn.apache.org/viewvc?rev=1088087&view=rev
Log:
fixed type inference in testViaDiscoverClass method

Modified:
    commons/proper/discovery/trunk/src/test/org/apache/commons/discovery/test/TestAll.java

Modified: commons/proper/discovery/trunk/src/test/org/apache/commons/discovery/test/TestAll.java
URL: http://svn.apache.org/viewvc/commons/proper/discovery/trunk/src/test/org/apache/commons/discovery/test/TestAll.java?rev=1088087&r1=1088086&r2=1088087&view=diff
==============================================================================
--- commons/proper/discovery/trunk/src/test/org/apache/commons/discovery/test/TestAll.java
(original)
+++ commons/proper/discovery/trunk/src/test/org/apache/commons/discovery/test/TestAll.java
Sat Apr  2 19:01:30 2011
@@ -295,7 +295,7 @@ public class TestAll {
         ClassLoaders loaders = ClassLoaders.getAppLoaders(TestInterface2.class, getClass(),
false);
         
         DiscoverClass discover = new DiscoverClass(loaders);
-        Class<?> implClass = discover.find(TestInterface2.class);
+        Class<? extends TestInterface2> implClass = discover.find(TestInterface2.class);
         
         assertTrue("Failed to find an implementation class", implClass != null);
         assertEquals("org.apache.commons.discovery.test.TestImpl2_1", implClass.getName());



Mime
View raw message