directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r660382 - /directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SearchITest.java
Date Tue, 27 May 2008 05:10:07 GMT
Author: akarasulu
Date: Mon May 26 22:10:02 2008
New Revision: 660382

URL: http://svn.apache.org/viewvc?rev=660382&view=rev
Log:
generics warning correction

Modified:
    directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SearchITest.java

Modified: directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SearchITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SearchITest.java?rev=660382&r1=660381&r2=660382&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SearchITest.java
(original)
+++ directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SearchITest.java
Mon May 26 22:10:02 2008
@@ -767,11 +767,11 @@
         controls.setSearchScope( SearchControls.ONELEVEL_SCOPE );
         controls.setReturningAttributes( new String[]{"cn"} );
         
-        NamingEnumeration res = ctx.search( "", "(commonName=Tori*)", controls );
+        NamingEnumeration<SearchResult> res = ctx.search( "", "(commonName=Tori*)",
controls );
         
         assertTrue( res.hasMore() );
         
-        SearchResult result = ( SearchResult ) res.next();
+        SearchResult result = res.next();
 
         // ensure that result is not null
         assertNotNull( result );



Mime
View raw message