#1082: Add "since" to Deprecation annotations

By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
Bukkit/Spigot
2024-11-25 07:52:33 +11:00
parent 98f6ab9a04
commit 0023e5549a
257 changed files with 1523 additions and 1176 deletions

View File

@@ -41,7 +41,7 @@ public class Note {
* @return the not sharped id of this tone.
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public byte getId() {
return getId(false);
}
@@ -55,7 +55,7 @@ public class Note {
* @return the id of this tone.
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public byte getId(boolean sharped) {
byte id = (byte) (sharped && sharpable ? this.id + 1 : this.id);
@@ -80,7 +80,7 @@ public class Note {
* semitone have the id.
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public boolean isSharped(byte id) {
if (id == getId(false)) {
return false;
@@ -99,7 +99,7 @@ public class Note {
* @return the tone to id.
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
@Nullable
public static Tone getById(byte id) {
return BY_DATA.get(id);
@@ -224,7 +224,7 @@ public class Note {
* @return the internal id of this note.
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public byte getId() {
return note;
}