Ignore:
Timestamp:
2020-06-14T17:17:08+02:00 (4 years ago)
Author:
simon04
Message:

see #19334 - https://errorprone.info/bugpattern/UnnecessaryParentheses

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ExceptionUtil.java

    r16407 r16630  
    649649    public static <T> T getNestedException(Exception e, Class<T> nestedClass) {
    650650        Throwable t = e;
    651         while (t != null && !(nestedClass.isInstance(t))) {
     651        while (t != null && !nestedClass.isInstance(t)) {
    652652            t = t.getCause();
    653653        }
  • trunk/src/org/openstreetmap/josm/tools/TextTagParser.java

    r16472 r16630  
    3838        }
    3939        String text = k.substring(1, k.length()-1);
    40         return (new TextAnalyzer(text)).parseString("\r\t\n");
     40        return new TextAnalyzer(text).parseString("\r\t\n");
    4141    }
    4242
Note: See TracChangeset for help on using the changeset viewer.