directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r575353 - in /directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns: io/decoder/DnsMessageDecoder.java io/encoder/DnsMessageEncoder.java store/jndi/MultiBaseSearch.java store/jndi/operations/GetRecords.java
Date Thu, 13 Sep 2007 16:06:04 GMT
Author: elecharny
Date: Thu Sep 13 09:06:03 2007
New Revision: 575353

URL: http://svn.apache.org/viewvc?rev=575353&view=rev
Log:
Removed warnings by using generics, cleaning the antlr .g files from useless imports, removed
useless casts.

Modified:
    directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/io/decoder/DnsMessageDecoder.java
    directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/io/encoder/DnsMessageEncoder.java
    directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/store/jndi/MultiBaseSearch.java
    directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/store/jndi/operations/GetRecords.java

Modified: directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/io/decoder/DnsMessageDecoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/io/decoder/DnsMessageDecoder.java?rev=575353&r1=575352&r2=575353&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/io/decoder/DnsMessageDecoder.java
(original)
+++ directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/io/decoder/DnsMessageDecoder.java
Thu Sep 13 09:06:03 2007
@@ -143,7 +143,7 @@
 
     private Map<String, Object> decode( ByteBuffer byteBuffer, RecordType type, short
length ) throws IOException
     {
-        RecordDecoder recordDecoder = ( RecordDecoder ) DEFAULT_DECODERS.get( type );
+        RecordDecoder recordDecoder = DEFAULT_DECODERS.get( type );
 
         if ( recordDecoder == null )
         {

Modified: directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/io/encoder/DnsMessageEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/io/encoder/DnsMessageEncoder.java?rev=575353&r1=575352&r2=575353&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/io/encoder/DnsMessageEncoder.java
(original)
+++ directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/io/encoder/DnsMessageEncoder.java
Thu Sep 13 09:06:03 2007
@@ -162,7 +162,7 @@
     {
         RecordType type = record.getRecordType();
 
-        RecordEncoder encoder = ( RecordEncoder ) DEFAULT_ENCODERS.get( type );
+        RecordEncoder encoder = DEFAULT_ENCODERS.get( type );
 
         if ( encoder == null )
         {

Modified: directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/store/jndi/MultiBaseSearch.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/store/jndi/MultiBaseSearch.java?rev=575353&r1=575352&r2=575353&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/store/jndi/MultiBaseSearch.java
(original)
+++ directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/store/jndi/MultiBaseSearch.java
Thu Sep 13 09:06:03 2007
@@ -92,7 +92,7 @@
         try
         {
             DirContext ctx = ( DirContext ) factory.getInitialContext( env );
-            return ( Set<ResourceRecord> ) execute( ctx, new GetRecords( question )
);
+            return execute( ctx, new GetRecords( question ) );
         }
         catch ( LdapNameNotFoundException lnnfe )
         {

Modified: directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/store/jndi/operations/GetRecords.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/store/jndi/operations/GetRecords.java?rev=575353&r1=575352&r2=575353&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/store/jndi/operations/GetRecords.java
(original)
+++ directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/store/jndi/operations/GetRecords.java
Thu Sep 13 09:06:03 2007
@@ -206,7 +206,7 @@
 
         while ( ids.hasMore() )
         {
-            String id = ( String ) ids.next();
+            String id = ids.next();
             modifier.put( id, ( String ) attrs.get( id ).get() );
         }
 



Mime
View raw message