diff --git a/android/guava-tests/test/com/google/common/net/MediaTypeTest.java b/android/guava-tests/test/com/google/common/net/MediaTypeTest.java index cec3cdd28cce..574db68e80b3 100644 --- a/android/guava-tests/test/com/google/common/net/MediaTypeTest.java +++ b/android/guava-tests/test/com/google/common/net/MediaTypeTest.java @@ -46,7 +46,6 @@ import com.google.common.testing.NullPointerTester; import java.lang.reflect.Field; import java.nio.charset.Charset; -import java.nio.charset.IllegalCharsetNameException; import java.nio.charset.UnsupportedCharsetException; import java.util.Arrays; import junit.framework.TestCase; @@ -537,7 +536,7 @@ public void testGetCharset_illegalCharset() { try { mediaType.charset(); fail(); - } catch (IllegalCharsetNameException expected) { + } catch (IllegalArgumentException expected) { } } diff --git a/guava-tests/test/com/google/common/net/MediaTypeTest.java b/guava-tests/test/com/google/common/net/MediaTypeTest.java index cec3cdd28cce..574db68e80b3 100644 --- a/guava-tests/test/com/google/common/net/MediaTypeTest.java +++ b/guava-tests/test/com/google/common/net/MediaTypeTest.java @@ -46,7 +46,6 @@ import com.google.common.testing.NullPointerTester; import java.lang.reflect.Field; import java.nio.charset.Charset; -import java.nio.charset.IllegalCharsetNameException; import java.nio.charset.UnsupportedCharsetException; import java.util.Arrays; import junit.framework.TestCase; @@ -537,7 +536,7 @@ public void testGetCharset_illegalCharset() { try { mediaType.charset(); fail(); - } catch (IllegalCharsetNameException expected) { + } catch (IllegalArgumentException expected) { } }