Changeset 19631 in josm


Ignore:
Timestamp:
2026-10-01T18:45:01+02:00 (less than one hour ago)
Author:
gaben
Message:

see #24635 - re-enable SimplifiedTernary rule and fix the warning

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/gpx/GpxExtension.java

    r19295 r19631  
    190190    public void hide() {
    191191        visible = false;
    192         if (parent != null && parent instanceof GpxExtension) {
     192        if (parent instanceof GpxExtension) {
    193193            GpxExtension gpx = (GpxExtension) parent;
    194194            if (Utils.isStripEmpty(gpx.getValue())
    … …  
    206206    public void show() {
    207207        visible = true;
    208         if (parent != null && parent instanceof GpxExtension) {
     208        if (parent instanceof GpxExtension) {
    209209            ((GpxExtension) parent).show();
    210210        }
  • trunk/tools/pmd/josm-ruleset.xml

    r19628 r19631  
    123123    <exclude name="NPathComplexity"/>
    124124    <exclude name="SignatureDeclareThrowsException"/>
    125     <exclude name="SimplifiedTernary"/>
    126125    <exclude name="SimplifyBooleanReturns" reason="Increased sensitivity in 7.x; should be fixed in our source code." />
    127126    <exclude name="SingularField"/>
Note: See TracChangeset for help on using the changeset viewer.