Changeset 11930 in josm


Ignore:
Timestamp:
2017-04-16T15:13:44+02:00 (8 months ago)
Author:
Don-vip
Message:

PMD - enable subset of optimizations rules

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/routines/InetAddressValidator.java

    r11893 r11930  
    181181                int octetInt = 0;
    182182                try {
    183                     octetInt = Integer.valueOf(octet, BASE_16).intValue();
     183                    octetInt = Integer.parseInt(octet, BASE_16);
    184184                } catch (NumberFormatException e) {
    185185                    return false;
  • trunk/tools/pmd/josm-ruleset.xml

    r11929 r11930  
    1717  <rule ref="rulesets/java/imports.xml"/>
    1818  <rule ref="rulesets/java/migrating.xml"/>
    19   <rule ref="rulesets/java/naming.xml"/>
     19  <rule ref="rulesets/java/naming.xml"/>-->
    2020  <rule ref="rulesets/java/optimizations.xml">
    2121        <exclude name="LocalVariableCouldBeFinal"/>
    2222        <exclude name="MethodArgumentCouldBeFinal"/>
    23   </rule>-->
     23        <exclude name="AvoidInstantiatingObjectsInLoops"/>
     24        <exclude name="PrematureDeclaration"/>
     25        <exclude name="SimplifyStartsWith"/>
     26        <exclude name="UseStringBufferForStringAppends"/>
     27        <exclude name="UseArrayListInsteadOfVector"/>
     28  </rule>
    2429  <rule ref="rulesets/java/strictexception.xml">
    2530        <exclude name="ExceptionAsFlowControl"/>
Note: See TracChangeset for help on using the changeset viewer.