3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-17 00:20:09 +01:00

chore: deprecate FaweApi#load for clipboards as it does not allow closing (#2852)

Dieser Commit ist enthalten in:
Jordan 2024-07-27 10:34:10 +02:00 committet von GitHub
Ursprung 8c3df59413
Commit dac7cdbe4b
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: B5690EEEBB952194

Datei anzeigen

@ -116,7 +116,10 @@ public class FaweAPI {
* @param file the file to load * @param file the file to load
* @return a clipboard containing the schematic * @return a clipboard containing the schematic
* @see ClipboardFormat * @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 { public static Clipboard load(File file) throws IOException {
return ClipboardFormats.findByFile(file).load(file); return ClipboardFormats.findByFile(file).load(file);
} }