harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r411665 - /incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/asn1/ASN1StringType.java
Date Mon, 05 Jun 2006 04:58:24 GMT
Author: smishura
Date: Sun Jun  4 21:58:23 2006
New Revision: 411665

URL: http://svn.apache.org/viewvc?rev=411665&view=rev
Log:
Removing redundant variable 'constructedTag'

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/asn1/ASN1StringType.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/asn1/ASN1StringType.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/asn1/ASN1StringType.java?rev=411665&r1=411664&r2=411665&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/asn1/ASN1StringType.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/asn1/ASN1StringType.java
Sun Jun  4 21:58:23 2006
@@ -78,12 +78,8 @@
         }
     };
 
-    private final int constructedTag;
-
     public ASN1StringType(int tagNumber) {
         super(tagNumber);
-
-        constructedTag = CLASS_UNIVERSAL | PC_CONSTRUCTED | tagNumber;
     }
 
     //
@@ -101,7 +97,7 @@
      *         identifier of this ASN.1 string type, otherwise false
      */
     public final boolean checkTag(int identifier) {
-        return this.id == identifier || this.constructedTag == identifier;
+        return this.id == identifier || this.constrId == identifier;
     }
 
     public Object decode(BerInputStream in) throws IOException {



Mime
View raw message