Removed deprecated methods in AddonDescription and FlagListener

This commit is contained in:
Florian CUNY 2019-02-02 10:51:59 +01:00
parent f2078aae3f
commit 57d70c3d24
2 changed files with 1 additions and 34 deletions

View File

@ -24,7 +24,7 @@ public final class AddonDescription {
*/
private final boolean metrics;
private AddonDescription(Builder builder) {
private AddonDescription(@NonNull Builder builder) {
this.main = builder.main;
this.name = builder.name;
this.version = builder.version;
@ -94,17 +94,6 @@ public final class AddonDescription {
private @NonNull List<String> dependencies = new ArrayList<>();
private @NonNull List<String> softDependencies = new ArrayList<>();
private boolean metrics = false;
/**
* @deprecated As of 1.1, use {@link Builder#Builder(String, String, String)} instead.
*/
@Deprecated
public Builder(@NonNull String main, @NonNull String name) {
this.main = main;
this.name = name;
this.version = "";
}
/**
* @since 1.1
*/
@ -114,16 +103,6 @@ public final class AddonDescription {
this.version = version;
}
/**
* @deprecated As of 1.1, for removal.
*/
@Deprecated
@NonNull
public Builder version(@NonNull String version) {
this.version = version;
return this;
}
@NonNull
public Builder description(@NonNull String description) {
this.description = description;

View File

@ -235,18 +235,6 @@ public abstract class FlagListener implements Listener {
}
/**
* Get the flag for this ID
* @param id - the flag ID
* @return Flag denoted by the id
* @deprecated As of 1.1, replaced with {@link #getFlag(String)}.
*/
@Deprecated
@Nullable
protected Flag id(@NonNull String id) {
return getFlag(id).orElse(null);
}
/**
* Get the flag for this ID
* @param id the flag ID