summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 59d48c1)
raw | patch | inline | side by side (parent: 59d48c1)
author | fred-boy <fredboy@protonmail.com> | |
Mon, 23 Dec 2019 11:30:44 +0000 (18:30 +0700) | ||
committer | fred-boy <fredboy@protonmail.com> | |
Mon, 23 Dec 2019 11:30:44 +0000 (18:30 +0700) |
diff --git a/core/src/ru/deadsoftware/cavedroid/game/mobs/package-info.java b/core/src/ru/deadsoftware/cavedroid/game/mobs/package-info.java
index ed9b92df2f2ead19a0806a3efca9316924ae3348..e76bf1b139ca6bab2e50dfef2777cf66c8ea0434 100644 (file)
-@ParametersAreNonnullByDefault
+@NonnullByDefault
package ru.deadsoftware.cavedroid.game.mobs;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import ru.deadsoftware.cavedroid.misc.annotations.NonnullByDefault;
\ No newline at end of file
diff --git a/core/src/ru/deadsoftware/cavedroid/game/objects/package-info.java b/core/src/ru/deadsoftware/cavedroid/game/objects/package-info.java
index a12210bf814c09f04d1afe7cfdc6c95705084a53..c5856a04618263435763714f06fe3fd928098496 100644 (file)
-@ParametersAreNonnullByDefault
+@NonnullByDefault
package ru.deadsoftware.cavedroid.game.objects;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import ru.deadsoftware.cavedroid.misc.annotations.NonnullByDefault;
\ No newline at end of file
diff --git a/core/src/ru/deadsoftware/cavedroid/game/package-info.java b/core/src/ru/deadsoftware/cavedroid/game/package-info.java
index d73a0b6564e89b535c1188f2cc8f5e39b01fa8b2..629074660f1ab9bae9fcfb18746c7de6df4a34a5 100644 (file)
-@ParametersAreNonnullByDefault
+@NonnullByDefault
package ru.deadsoftware.cavedroid.game;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import ru.deadsoftware.cavedroid.misc.annotations.NonnullByDefault;
\ No newline at end of file
diff --git a/core/src/ru/deadsoftware/cavedroid/menu/objects/package-info.java b/core/src/ru/deadsoftware/cavedroid/menu/objects/package-info.java
index f5112789d9213113ed2cf6bc2d452abd4db3039e..b13218725f1d014ecb910fadbc2ef4f6a28c8653 100644 (file)
-@ParametersAreNonnullByDefault
+@NonnullByDefault
package ru.deadsoftware.cavedroid.menu.objects;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import ru.deadsoftware.cavedroid.misc.annotations.NonnullByDefault;
\ No newline at end of file
diff --git a/core/src/ru/deadsoftware/cavedroid/menu/package-info.java b/core/src/ru/deadsoftware/cavedroid/menu/package-info.java
index 92cd1473dc9a6ee381932c833b68ca6e3dfd01d5..304c21132937727e9133a1c6ac2b75ee61bee785 100644 (file)
-@ParametersAreNonnullByDefault
+@NonnullByDefault
package ru.deadsoftware.cavedroid.menu;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import ru.deadsoftware.cavedroid.misc.annotations.NonnullByDefault;
\ No newline at end of file
diff --git a/core/src/ru/deadsoftware/cavedroid/menu/submenus/package-info.java b/core/src/ru/deadsoftware/cavedroid/menu/submenus/package-info.java
index 6a5aa76c170d996fc1a1debbda2beb2b9ceb43d9..6c284933a76e24711524b7fc29c7882cc75e5e4d 100644 (file)
-@ParametersAreNonnullByDefault
+@NonnullByDefault
package ru.deadsoftware.cavedroid.menu.submenus;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import ru.deadsoftware.cavedroid.misc.annotations.NonnullByDefault;
\ No newline at end of file
diff --git a/core/src/ru/deadsoftware/cavedroid/misc/annotations/NonnullByDefault.java b/core/src/ru/deadsoftware/cavedroid/misc/annotations/NonnullByDefault.java
--- /dev/null
@@ -0,0 +1,14 @@
+package ru.deadsoftware.cavedroid.misc.annotations;
+
+import javax.annotation.Nonnull;
+import javax.annotation.meta.TypeQualifierDefault;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+
+import static java.lang.annotation.ElementType.*;
+
+@Nonnull
+@TypeQualifierDefault({METHOD, FIELD, PARAMETER})
+@Retention(RetentionPolicy.RUNTIME)
+public @interface NonnullByDefault {
+}
diff --git a/core/src/ru/deadsoftware/cavedroid/misc/package-info.java b/core/src/ru/deadsoftware/cavedroid/misc/package-info.java
index f2c79130e52e0c53ca232a6e9a894e2a206301fc..acdf3e14c7b65665bbe425c44a42802cce463cec 100644 (file)
-@ParametersAreNonnullByDefault
+@NonnullByDefault
package ru.deadsoftware.cavedroid.misc;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import ru.deadsoftware.cavedroid.misc.annotations.NonnullByDefault;
\ No newline at end of file
diff --git a/core/src/ru/deadsoftware/cavedroid/misc/states/package-info.java b/core/src/ru/deadsoftware/cavedroid/misc/states/package-info.java
index bc647bf535f785071da355e08eb5d08b9995c73c..23fc406c8ae541bf38506a193a50af7f785ce90b 100644 (file)
-@ParametersAreNonnullByDefault
+@NonnullByDefault
package ru.deadsoftware.cavedroid.misc.states;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import ru.deadsoftware.cavedroid.misc.annotations.NonnullByDefault;
\ No newline at end of file
diff --git a/core/src/ru/deadsoftware/cavedroid/package-info.java b/core/src/ru/deadsoftware/cavedroid/package-info.java
index 9bfa3e82b8ec21ce7f7016374882fa1a138d5215..a566cb5caaac39c929a1821e7a7cbbeabce44ea5 100644 (file)
-@ParametersAreNonnullByDefault
+@NonnullByDefault
package ru.deadsoftware.cavedroid;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import ru.deadsoftware.cavedroid.misc.annotations.NonnullByDefault;
\ No newline at end of file