harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r822223 - /harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/GenericURLContext.java
Date Tue, 06 Oct 2009 11:23:26 GMT
Author: tellison
Date: Tue Oct  6 11:23:26 2009
New Revision: 822223

URL: http://svn.apache.org/viewvc?rev=822223&view=rev
Log:
Fix code that created, but forgot to throw the exception.

Modified:
    harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/GenericURLContext.java

Modified: harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/GenericURLContext.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/GenericURLContext.java?rev=822223&r1=822222&r2=822223&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/GenericURLContext.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/GenericURLContext.java
Tue Oct  6 11:23:26 2009
@@ -768,18 +768,17 @@
 
                 if (next > length) {
                     // jndi.2B=Invalid URL format: {0}
-                    new IllegalArgumentException(Messages.getString(
+                    throw new IllegalArgumentException(Messages.getString(
                             "jndi.2B", str)); //$NON-NLS-1$
-                }
+               }
 
                 try {
                     bytes[index++] = (byte) Integer.parseInt(str.substring(i,
                             next), 16);
                 } catch (NumberFormatException e) {
-                    throw (IllegalArgumentException)
                     // jndi.2B=Invalid URL format: {0}
-                    new IllegalArgumentException(Messages.getString(
-                            "jndi.2B", str)).initCause(e); //$NON-NLS-1$
+                    throw (IllegalArgumentException) new IllegalArgumentException(
+                            Messages.getString("jndi.2B", str)).initCause(e); //$NON-NLS-1$
                 }
 
                 i = next;



Mime
View raw message