From 69c25ee412559215d2fb3deb1ab3905ce9c02388 Mon Sep 17 00:00:00 2001 From: theonefx Date: Tue, 19 Jan 2021 10:29:05 +0800 Subject: [PATCH] remove all apache.commons --- .../src/main/java/com/alibaba/cloud/commons/FileUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-cloud-alibaba-starters/spring-cloud-alibaba-commons/src/main/java/com/alibaba/cloud/commons/FileUtils.java b/spring-cloud-alibaba-starters/spring-cloud-alibaba-commons/src/main/java/com/alibaba/cloud/commons/FileUtils.java index 95a4228a..009f057b 100644 --- a/spring-cloud-alibaba-starters/spring-cloud-alibaba-commons/src/main/java/com/alibaba/cloud/commons/FileUtils.java +++ b/spring-cloud-alibaba-starters/spring-cloud-alibaba-commons/src/main/java/com/alibaba/cloud/commons/FileUtils.java @@ -22,13 +22,13 @@ import java.nio.charset.Charset; /** * FileUtils. copy from apache commons.io. + * * @author theonefx */ -public class FileUtils { +public final class FileUtils { /** * Reads the contents of a file into a String. The file is always closed. - * * @param file the file to read, must not be {@code null} * @param encoding the encoding to use, {@code null} means platform default * @return the file contents, never {@code null} @@ -46,7 +46,6 @@ public class FileUtils { /** * Reads the contents of a file into a String using the default encoding for the VM. * The file is always closed. - * * @param file the file to read, must not be {@code null} * @return the file contents, never {@code null} * @throws IOException in case of an I/O error @@ -58,4 +57,5 @@ public class FileUtils { public static String readFileToString(final File file) throws IOException { return readFileToString(file, Charset.defaultCharset()); } + }