OSDN Git Service

use multi-catch.
authorOlyutorskii <olyutorskii@users.osdn.me>
Wed, 12 Jun 2019 07:05:37 +0000 (16:05 +0900)
committerOlyutorskii <olyutorskii@users.osdn.me>
Wed, 12 Jun 2019 07:05:37 +0000 (16:05 +0900)
src/main/java/jp/sfjp/mikutoga/typical/TypicalBone.java
src/main/java/jp/sfjp/mikutoga/typical/TypicalMorph.java

index 371d7ea..c463fc1 100644 (file)
@@ -52,11 +52,7 @@ public final class TypicalBone extends I18nAlias {
         Element top;
         try{
             top = I18nAlias.loadXml(is);
-        }catch(ParserConfigurationException e){
-            throw new ExceptionInInitializerError(e);
-        }catch(SAXException e){
-            throw new ExceptionInInitializerError(e);
-        }catch(IOException e){
+        }catch(ParserConfigurationException | SAXException | IOException e){
             throw new ExceptionInInitializerError(e);
         }
 
index ccf6eb0..d67de8e 100644 (file)
@@ -58,11 +58,7 @@ public final class TypicalMorph extends I18nAlias {
         Element top;
         try{
             top = I18nAlias.loadXml(is);
-        }catch(ParserConfigurationException e){
-            throw new ExceptionInInitializerError(e);
-        }catch(SAXException e){
-            throw new ExceptionInInitializerError(e);
-        }catch(IOException e){
+        }catch(ParserConfigurationException | SAXException | IOException e){
             throw new ExceptionInInitializerError(e);
         }