Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,11 @@ public void writeTo(Path path) throws IOException
}
}

/**
* This method was initially introduced to implement the corresponding method from servlet spec,
* however {@link #close()} should be used instead because it properly releases all associated resources.
*/
@Deprecated(forRemoval = true, since = "12.1.13")
public void delete() throws IOException
{
Path path = getPath();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public void write(String fileName) throws IOException
@Override
public void delete() throws IOException
{
_part.delete();
_part.close();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public void write(String fileName) throws IOException
@Override
public void delete() throws IOException
{
_part.delete();
_part.close();
}

@Override
Expand Down