Changeset 7082 in josm for trunk/test/functional


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

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

Location:
trunk/test/functional/org/openstreetmap/josm/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/functional/org/openstreetmap/josm/io/MultiFetchServerObjectReaderTest.java

    r7081 r7082  
    1414import java.io.OutputStreamWriter;
    1515import java.io.PrintWriter;
     16import java.nio.charset.StandardCharsets;
    1617import java.text.MessageFormat;
    1718import java.util.ArrayList;
     
    3536import org.openstreetmap.josm.gui.io.UploadStrategySpecification;
    3637import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
    37 import org.openstreetmap.josm.tools.Utils;
    3838
    3939public class MultiFetchServerObjectReaderTest {
     
    167167        try (
    168168            PrintWriter pw = new PrintWriter(
    169                     new OutputStreamWriter(new FileOutputStream(dataSetCacheOutputFile), Utils.UTF_8)
     169                    new OutputStreamWriter(new FileOutputStream(dataSetCacheOutputFile), StandardCharsets.UTF_8)
    170170        )) {
    171171            logger.info(MessageFormat.format("caching test data set in ''{0}'' ...", dataSetCacheOutputFile.toString()));
  • trunk/test/functional/org/openstreetmap/josm/io/OsmServerBackreferenceReaderTest.java

    r7068 r7082  
    1212import java.io.OutputStreamWriter;
    1313import java.io.PrintWriter;
     14import java.nio.charset.StandardCharsets;
    1415import java.text.MessageFormat;
    1516import java.util.ArrayList;
     
    3637import org.openstreetmap.josm.gui.io.UploadStrategySpecification;
    3738import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
    38 import org.openstreetmap.josm.tools.Utils;
    3939
    4040/**
     
    173173        try (
    174174            PrintWriter pw = new PrintWriter(
    175                     new OutputStreamWriter(new FileOutputStream(dataSetCacheOutputFile), Utils.UTF_8)
     175                    new OutputStreamWriter(new FileOutputStream(dataSetCacheOutputFile), StandardCharsets.UTF_8)
    176176        )) {
    177177            logger.info(MessageFormat.format("caching test data set in ''{0}'' ...", dataSetCacheOutputFile.toString()));
Note: See TracChangeset for help on using the changeset viewer.