directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r582159 - /directory/apacheds/branches/bigbang/core-unit/src/test/java/org/apache/directory/server/core/jndi/CreateContextITest.java
Date Fri, 05 Oct 2007 09:28:47 GMT
Author: elecharny
Date: Fri Oct  5 02:28:46 2007
New Revision: 582159

URL: http://svn.apache.org/viewvc?rev=582159&view=rev
Log:
Removed warnings

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

Modified: directory/apacheds/branches/bigbang/core-unit/src/test/java/org/apache/directory/server/core/jndi/CreateContextITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core-unit/src/test/java/org/apache/directory/server/core/jndi/CreateContextITest.java?rev=582159&r1=582158&r2=582159&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core-unit/src/test/java/org/apache/directory/server/core/jndi/CreateContextITest.java
(original)
+++ directory/apacheds/branches/bigbang/core-unit/src/test/java/org/apache/directory/server/core/jndi/CreateContextITest.java
Fri Oct  5 02:28:46 2007
@@ -76,10 +76,11 @@
         String filter = "(sn=Bush)";
         String base = "";
 
-        NamingEnumeration enm = sysRoot.search( base, filter, sctls );
+        NamingEnumeration<SearchResult> enm = sysRoot.search( base, filter, sctls );
+        
         while ( enm.hasMore() )
         {
-            SearchResult sr = ( SearchResult ) enm.next();
+            SearchResult sr = enm.next();
             attrs = sr.getAttributes();
             Attribute cn = sr.getAttributes().get( "cn" );
             assertNotNull( cn );



Mime
View raw message