mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-09 22:16:08 +00:00
chore: deprecate FaweApi#load for clipboards as it does not allow closing (#2852)
This commit is contained in:
parent
8c3df59413
commit
dac7cdbe4b
@ -116,7 +116,10 @@ public class FaweAPI {
|
||||
* @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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user