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-io.git
The following commit(s) were added to refs/heads/master by this push: new 0927d2e Add PathUtils.readString(Path, Charset). 0927d2e is described below commit 0927d2ea1970b495747e5afeea5f2939be0b3c7c Author: Gary Gregory <gardgreg...@gmail.com> AuthorDate: Mon Jul 19 10:12:58 2021 -0400 Add PathUtils.readString(Path, Charset). --- src/main/java/org/apache/commons/io/file/PathUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/io/file/PathUtils.java b/src/main/java/org/apache/commons/io/file/PathUtils.java index ca94336..b89e915 100644 --- a/src/main/java/org/apache/commons/io/file/PathUtils.java +++ b/src/main/java/org/apache/commons/io/file/PathUtils.java @@ -885,7 +885,7 @@ public final class PathUtils { * @see Files#readAllBytes(Path) * @since 2.12.0 */ - public static Object readString(final Path path, final Charset charset) throws IOException { + public static String readString(final Path path, final Charset charset) throws IOException { return new String(Files.readAllBytes(path), Charsets.toCharset(charset)); }