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

Location:
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java

    r10611 r10627  
    261261                return new Color(r, g, b);
    262262            } catch (IllegalArgumentException e) {
     263                Main.trace(e);
    263264                return null;
    264265            }
     
    279280                return new Color(r, g, b, alpha);
    280281            } catch (IllegalArgumentException e) {
     282                Main.trace(e);
    281283                return null;
    282284            }
     
    294296                return Color.getHSBColor(h, s, b);
    295297            } catch (IllegalArgumentException e) {
     298                Main.trace(e);
    296299                return null;
    297300            }
     
    628631                return RotationAngle.parseCardinalRotation(cardinal);
    629632            } catch (IllegalArgumentException ignore) {
     633                Main.trace(ignore);
    630634                return null;
    631635            }
     
    668672                m = SearchCompiler.compile(searchStr);
    669673            } catch (ParseError ex) {
     674                Main.trace(ex);
    670675                return null;
    671676            }
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java

    r10300 r10627  
    331331                    };
    332332                } catch (NoSuchElementException ignore) {
     333                    Main.trace(ignore);
    333334                    containsFinder = new ContainsFinder(e);
    334335                }
     
    468469                    if (!c.applies(env)) return false;
    469470                } catch (PatternSyntaxException e) {
    470                     Main.error("PatternSyntaxException while applying condition" + c +": "+e.getMessage());
     471                    Main.error(e, "PatternSyntaxException while applying condition" + c + ':');
    471472                    return false;
    472473                }
Note: See TracChangeset for help on using the changeset viewer.