OSDN Git Service

use multi-catch
[jindolf/Jindolf.git] / src / main / java / jp / sfjp / jindolf / data / LandsModel.java
index 9a3805d..7804e03 100644 (file)
@@ -99,16 +99,11 @@ public class LandsModel implements TreeModel{ // ComboBoxModelも付けるか?
         try{
             DocumentBuilder builder = XmlUtils.createDocumentBuilder();
             landDefList = LandDef.buildLandDefList(builder);
-        }catch(IOException e){
-            LOGGER.log(Level.SEVERE, "failed to load land list", e);
-            return;
-        }catch(SAXException e){
-            LOGGER.log(Level.SEVERE, "failed to load land list", e);
-            return;
-        }catch(URISyntaxException e){
-            LOGGER.log(Level.SEVERE, "failed to load land list", e);
-            return;
-        }catch(ParserConfigurationException e){
+        }catch(   IOException
+                | SAXException
+                | URISyntaxException
+                | ParserConfigurationException
+                e){
             LOGGER.log(Level.SEVERE, "failed to load land list", e);
             return;
         }