notnull annotations

This commit is contained in:
dfsek
2021-02-21 23:08:51 -07:00
parent 5e940187d9
commit 05cd0b625c
5 changed files with 13 additions and 5 deletions

View File

@@ -1,5 +1,7 @@
package com.dfsek.terra.addons.annotations;
import org.jetbrains.annotations.NotNull;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -14,5 +16,5 @@ public @interface Addon {
/**
* @return The ID of the addon.
*/
String value();
@NotNull String value();
}

View File

@@ -1,5 +1,7 @@
package com.dfsek.terra.addons.annotations;
import org.jetbrains.annotations.NotNull;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -14,5 +16,5 @@ public @interface Author {
/**
* @return Name of the addon author.
*/
String value();
@NotNull String value();
}

View File

@@ -1,5 +1,7 @@
package com.dfsek.terra.addons.annotations;
import org.jetbrains.annotations.NotNull;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -14,5 +16,5 @@ public @interface Depends {
/**
* @return All addons this addon is dependent upon.
*/
String[] value();
@NotNull String[] value();
}

View File

@@ -1,5 +1,7 @@
package com.dfsek.terra.addons.annotations;
import org.jetbrains.annotations.NotNull;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -14,5 +16,5 @@ public @interface Version {
/**
* @return Version of the addon.
*/
String value();
@NotNull String value();
}

View File

@@ -290,7 +290,7 @@ public class TerraBukkitPlugin extends JavaPlugin implements TerraPlugin {
}
}
@Addon("Terra")
@Addon("Terra-Bukkit")
@Version("1.0.0")
@Author("Terra")
private static final class BukkitAddon extends TerraAddon {