Index: trunk/test/unit/org/openstreetmap/josm/data/protobuf/ProtobufPackedTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/data/protobuf/ProtobufPackedTest.java	(revision 18800)
+++ trunk/test/unit/org/openstreetmap/josm/data/protobuf/ProtobufPackedTest.java	(revision 18801)
@@ -3,6 +3,4 @@
 
 import static org.junit.jupiter.api.Assertions.assertArrayEquals;
-
-import java.io.ByteArrayOutputStream;
 
 import org.junit.jupiter.api.Test;
@@ -14,5 +12,5 @@
     @Test
     void testSingleByteNumbers() {
-        long[] numbers = new ProtobufPacked(new ByteArrayOutputStream(), ProtobufTest.toByteArray(new int[]{0, 0, 1, 1, 2, 2, 3, 3, 4, 4}))
+        long[] numbers = new ProtobufPacked(ProtobufTest.toByteArray(new int[]{0, 0, 1, 1, 2, 2, 3, 3, 4, 4}))
                 .getArray();
         assertArrayEquals(new long[] {0, 0, 1, 1, 2, 2, 3, 3, 4, 4}, numbers);
@@ -22,5 +20,5 @@
     void testMultipleByteNumbers() {
         byte[] bytes = ProtobufTest.toByteArray(new int[] {-128, 64, -18, 49, -70, 3});
-        long[] numbers = new ProtobufPacked(new ByteArrayOutputStream(), bytes).getArray();
+        long[] numbers = new ProtobufPacked(bytes).getArray();
         assertArrayEquals(new long[] {8192, 6382, 442}, numbers);
     }
Index: trunk/test/unit/org/openstreetmap/josm/data/validation/tests/DirectionNodesTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/data/validation/tests/DirectionNodesTest.java	(revision 18800)
+++ trunk/test/unit/org/openstreetmap/josm/data/validation/tests/DirectionNodesTest.java	(revision 18801)
@@ -10,8 +10,7 @@
 
 /**
- * JUnit Test of Multipolygon validation test.
+ * JUnit Test of {@link DirectionNodes} validation test.
  */
 class DirectionNodesTest {
-
 
     /**
@@ -27,5 +26,5 @@
      */
     @Test
-    void testDirectionsNodesTestFile() throws Exception {
+    void testDirectionNodesTestFile() throws Exception {
         final DirectionNodes test = new DirectionNodes();
         ValidatorTestUtils.testSampleFile("nodist/data/direction-nodes.osm", DataSet::getNodes, null, test);
Index: trunk/test/unit/org/openstreetmap/josm/data/validation/tests/SelfIntersectingWayTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/data/validation/tests/SelfIntersectingWayTest.java	(revision 18800)
+++ trunk/test/unit/org/openstreetmap/josm/data/validation/tests/SelfIntersectingWayTest.java	(revision 18801)
@@ -23,5 +23,5 @@
 
 /**
- * JUnit Test of Multipolygon validation test.
+ * JUnit Test of {@link SelfIntersectingWay} validation test.
  */
 class SelfIntersectingWayTest {
Index: trunk/test/unit/org/openstreetmap/josm/io/GpxReaderTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/io/GpxReaderTest.java	(revision 18800)
+++ trunk/test/unit/org/openstreetmap/josm/io/GpxReaderTest.java	(revision 18801)
@@ -7,5 +7,4 @@
 
 import java.io.ByteArrayInputStream;
-import java.io.File;
 import java.io.FileInputStream;
 import java.io.IOException;
@@ -39,5 +38,5 @@
     public static GpxData parseGpxData(String filename) throws IOException, SAXException {
         final GpxData result;
-        try (FileInputStream in = new FileInputStream(new File(filename))) {
+        try (FileInputStream in = new FileInputStream(filename)) {
             GpxReader reader = new GpxReader(in);
             assertTrue(reader.parse(false));
Index: trunk/test/unit/org/openstreetmap/josm/testutils/mockers/EDTAssertionMocker.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/testutils/mockers/EDTAssertionMocker.java	(revision 18800)
+++ trunk/test/unit/org/openstreetmap/josm/testutils/mockers/EDTAssertionMocker.java	(revision 18801)
@@ -17,5 +17,5 @@
         final Throwable cause = t.getCause();
         if (cause instanceof AssertionError) {
-            throw (AssertionError) cause;
+            throw cause;
         }
 
