Added since and forRemoval to Deprecated annotations.

This commit is contained in:
tastybento 2023-02-05 15:55:51 -08:00
parent 46d20f34ff
commit f00320095d
5 changed files with 7 additions and 9 deletions

View File

@ -37,7 +37,7 @@ public interface WorldSettings extends ConfigObject {
* @see WorldSettings#getDefaultIslandFlagNames()
* @since 1.21.0
*/
@Deprecated
@Deprecated(since="1.21.0", forRemoval=true)
Map<Flag, Integer> getDefaultIslandFlags();
/**
@ -62,7 +62,7 @@ public interface WorldSettings extends ConfigObject {
* @see WorldSettings#getDefaultIslandSettingNames()
* @since 1.21.0
*/
@Deprecated
@Deprecated(since="1.21.0", forRemoval=true)
Map<Flag, Integer> getDefaultIslandSettings();
/**

View File

@ -99,13 +99,11 @@ public class Database<T> {
}
/**
* Save object. Saving may be done async or sync, depending on the underlying database.
* Save object. Saving is done async. Same as {@link #saveObjectAsync(Object)}, which is recommended.
* @param instance to save
* @return true - always.
* @deprecated Use {@link #saveObjectAsync(Object)}.
* @since 1.13.0
*/
@Deprecated
public boolean saveObject(T instance) {
saveObjectAsync(instance).thenAccept(r -> {
if (Boolean.FALSE.equals(r)) logger.severe(() -> "Could not save object to database!");

View File

@ -20,7 +20,7 @@ import world.bentobox.bentobox.database.objects.Island;
* @deprecated replaced not used in new listeners.
* @since 1.12.1
*/
@Deprecated
@Deprecated(since="1.21.0", forRemoval=true)
public class PlayerEntityPortalEvent {
private final EntityPortalEvent epe;

View File

@ -45,7 +45,7 @@ import world.bentobox.bentobox.util.teleport.SafeSpotTeleport;
* @see world.bentobox.bentobox.listeners.teleports.EntityTeleportListener
* @since 1.12.1
*/
@Deprecated
@Deprecated(since="1.21.0", forRemoval=true)
public class PortalTeleportationListener implements Listener {
private final BentoBox plugin;

View File

@ -393,13 +393,13 @@ public final class Flags {
* @deprecated see {@link #ANIMAL_NATURAL_SPAWN} and {@link #ANIMAL_SPAWNERS_SPAWN}.
* @since 1.14.0
*/
@Deprecated
@Deprecated(since="1.14.0", forRemoval=true)
public static final Flag ANIMAL_SPAWN = new Flag.Builder("ANIMAL_SPAWN", Material.APPLE).defaultSetting(true).type(Type.SETTING).build();
/**
* @deprecated see {@link #MONSTER_NATURAL_SPAWN} and {@link #MONSTER_SPAWNERS_SPAWN}.
* @since 1.14.0
*/
@Deprecated
@Deprecated(since="1.14.0", forRemoval=true)
public static final Flag MONSTER_SPAWN = new Flag.Builder("MONSTER_SPAWN", Material.SPAWNER).defaultSetting(true).type(Type.SETTING).build();
/**