mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-17 14:21:08 +00:00
notnull annotations
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
package com.dfsek.terra.addons.annotations;
|
package com.dfsek.terra.addons.annotations;
|
||||||
|
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
||||||
@@ -14,5 +16,5 @@ public @interface Addon {
|
|||||||
/**
|
/**
|
||||||
* @return The ID of the addon.
|
* @return The ID of the addon.
|
||||||
*/
|
*/
|
||||||
String value();
|
@NotNull String value();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
package com.dfsek.terra.addons.annotations;
|
package com.dfsek.terra.addons.annotations;
|
||||||
|
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
||||||
@@ -14,5 +16,5 @@ public @interface Author {
|
|||||||
/**
|
/**
|
||||||
* @return Name of the addon author.
|
* @return Name of the addon author.
|
||||||
*/
|
*/
|
||||||
String value();
|
@NotNull String value();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
package com.dfsek.terra.addons.annotations;
|
package com.dfsek.terra.addons.annotations;
|
||||||
|
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
||||||
@@ -14,5 +16,5 @@ public @interface Depends {
|
|||||||
/**
|
/**
|
||||||
* @return All addons this addon is dependent upon.
|
* @return All addons this addon is dependent upon.
|
||||||
*/
|
*/
|
||||||
String[] value();
|
@NotNull String[] value();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
package com.dfsek.terra.addons.annotations;
|
package com.dfsek.terra.addons.annotations;
|
||||||
|
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
||||||
@@ -14,5 +16,5 @@ public @interface Version {
|
|||||||
/**
|
/**
|
||||||
* @return Version of the addon.
|
* @return Version of the addon.
|
||||||
*/
|
*/
|
||||||
String value();
|
@NotNull String value();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -290,7 +290,7 @@ public class TerraBukkitPlugin extends JavaPlugin implements TerraPlugin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Addon("Terra")
|
@Addon("Terra-Bukkit")
|
||||||
@Version("1.0.0")
|
@Version("1.0.0")
|
||||||
@Author("Terra")
|
@Author("Terra")
|
||||||
private static final class BukkitAddon extends TerraAddon {
|
private static final class BukkitAddon extends TerraAddon {
|
||||||
|
|||||||
Reference in New Issue
Block a user