[libbluray-devel] Use correct exception type
hpi1
git at videolan.org
Mon Jun 26 15:23:17 CEST 2017
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Jun 16 00:01:14 2017 +0300| [113afcfebe8eaafde681a8f1d96c65d2c9228caf] | committer: hpi1
Use correct exception type
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=113afcfebe8eaafde681a8f1d96c65d2c9228caf
---
src/libbluray/bdj/java/org/videolan/BUMFParser.java | 3 ++-
src/libbluray/bdj/java/org/videolan/FontIndex.java | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/libbluray/bdj/java/org/videolan/BUMFParser.java b/src/libbluray/bdj/java/org/videolan/BUMFParser.java
index e612e65d..76ff073d 100644
--- a/src/libbluray/bdj/java/org/videolan/BUMFParser.java
+++ b/src/libbluray/bdj/java/org/videolan/BUMFParser.java
@@ -20,6 +20,7 @@
package org.videolan;
import java.io.FileInputStream;
+import java.io.IOException;
import java.util.LinkedList;
import javax.xml.parsers.SAXParser;
@@ -60,7 +61,7 @@ public class BUMFParser extends DefaultHandler {
if (stream != null) {
try {
stream.close();
- } catch (Exception e) {
+ } catch (IOException ioe) {
}
}
}
diff --git a/src/libbluray/bdj/java/org/videolan/FontIndex.java b/src/libbluray/bdj/java/org/videolan/FontIndex.java
index 24d406a1..6cf61301 100644
--- a/src/libbluray/bdj/java/org/videolan/FontIndex.java
+++ b/src/libbluray/bdj/java/org/videolan/FontIndex.java
@@ -54,7 +54,7 @@ public class FontIndex extends DefaultHandler implements EntityResolver {
if (stream != null) {
try {
stream.close();
- } catch (Exception e) {
+ } catch (IOException ioe) {
}
}
}
More information about the libbluray-devel
mailing list