Ignore:
Timestamp:
2015-05-17T17:21:01+02:00 (5 years ago)
Author:
Don-vip
Message:

fix some Findbugs warnings

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/CachedFile.java

    r8073 r8387  
    468468        checkOfflineAccess(downloadString);
    469469
    470         HttpURLConnection con = null;
    471470        int numRedirects = 0;
    472471        while(true) {
    473             con = Utils.openHttpConnection(downloadUrl);
    474             if (con == null) {
    475                 throw new IOException("Cannot open http connection to "+downloadString);
    476             }
     472            HttpURLConnection con = Utils.openHttpConnection(downloadUrl);
    477473            if (ifModifiedSince != null) {
    478474                con.setIfModifiedSince(ifModifiedSince);
  • trunk/src/org/openstreetmap/josm/io/InvalidXmlCharacterFilter.java

    r7937 r8387  
    6262
    6363    private char filter(char in) {
    64         if (in < 0x20 && in >= 0 && INVALID_CHARS[in]) {
     64        if (in < 0x20 && INVALID_CHARS[in]) {
    6565            if (firstWarning) {
    6666                Main.warn("Invalid xml character encountered: '"+in+"'.");
Note: See TracChangeset for help on using the changeset viewer.