Changeset 10733 in josm for trunk/test/unit/org


Ignore:
Timestamp:
2016-08-04T23:55:20+02:00 (8 years ago)
Author:
Don-vip
Message:

checkstyle

Location:
trunk/test/unit/org/openstreetmap/josm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/osm/NodeDataTest.java

    r9994 r10733  
    2020        data.setChangesetId(314159);
    2121        final Object readData;
    22         try (final ByteArrayOutputStream bytes = new ByteArrayOutputStream();
    23              final ObjectOutputStream out = new ObjectOutputStream(bytes)) {
     22        try (ByteArrayOutputStream bytes = new ByteArrayOutputStream();
     23             ObjectOutputStream out = new ObjectOutputStream(bytes)) {
    2424            out.writeObject(data);
    25             try (final ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray()))) {
     25            try (ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray()))) {
    2626                readData = in.readObject();
    2727            }
  • trunk/test/unit/org/openstreetmap/josm/data/osm/WayDataTest.java

    r9994 r10733  
    2020        data.setChangesetId(314159);
    2121        final Object readData;
    22         try (final ByteArrayOutputStream bytes = new ByteArrayOutputStream();
    23              final ObjectOutputStream out = new ObjectOutputStream(bytes)) {
     22        try (ByteArrayOutputStream bytes = new ByteArrayOutputStream();
     23             ObjectOutputStream out = new ObjectOutputStream(bytes)) {
    2424            out.writeObject(data);
    25             try (final ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray()))) {
     25            try (ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray()))) {
    2626                readData = in.readObject();
    2727            }
  • trunk/test/unit/org/openstreetmap/josm/io/GpxReaderTest.java

    r9958 r10733  
    3232    public static GpxData parseGpxData(String filename) throws IOException, SAXException {
    3333        final GpxData result;
    34         try (final FileInputStream in = new FileInputStream(new File(filename))) {
    35             final GpxReader reader = new GpxReader(in);
     34        try (FileInputStream in = new FileInputStream(new File(filename))) {
     35            GpxReader reader = new GpxReader(in);
    3636            assertTrue(reader.parse(false));
    3737            result = reader.getGpxData();
Note: See TracChangeset for help on using the changeset viewer.