directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r542339 - in /directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns: io/encoder/DnsMessageEncoder.java io/encoder/ResourceRecordEncoder.java store/operations/GetRecords.java
Date Mon, 28 May 2007 22:02:58 GMT
Author: erodriguez
Date: Mon May 28 15:02:57 2007
New Revision: 542339

URL: http://svn.apache.org/viewvc?view=rev&rev=542339
Log:
Warnings clean-up, unnecessary casts.

Modified:
    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/io/encoder/ResourceRecordEncoder.java
    directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/store/operations/GetRecords.java

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?view=diff&rev=542339&r1=542338&r2=542339
==============================================================================
--- 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
Mon May 28 15:02:57 2007
@@ -207,7 +207,7 @@
     {
         if ( recursionDesired )
         {
-            return ( byte ) ( ( byte ) 0x01 );
+            return ( byte ) 0x01;
         }
         return 0;
     }

Modified: directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/io/encoder/ResourceRecordEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/io/encoder/ResourceRecordEncoder.java?view=diff&rev=542339&r1=542338&r2=542339
==============================================================================
--- directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/io/encoder/ResourceRecordEncoder.java
(original)
+++ directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/io/encoder/ResourceRecordEncoder.java
Mon May 28 15:02:57 2007
@@ -120,7 +120,7 @@
 
     protected void putRecordClass( ByteBuffer byteBuffer, RecordClass recordClass )
     {
-        byteBuffer.putShort( ( short ) recordClass.convert() );
+        byteBuffer.putShort( recordClass.convert() );
     }
 
 

Modified: directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/store/operations/GetRecords.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/store/operations/GetRecords.java?view=diff&rev=542339&r1=542338&r2=542339
==============================================================================
--- directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/store/operations/GetRecords.java
(original)
+++ directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/store/operations/GetRecords.java
Mon May 28 15:02:57 2007
@@ -130,7 +130,7 @@
         SearchControls controls = new SearchControls();
         controls.setSearchScope( SearchControls.SUBTREE_SCOPE );
 
-        String filter = "(objectClass=" + ( String ) TYPE_TO_OBJECTCLASS.get( type ) + ")";
+        String filter = "(objectClass=" + TYPE_TO_OBJECTCLASS.get( type ) + ")";
 
         NamingEnumeration list = ctx.search( transformDomainName( name ), filter, controls
);
 
@@ -266,7 +266,7 @@
 
             if ( !value.equals( "apacheDnsAbstractRecord" ) )
             {
-                RecordType type = ( RecordType ) OBJECTCLASS_TO_TYPE.get( value );
+                RecordType type = OBJECTCLASS_TO_TYPE.get( value );
 
                 if ( type == null )
                 {



Mime
View raw message