directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r575350 - /directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/DecoderStack.java
Date Thu, 13 Sep 2007 16:05:18 GMT
Author: elecharny
Date: Thu Sep 13 09:05:18 2007
New Revision: 575350

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

Modified:
    directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/DecoderStack.java

Modified: directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/DecoderStack.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/DecoderStack.java?rev=575350&r1=575349&r2=575350&view=diff
==============================================================================
--- directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/DecoderStack.java
(original)
+++ directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/DecoderStack.java
Thu Sep 13 09:05:18 2007
@@ -75,7 +75,7 @@
 
         if ( !decoders.isEmpty() )
         {
-            StatefulDecoder top = ( StatefulDecoder ) decoders.peek();
+            StatefulDecoder top = decoders.peek();
             ChainingCallback chaining = new ChainingCallback( top, decoder );
             top.setCallback( chaining );
         }
@@ -98,12 +98,12 @@
             return this;
         }
 
-        StatefulDecoder popped = ( StatefulDecoder ) decoders.pop();
+        StatefulDecoder popped = decoders.pop();
         popped.setCallback( null );
 
         if ( !decoders.isEmpty() )
         {
-            StatefulDecoder top = ( StatefulDecoder ) decoders.peek();
+            StatefulDecoder top = decoders.peek();
             top.setCallback( this.topcb );
         }
 
@@ -128,7 +128,7 @@
             return;
         }
 
-        ( ( StatefulDecoder ) decoders.get( 0 ) ).decode( encoded );
+        decoders.get( 0 ).decode( encoded );
     }
 
 



Mime
View raw message