You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2007/10/05 11:28:47 UTC

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

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 );