Skip to content

Commit

Permalink
chore: deprecate FaweApi#load for clipboards as it does not allow clo…
Browse files Browse the repository at this point in the history
…sing (#2852)
  • Loading branch information
dordsor21 authored Jul 27, 2024
1 parent 8c3df59 commit dac7cdb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ public static URL upload(final Clipboard clipboard, final ClipboardFormat format
* @param file the file to load
* @return a clipboard containing the schematic
* @see ClipboardFormat
* @deprecated Opens streams that are not then closed. Use {@link ClipboardFormats#findByFile(File)} and its relevant
* methods to allow closing created streams/closing the reader (which will close the stream(s))
*/
@Deprecated(forRemoval = true, since = "TODO")
public static Clipboard load(File file) throws IOException {
return ClipboardFormats.findByFile(file).load(file);
}
Expand Down

0 comments on commit dac7cdb

Please sign in to comment.