Ignore:
Timestamp:
2016-07-24T14:48:47+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S1166 - Exception handlers should preserve the original exceptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MapView.java

    r10611 r10627  
    361361        } catch (IllegalArgumentException e) {
    362362            // Ignored in old implementation
    363             if (Main.isDebugEnabled()) {
    364                 Main.debug(e.getMessage());
    365             }
     363            Main.debug(e);
    366364        }
    367365        try {
     
    369367        } catch (IllegalArgumentException e) {
    370368            // Ignored in old implementation
    371             if (Main.isDebugEnabled()) {
    372                 Main.debug(e.getMessage());
    373             }
     369            Main.debug(e);
    374370        }
    375371    }
     
    389385        } catch (IllegalArgumentException e) {
    390386            // Ignored in old implementation
    391             if (Main.isDebugEnabled()) {
    392                 Main.debug(e.getMessage());
    393             }
     387            Main.debug(e);
    394388        }
    395389    }
Note: See TracChangeset for help on using the changeset viewer.