directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1336670 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java
Date Thu, 10 May 2012 13:25:58 GMT
Author: elecharny
Date: Thu May 10 13:25:57 2012
New Revision: 1336670

URL: http://svn.apache.org/viewvc?rev=1336670&view=rev
Log:
Removed useless casts

Modified:
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java?rev=1336670&r1=1336669&r2=1336670&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java
Thu May 10 13:25:57 2012
@@ -550,7 +550,7 @@ public class SearchHandler extends LdapR
         LdapResult ldapResult = req.getResultResponse().getLdapResult();
         ldapResult.setResultCode( ResultCodeEnum.SUCCESS );
         req.getResultResponse().addControl( pagedSearchControl );
-        return ( SearchResultDone ) req.getResultResponse();
+        return req.getResultResponse();
     }
 
 
@@ -648,7 +648,7 @@ public class SearchHandler extends LdapR
 
                 // If we had a cookie in the session, remove it
                 removeContext( session, pagedContext );
-                return ( SearchResultDone ) req.getResultResponse();
+                return req.getResultResponse();
             }
             else
             {
@@ -687,7 +687,7 @@ public class SearchHandler extends LdapR
                 ldapResult.setDiagnosticMessage( "Invalid cookie for this PagedSearch request."
);
                 ldapResult.setResultCode( ResultCodeEnum.UNWILLING_TO_PERFORM );
 
-                return ( SearchResultDone ) req.getResultResponse();
+                return req.getResultResponse();
             }
 
             if ( pagedContext.hasSameRequest( req, session ) )
@@ -755,7 +755,7 @@ public class SearchHandler extends LdapR
             }
         }
 
-        return ( SearchResultDone ) req.getResultResponse();
+        return req.getResultResponse();
     }
 
 
@@ -825,7 +825,7 @@ public class SearchHandler extends LdapR
             }
         }
 
-        return ( SearchResultDone ) req.getResultResponse();
+        return req.getResultResponse();
     }
 
 
@@ -1170,7 +1170,7 @@ public class SearchHandler extends LdapR
                 {
                     LOG.debug( "Entry is a referral: {}", entry );
 
-                    handleReferralEntryForSearch( session, req, ( ( ClonedServerEntry ) entry
) );
+                    handleReferralEntryForSearch( session, req, entry );
 
                     return;
                 }



Mime
View raw message