@@ -1761,7 +1761,7 @@ public static String readFileToString(final File file, final String encoding) th
17611761 * @return the file contents, never {@code null}
17621762 * @throws IOException in case of an I/O error
17631763 * @since 1.3.1
1764- * @deprecated 2.5 use {@link #readFileToString(File, Charset)} instead
1764+ * @deprecated 2.5 use {@link #readFileToString(File, Charset)} instead (and specify the appropriate encoding)
17651765 */
17661766 @ Deprecated
17671767 public static String readFileToString (final File file ) throws IOException {
@@ -1822,7 +1822,7 @@ public static List<String> readLines(final File file, final String encoding) thr
18221822 * @return the list of Strings representing each line in the file, never {@code null}
18231823 * @throws IOException in case of an I/O error
18241824 * @since 1.3
1825- * @deprecated 2.5 use {@link #readLines(File, Charset)} instead
1825+ * @deprecated 2.5 use {@link #readLines(File, Charset)} instead (and specify the appropriate encoding)
18261826 */
18271827 @ Deprecated
18281828 public static List <String > readLines (final File file ) throws IOException {
@@ -1969,7 +1969,7 @@ public static void writeStringToFile(final File file, final String data, final S
19691969 * @param file the file to write
19701970 * @param data the content to write to the file
19711971 * @throws IOException in case of an I/O error
1972- * @deprecated 2.5 use {@link #writeStringToFile(File, String, Charset)} instead
1972+ * @deprecated 2.5 use {@link #writeStringToFile(File, String, Charset)} instead (and specify the appropriate encoding)
19731973 */
19741974 @ Deprecated
19751975 public static void writeStringToFile (final File file , final String data ) throws IOException {
@@ -1985,7 +1985,7 @@ public static void writeStringToFile(final File file, final String data) throws
19851985 * end of the file rather than overwriting
19861986 * @throws IOException in case of an I/O error
19871987 * @since 2.1
1988- * @deprecated 2.5 use {@link #writeStringToFile(File, String, Charset, boolean)} instead
1988+ * @deprecated 2.5 use {@link #writeStringToFile(File, String, Charset, boolean)} instead (and specify the appropriate encoding)
19891989 */
19901990 @ Deprecated
19911991 public static void writeStringToFile (final File file , final String data , final boolean append ) throws IOException {
@@ -1999,7 +1999,7 @@ public static void writeStringToFile(final File file, final String data, final b
19991999 * @param data the content to write to the file
20002000 * @throws IOException in case of an I/O error
20012001 * @since 2.0
2002- * @deprecated 2.5 use {@link #write(File, CharSequence, Charset)} instead
2002+ * @deprecated 2.5 use {@link #write(File, CharSequence, Charset)} instead (and specify the appropriate encoding)
20032003 */
20042004 @ Deprecated
20052005 public static void write (final File file , final CharSequence data ) throws IOException {
@@ -2015,7 +2015,7 @@ public static void write(final File file, final CharSequence data) throws IOExce
20152015 * end of the file rather than overwriting
20162016 * @throws IOException in case of an I/O error
20172017 * @since 2.1
2018- * @deprecated 2.5 use {@link #write(File, CharSequence, Charset, boolean)} instead
2018+ * @deprecated 2.5 use {@link #write(File, CharSequence, Charset, boolean)} instead (and specify the appropriate encoding)
20192019 */
20202020 @ Deprecated
20212021 public static void write (final File file , final CharSequence data , final boolean append ) throws IOException {
0 commit comments