Skip to content

Commit

Permalink
fix javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanCheshire committed Jul 3, 2024
1 parent 9f9e9b7 commit d37f962
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,8 @@ public boolean saveTo(String path) {
* @return whether the file was saved
* @throws NullPointerException if the provided file is null
* @throws IllegalArgumentException if the provided file does not exist or is a directory
* @throws CyderImageException if the parent directory of the provided file
* does not exist and fails to be created
*/
@CanIgnoreReturnValue
public boolean saveTo(File file) {
Expand All @@ -815,8 +817,8 @@ public boolean saveTo(File file) {
try {
File parentDir = file.getParentFile();
if (parentDir != null && !parentDir.exists()) {
//noinspection ResultOfMethodCallIgnored
parentDir.mkdirs();
if (!parentDir.mkdirs())
throw new CyderImageException("Failed to create parent directory: " + parentDir);
}

String extension = FileUtil.getExtensionWithoutPeriod(file);
Expand Down

0 comments on commit d37f962

Please sign in to comment.