Closed vargusz closed 6 months ago
Fix string format specifier in error message for FileUtils.checkFileSize()
FileUtils.checkFileSize()
The %l conversion specifier is not applicable for Java integral values, it will throw IllegalFormatException, so %d should be used instead. See https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Formatter.html#syntax
%l
IllegalFormatException
%d
Thanks for the fix, very much appreciated!
Fix string format specifier in error message for
FileUtils.checkFileSize()
The
%l
conversion specifier is not applicable for Java integral values, it will throwIllegalFormatException
, so%d
should be used instead. See https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Formatter.html#syntax