@@ -29,7 +29,7 @@ public final class Files {
2929 * Note: Exception is logged not thrown.
3030 *
3131 * @param file - file to create
32- * @param <T>
32+ * @param <T> the type of class that extends {@link File}
3333 * @return <code>true</code> if the named file does not exist and was
3434 * successfully created; <code>false</code> if the named file
3535 * already exists
@@ -54,7 +54,7 @@ public static <T extends File> boolean createNewFile(T file) {
5454 * Note: Exception is logged not thrown.
5555 *
5656 * @param file - file to delete and create
57- * @param <T>
57+ * @param <T> the type of class that extends {@link File}
5858 * @return <code>true</code> if the named file deleted and was
5959 * successfully created; <code>false</code> if the named file
6060 * already exists
@@ -75,7 +75,7 @@ public static <T extends File> boolean deleteAndCreateNewFile(T file) {
7575 *
7676 * @param file file to write
7777 * @param data data to write to file
78- * @param <T>
78+ * @param <T> the type of class that extends {@link File}
7979 */
8080 public static <T extends File > void writeToFile (T file , String data ) {
8181 Assert .nonNull (file , NullPointerException ::new );
@@ -100,7 +100,7 @@ public static <T extends File> void writeToFile(T file, String data) {
100100 * @param data data to append to file
101101 * @param appendNewLine <code>true</code> to append new line at the end of data
102102 * otherwise <code>false</code>.
103- * @param <T>
103+ * @param <T> the type of class that extends {@link File}
104104 */
105105 public static <T extends File > void appendToFile (T file , String data , boolean appendNewLine ) {
106106 Assert .nonNull (file , NullPointerException ::new );
@@ -122,7 +122,7 @@ public static <T extends File> void appendToFile(T file, String data, boolean ap
122122 * Note: Exception is logged not thrown.
123123 *
124124 * @param file file to read
125- * @param <T>
125+ * @param <T> the type of class that extends {@link File}
126126 * @return String data of file if exists otherwise <code>null</code>
127127 */
128128 public static <T extends File > String readFromFile (T file ) {
@@ -141,7 +141,7 @@ public static <T extends File> String readFromFile(T file) {
141141 * Path of file provided
142142 *
143143 * @param file file to get {@link Path}.
144- * @param <T>
144+ * @param <T> the type of class that extends {@link File}
145145 * @return {@link Path} of file
146146 */
147147 private static <T extends File > Path getPath (T file ) {
0 commit comments