directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r572195 - in /directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful: CallbackHistory.java DecoderStack.java
Date Sun, 02 Sep 2007 23:59:54 GMT
Author: elecharny
Date: Sun Sep  2 16:59:52 2007
New Revision: 572195

URL: http://svn.apache.org/viewvc?rev=572195&view=rev
Log:
Used geznerics to remove some warnings

Modified:
    directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/CallbackHistory.java
    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/CallbackHistory.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/CallbackHistory.java?rev=572195&r1=572194&r2=572195&view=diff
==============================================================================
--- directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/CallbackHistory.java
(original)
+++ directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/CallbackHistory.java
Sun Sep  2 16:59:52 2007
@@ -35,7 +35,7 @@
 public class CallbackHistory implements DecoderCallback, EncoderCallback
 {
     /** history of decoded objects in cronological order */
-    private final LinkedList history;
+    private final LinkedList<Object> history;
 
     /** the length of callback history stored */
     private final int length;
@@ -63,7 +63,7 @@
     public CallbackHistory(int length)
     {
         this.length = length;
-        history = new LinkedList();
+        history = new LinkedList<Object>();
     }
 
 

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=572195&r1=572194&r2=572195&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
Sun Sep  2 16:59:52 2007
@@ -42,7 +42,7 @@
     private final DecoderCallback topcb;
 
     /** a stack of StatefulDecoders */
-    private Stack decoders = new Stack();
+    private Stack<StatefulDecoder> decoders = new Stack<StatefulDecoder>();
 
 
     /**



Mime
View raw message