#1082: Add "since" to Deprecation annotations
By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user