directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r587144 - /directory/shared/branches/bigbang/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERSequence.java
Date Mon, 22 Oct 2007 16:25:14 GMT
Author: elecharny
Date: Mon Oct 22 09:25:13 2007
New Revision: 587144

URL: http://svn.apache.org/viewvc?rev=587144&view=rev
Log:
DERSequence stores DEREncodable vector instead of Object vector: less warnings

Modified:
    directory/shared/branches/bigbang/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERSequence.java

Modified: directory/shared/branches/bigbang/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERSequence.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/bigbang/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERSequence.java?rev=587144&r1=587143&r2=587144&view=diff
==============================================================================
--- directory/shared/branches/bigbang/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERSequence.java
(original)
+++ directory/shared/branches/bigbang/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERSequence.java
Mon Oct 22 09:25:13 2007
@@ -31,7 +31,7 @@
 
 public class DERSequence implements DEREncodable
 {
-    private Vector v = new Vector();
+    private Vector<DEREncodable> v = new Vector<DEREncodable>();
 
 
     public void add( DEREncodable obj )
@@ -40,7 +40,7 @@
     }
 
 
-    public Enumeration getObjects()
+    public Enumeration<DEREncodable> getObjects()
     {
         return v.elements();
     }
@@ -69,7 +69,7 @@
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         ASN1OutputStream aos = new ASN1OutputStream( baos );
 
-        Enumeration e = getObjects();
+        Enumeration<DEREncodable> e = getObjects();
 
         while ( e.hasMoreElements() )
         {



Mime
View raw message