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 0913090f2 Use a constant instead of a magic string 0913090f2 is described below commit 0913090f2d7f2e8b3869e1646d5779b6c58b0fa7 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Dec 10 10:54:03 2023 -0500 Use a constant instead of a magic string --- .../apache/commons/collections4/properties/EmptyPropertiesTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 0bac00821..d5c509a87 100644 --- a/src/test/java/org/apache/commons/collections4/properties/EmptyPropertiesTest.java +++ b/src/test/java/org/apache/commons/collections4/properties/EmptyPropertiesTest.java @@ -289,8 +289,8 @@ public class EmptyPropertiesTest { PropertiesFactory.INSTANCE.createProperties().store(expected, comments); // Properties.store stores the specified comment appended with current time stamp in the next line - final String expectedComment = getFirstLine(expected.toString("UTF-8")); - final String actualComment = getFirstLine(actual.toString("UTF-8")); + final String expectedComment = getFirstLine(expected.toString(StandardCharsets.UTF_8.name())); + final String actualComment = getFirstLine(actual.toString(StandardCharsets.UTF_8.name())); assertEquals(expectedComment, actualComment, () -> String.format("Expected String '%s' with length '%s'", expectedComment, expectedComment.length())); expected.reset();