harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r1022064 - /harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/lang/AbstractStringBuilder.java
Date Wed, 13 Oct 2010 10:41:53 GMT
Author: hindessm
Date: Wed Oct 13 10:41:52 2010
New Revision: 1022064

URL: http://svn.apache.org/viewvc?rev=1022064&view=rev
Log:
Remove unnecessary explicit throw.

Modified:
    harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/lang/AbstractStringBuilder.java

Modified: harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/lang/AbstractStringBuilder.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/lang/AbstractStringBuilder.java?rev=1022064&r1=1022063&r2=1022064&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/lang/AbstractStringBuilder.java
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/lang/AbstractStringBuilder.java
Wed Oct 13 10:41:52 2010
@@ -77,9 +77,6 @@ abstract class AbstractStringBuilder {
     }
 
     AbstractStringBuilder(int capacity) {
-        if (capacity < 0) {
-            throw new NegativeArraySizeException();
-        }
         value = new char[capacity];
     }
 



Mime
View raw message