Ignore:
Timestamp:
2016-03-15T02:16:30+01:00 (4 years ago)
Author:
Don-vip
Message:

sonar - various fixes + javadoc

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

Legend:

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

    r9231 r9997  
    183183            } catch (IndexOutOfBoundsException e) {
    184184                checkForComodification();
    185                 throw new NoSuchElementException(e.getMessage());
     185                throw (NoSuchElementException) new NoSuchElementException(e.getMessage()).initCause(e);
    186186            }
    187187        }
  • trunk/src/org/openstreetmap/josm/tools/OverpassTurboQueryWizard.java

    r9856 r9997  
    7272            return query;
    7373        } catch (NoSuchMethodException e) {
    74             throw new IllegalStateException();
     74            throw new IllegalStateException(e);
    7575        } catch (ScriptException e) {
    7676            throw new RuntimeException("Failed to execute OverpassTurboQueryWizard", e);
    7777        }
    7878    }
    79 
    8079}
  • trunk/src/org/openstreetmap/josm/tools/date/DateUtils.java

    r9823 r9997  
    137137            return XML_DATE.newXMLGregorianCalendar(str).toGregorianCalendar().getTimeInMillis();
    138138        } catch (Exception ex) {
    139             throw new UncheckedParseException("The date string (" + str + ") could not be parsed.");
     139            throw new UncheckedParseException("The date string (" + str + ") could not be parsed.", ex);
    140140        }
    141141    }
Note: See TracChangeset for help on using the changeset viewer.