Changeset 9191 in josm


Ignore:
Timestamp:
2015-12-28T11:47:56+01:00 (8 years ago)
Author:
simon04
Message:

Utils: UTF-8 cannot be unsupported

Removes "may produce NPE" warnings in IDEs.

File:
1 edited

Legend:

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

    r9170 r9191  
    12841284            return URLEncoder.encode(s, enc);
    12851285        } catch (UnsupportedEncodingException e) {
    1286             Main.error(e);
    1287             return null;
     1286            throw new IllegalStateException();
    12881287        }
    12891288    }
     
    13051304            return URLDecoder.decode(s, enc);
    13061305        } catch (UnsupportedEncodingException e) {
    1307             Main.error(e);
    1308             return null;
     1306            throw new IllegalStateException();
    13091307        }
    13101308    }
Note: See TracChangeset for help on using the changeset viewer.