harmony-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=411660&view=rev
Log:
Replacing RuntimeException with IllegalArgumentException in constructor

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

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/asn1/ASN1Choice.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/asn1/ASN1Choice.java?rev=411660&r1=411659&r2=411660&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/asn1/ASN1Choice.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/asn1/ASN1Choice.java
Sun Jun  4 21:39:27 2006
@@ -227,7 +227,7 @@
         super(TAG_CHOICE); // has not tag number
 
         if (type.length == 0) {
-            throw new RuntimeException("ASN.1 choice type: "
+            throw new IllegalArgumentException("ASN.1 choice type: "
                     + getClass().getName()
                     + " MUST have at least one alternative");
         }



Mime
View raw message