summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Sungsoo <sungsoo@google.com> 2016-10-13 22:06:01 +0000
committer android-build-merger <android-build-merger@google.com> 2016-10-13 22:06:01 +0000
commit36f64a2f0cf5ab4c1076465aa0131d1f45adcf9f (patch)
treea3e4fc9be95d7c2b6427d8dbf7ecba4f73865db5
parentb3ca7c26e14e96721f9078bcb105959c1f89fe32 (diff)
parentbc813cd510fcc2c9f75ef88b330b0536efb9603b (diff)
ExifInterface: Provide backward compatibility am: 2dbe166801
am: bc813cd510 Change-Id: I0aa6d33baeec8dd991561d964bfce16915c0553d
-rw-r--r--media/java/android/media/ExifInterface.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/media/java/android/media/ExifInterface.java b/media/java/android/media/ExifInterface.java
index 5e00dc1a4fa3..6f24f763d6a6 100644
--- a/media/java/android/media/ExifInterface.java
+++ b/media/java/android/media/ExifInterface.java
@@ -1557,16 +1557,13 @@ public class ExifInterface {
* <p>
* This method is only supported for JPEG files.
* </p>
- *
- * @throws UnsupportedOperationException If this method is called with unsupported files.
*/
public void saveAttributes() throws IOException {
if (!mIsSupportedFile || mIsRaw) {
- throw new UnsupportedOperationException(
- "ExifInterface only supports saving attributes on JPEG formats.");
+ throw new IOException("ExifInterface only supports saving attributes on JPEG formats.");
}
if (mIsInputStream || (mSeekableFileDescriptor == null && mFilename == null)) {
- throw new UnsupportedOperationException(
+ throw new IOException(
"ExifInterface does not support saving attributes for the current input.");
}