Ignore:
Timestamp:
2013-12-28T00:30:15+01:00 (10 years ago)
Author:
simon04
Message:

Refactoring: introduce Utils.UTF_8 charset to avoid handling of UnsupportedEncodingException

According to the Javadoc of Charset, every implementation of the Java
platform is required to support UTF-8.

File:
1 edited

Legend:

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

    r6380 r6552  
    2222import org.openstreetmap.josm.io.auth.CredentialsManager;
    2323import org.openstreetmap.josm.tools.Base64;
     24import org.openstreetmap.josm.tools.Utils;
    2425
    2526/**
     
    7374     */
    7475    protected void addBasicAuthorizationHeader(HttpURLConnection con) throws OsmTransferException {
    75         CharsetEncoder encoder = Charset.forName("UTF-8").newEncoder();
     76        CharsetEncoder encoder = Utils.UTF_8.newEncoder();
    7677        CredentialsAgentResponse response;
    7778        String token;
Note: See TracChangeset for help on using the changeset viewer.