OSDN Git Service

modify pmd rules.
authorOlyutorskii <olyutorskii@users.osdn.me>
Thu, 4 Jul 2019 07:18:15 +0000 (16:18 +0900)
committerOlyutorskii <olyutorskii@users.osdn.me>
Thu, 4 Jul 2019 07:18:15 +0000 (16:18 +0900)
config/pmd/pmdrules.xml
src/main/java/jp/sfjp/mikutoga/vmd2xml/Vmd2Xml.java

index db56675..7b3f79b 100644 (file)
             <property name="checkSingleIfStmt" value="false"/>
         </properties>
     </rule>
+    <rule ref="category/java/codestyle.xml/LongVariable" >
+        <properties>
+            <property name="minimum" value="25"/>
+        </properties>
+    </rule>
 
     <rule ref="category/java/design.xml" >
         <exclude name="LawOfDemeter" />
index 29bdcf7..27e4025 100644 (file)
@@ -372,9 +372,7 @@ public final class Vmd2Xml {
             internalError(e);
         }catch(MmdFormatException e){
             vmdError(e);
-        }catch(TogaXmlException e){
-            xmlError(e);
-        }catch(SAXException e){
+        }catch(TogaXmlException | SAXException e){
             xmlError(e);
         }
 
@@ -389,7 +387,7 @@ public final class Vmd2Xml {
      * @param args コマンドライン文字列群
      * @return オプション情報
      */
-    private static OptInfo parseOption(String[] args){
+    private static OptInfo parseOption(String... args){
         OptInfo optInfo;
 
         try{