harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r570814 - /harmony/enhanced/classlib/branches/java6/modules/nio_char/src/main/java/java/nio/charset/CoderResult.java
Date Wed, 29 Aug 2007 13:52:07 GMT
Author: tellison
Date: Wed Aug 29 06:52:06 2007
New Revision: 570814

URL: http://svn.apache.org/viewvc?rev=570814&view=rev
Log:
Fix for HARMONY-4559 ([classlib][nio_char][java6]Remove exceptions throws declaration in java.nio.charset.CoderResult.java)

Modified:
    harmony/enhanced/classlib/branches/java6/modules/nio_char/src/main/java/java/nio/charset/CoderResult.java

Modified: harmony/enhanced/classlib/branches/java6/modules/nio_char/src/main/java/java/nio/charset/CoderResult.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/nio_char/src/main/java/java/nio/charset/CoderResult.java?rev=570814&r1=570813&r2=570814&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/nio_char/src/main/java/java/nio/charset/CoderResult.java
(original)
+++ harmony/enhanced/classlib/branches/java6/modules/nio_char/src/main/java/java/nio/charset/CoderResult.java
Wed Aug 29 06:52:06 2007
@@ -112,8 +112,7 @@
      * @throws IllegalArgumentException
      *             If <code>length</code> is non-positive.
      */
-    public static synchronized CoderResult malformedForLength(int length)
-            throws IllegalArgumentException {
+    public static synchronized CoderResult malformedForLength(int length) {
         if (length > 0) {
             Integer key = Integer.valueOf(length);
             synchronized (_malformedErrors) {
@@ -142,8 +141,7 @@
      * @throws IllegalArgumentException
      *             If <code>length</code> is non-positive.
      */
-    public static synchronized CoderResult unmappableForLength(int length)
-            throws IllegalArgumentException {
+    public static synchronized CoderResult unmappableForLength(int length) {
         if (length > 0) {
             Integer key = Integer.valueOf(length);
             synchronized (_unmappableErrors) {
@@ -216,7 +214,7 @@
      * @throws UnsupportedOperationException
      *             If this result is an overflow or underflow.
      */
-    public int length() throws UnsupportedOperationException {
+    public int length() {
         if (this.type == TYPE_MALFORMED_INPUT
                 || this.type == TYPE_UNMAPPABLE_CHAR) {
             return this.length;
@@ -241,9 +239,7 @@
      * @throws CharacterCodingException
      *             The default exception.
      */
-    public void throwException() throws BufferUnderflowException,
-            BufferOverflowException, UnmappableCharacterException,
-            MalformedInputException, CharacterCodingException {
+    public void throwException() throws CharacterCodingException {
         switch (this.type) {
             case TYPE_UNDERFLOW:
                 throw new BufferUnderflowException();



Mime
View raw message