harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r939629 - /harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/org/apache/harmony/luni/platform/Environment.java
Date Fri, 30 Apr 2010 10:47:51 GMT
Author: odeakin
Date: Fri Apr 30 10:47:51 2010
New Revision: 939629

URL: http://svn.apache.org/viewvc?rev=939629&view=rev
Log:
Replace RuntimeException with AssertionError.

Modified:
    harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/org/apache/harmony/luni/platform/Environment.java

Modified: harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/org/apache/harmony/luni/platform/Environment.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/org/apache/harmony/luni/platform/Environment.java?rev=939629&r1=939628&r2=939629&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/org/apache/harmony/luni/platform/Environment.java
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/org/apache/harmony/luni/platform/Environment.java
Fri Apr 30 10:47:51 2010
@@ -72,7 +72,7 @@ public class Environment {
             return new String(env, "UTF-8");
         } catch (UnsupportedEncodingException e) {
             // UTF-8 should always be supported so this should not be reached
-            throw new RuntimeException(e);
+            throw new AssertionError(e);
         }        
     }
 



Mime
View raw message