mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
#958: Further clarify deprecation of TAG_CONTAINER_ARRAY
The commit expands on the deprecation reasoning for PersistentDataType#TAG_CONTAINER_ARRAY to make it more clear for people migrating their data as to why the data type is deprecated. The commit also moves the annotation from obsolete to deprecated. The special handling of this type in the pdc implementation is more annoying than anything else and should not be used down the line, making @Deprecated a more proper annotation for this field.
This commit is contained in:
parent
ae21f4ace7
commit
70be76c7be
1 changed files with 4 additions and 2 deletions
|
@ -87,9 +87,11 @@ public interface PersistentDataType<P, C> {
|
|||
Complex Arrays.
|
||||
*/
|
||||
/**
|
||||
* @deprecated Use {@link #LIST}'s {@link ListPersistentDataTypeProvider#dataContainers()} instead.
|
||||
* @deprecated Use {@link #LIST}'s {@link ListPersistentDataTypeProvider#dataContainers()} instead as
|
||||
* {@link ListPersistentDataType}s offer full support for primitive types, such as the
|
||||
* {@link PersistentDataContainer}.
|
||||
*/
|
||||
@ApiStatus.Obsolete
|
||||
@Deprecated
|
||||
PersistentDataType<PersistentDataContainer[], PersistentDataContainer[]> TAG_CONTAINER_ARRAY = new PrimitivePersistentDataType<>(PersistentDataContainer[].class);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue