You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/04/28 12:59:29 UTC

[commons-collections] branch master updated: Fix Checkstyle violations.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git


The following commit(s) were added to refs/heads/master by this push:
     new f9f99cc  Fix Checkstyle violations.
f9f99cc is described below

commit f9f99ccfd684d1fd79747586e4c7b77606963774
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Apr 28 08:59:24 2020 -0400

    Fix Checkstyle violations.
---
 .../commons/collections4/properties/EmptyPropertiesTest.java   | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/test/java/org/apache/commons/collections4/properties/EmptyPropertiesTest.java b/src/test/java/org/apache/commons/collections4/properties/EmptyPropertiesTest.java
index bb9c4c4..ff690c7 100644
--- a/src/test/java/org/apache/commons/collections4/properties/EmptyPropertiesTest.java
+++ b/src/test/java/org/apache/commons/collections4/properties/EmptyPropertiesTest.java
@@ -250,18 +250,18 @@ public class EmptyPropertiesTest {
     public void testSave() throws IOException {
         final String comments = "Hello world!";
         // actual
-        try (final ByteArrayOutputStream actual = new ByteArrayOutputStream()) {
-            try (final PrintStream out = new PrintStream(actual)) {
+        try (ByteArrayOutputStream actual = new ByteArrayOutputStream()) {
+            try (PrintStream out = new PrintStream(actual)) {
                 PropertiesFactory.EMPTY_PROPERTIES.save(out, comments);
             }
             // expected
-            try (final ByteArrayOutputStream expected = new ByteArrayOutputStream()) {
-                try (final PrintStream out = new PrintStream(expected)) {
+            try (ByteArrayOutputStream expected = new ByteArrayOutputStream()) {
+                try (PrintStream out = new PrintStream(expected)) {
                     PropertiesFactory.INSTANCE.createProperties().save(out, comments);
                 }
                 Assert.assertArrayEquals(expected.toByteArray(), actual.toByteArray());
                 expected.reset();
-                try (final PrintStream out = new PrintStream(expected)) {
+                try (PrintStream out = new PrintStream(expected)) {
                     new Properties().save(out, comments);
                 }
                 Assert.assertArrayEquals(expected.toByteArray(), actual.toByteArray());