Ignore:
Timestamp:
2014-05-09T05:32:37+02:00 (11 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/test/unit/org/openstreetmap/josm/tools/BugReportExceptionHandlerTest.java

    r7081 r7082  
    77import java.io.ByteArrayInputStream;
    88import java.io.IOException;
     9import java.nio.charset.StandardCharsets;
    910import java.util.zip.GZIPInputStream;
    1011
     
    4950            StringBuilder sb = new StringBuilder();
    5051            for (int n = is.read(buff); n > 0; n = is.read(buff)) {
    51                 sb.append(new String(buff, 0, n, Utils.UTF_8));
     52                sb.append(new String(buff, 0, n, StandardCharsets.UTF_8));
    5253            }
    5354            assertEquals(report, sb.toString());
Note: See TracChangeset for help on using the changeset viewer.