directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1067741 - in /directory/shared/branches/m1/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api: LdapNetworkConnection.java protocol/LdapProtocolDecoder.java
Date Sun, 06 Feb 2011 19:58:18 GMT
Author: akarasulu
Date: Sun Feb  6 19:58:17 2011
New Revision: 1067741

URL: http://svn.apache.org/viewvc?rev=1067741&view=rev
Log:
cleanup some generics warnings

Modified:
    directory/shared/branches/m1/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
    directory/shared/branches/m1/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/protocol/LdapProtocolDecoder.java

Modified: directory/shared/branches/m1/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java?rev=1067741&r1=1067740&r2=1067741&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
(original)
+++ directory/shared/branches/m1/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
Sun Feb  6 19:58:17 2011
@@ -126,7 +126,6 @@ import org.apache.directory.shared.ldap.
 import org.apache.directory.shared.ldap.model.message.SearchResultReference;
 import org.apache.directory.shared.ldap.model.message.UnbindRequest;
 import org.apache.directory.shared.ldap.model.message.UnbindRequestImpl;
-import org.apache.directory.shared.ldap.model.message.controls.AbstractControl;
 import org.apache.directory.shared.ldap.model.message.controls.OpaqueControl;
 import org.apache.directory.shared.ldap.model.name.Dn;
 import org.apache.directory.shared.ldap.model.name.Rdn;

Modified: directory/shared/branches/m1/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/protocol/LdapProtocolDecoder.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/protocol/LdapProtocolDecoder.java?rev=1067741&r1=1067740&r2=1067741&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/protocol/LdapProtocolDecoder.java
(original)
+++ directory/shared/branches/m1/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/protocol/LdapProtocolDecoder.java
Sun Feb  6 19:58:17 2011
@@ -38,7 +38,6 @@ import org.slf4j.LoggerFactory;
 
 
 /**
- * 
  * A LDAP message decoder. It is based on shared-ldap decoder.
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
@@ -65,7 +64,7 @@ public class LdapProtocolDecoder impleme
     {
         // Allocate a LdapMessage Container
         Asn1Decoder ldapDecoder = new Asn1Decoder();
-        Asn1Container ldapMessageContainer = ( LdapMessageContainer ) session.getAttribute(
"LDAP-Container" );
+        Asn1Container ldapMessageContainer = ( LdapMessageContainer<?> ) session.getAttribute(
"LDAP-Container" );
         ByteBuffer buf = buffer.buf();
         int currentPos = 0;
 
@@ -90,7 +89,7 @@ public class LdapProtocolDecoder impleme
                 if ( ldapMessageContainer.getState() == TLVStateEnum.PDU_DECODED )
                 {
                     // get back the decoded message
-                    Message message = ( ( LdapMessageContainer ) ldapMessageContainer ).getMessage();
+                    Message message = ( ( LdapMessageContainer<?> ) ldapMessageContainer
).getMessage();
 
                     if ( IS_DEBUG )
                     {
@@ -99,7 +98,7 @@ public class LdapProtocolDecoder impleme
                     }
 
                     // Clean the container for the next decoding
-                    ( ( LdapMessageContainer ) ldapMessageContainer ).clean();
+                    ( ( LdapMessageContainer<?> ) ldapMessageContainer ).clean();
 
                     // Send back the message
                     out.write( message );
@@ -108,7 +107,7 @@ public class LdapProtocolDecoder impleme
             catch ( DecoderException de )
             {
                 buf.clear();
-                ( ( LdapMessageContainer ) ldapMessageContainer ).clean();
+                ( ( LdapMessageContainer<?> ) ldapMessageContainer ).clean();
                 throw de;
             }
         }



Mime
View raw message