Ignore:
Timestamp:
2014-05-09T05:32:37+02:00 (6 years ago)
Author:
Don-vip
Message:

see #8465 - replace Utils.UTF_8 by StandardCharsets.UTF_8, new in Java 7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/OpenFileAction.java

    r7037 r7082  
    1313import java.io.IOException;
    1414import java.io.InputStreamReader;
     15import java.nio.charset.StandardCharsets;
    1516import java.util.ArrayList;
    1617import java.util.Arrays;
     
    3940import org.openstreetmap.josm.tools.MultiMap;
    4041import org.openstreetmap.josm.tools.Shortcut;
    41 import org.openstreetmap.josm.tools.Utils;
    4242import org.xml.sax.SAXException;
    4343
     
    292292
    293293                for (File urlFile: urlFiles) {
    294                     try (BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(urlFile), Utils.UTF_8))) {
     294                    try (BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(urlFile), StandardCharsets.UTF_8))) {
    295295                        String line;
    296296                        while ((line = reader.readLine()) != null) {
Note: See TracChangeset for help on using the changeset viewer.