summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Sungsoo Lim <sungsoo@google.com> 2016-10-13 21:46:38 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-10-13 21:46:41 +0000
commite29077105e79ec9c3050c39cbd690d3abc6b6e13 (patch)
treea933f873688b5db6020c9fa2a40722cc76dc260b
parent137c545e4e153200424f1d6cb368394827cdc6a2 (diff)
parent2dbe166801c531474ce566f804660b58edab1bef (diff)
Merge "ExifInterface: Provide backward compatibility" into nyc-dev
-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.");
}