From 90cd4ab2d7c55e2a8acc9e0fd3d8bad5f9d24efa Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 17 May 2019 16:54:04 +0200 Subject: [PATCH] =?utf8?q?=F0=9F=9A=9A=20Rename=20file=20containing=20anno?= =?utf8?q?tations?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../kotlin/net/pterodactylus/sone/web/page/Annotations.kt | 11 +++++++++++ src/main/kotlin/net/pterodactylus/sone/web/page/MenuName.kt | 11 ----------- 2 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 src/main/kotlin/net/pterodactylus/sone/web/page/Annotations.kt delete mode 100644 src/main/kotlin/net/pterodactylus/sone/web/page/MenuName.kt diff --git a/src/main/kotlin/net/pterodactylus/sone/web/page/Annotations.kt b/src/main/kotlin/net/pterodactylus/sone/web/page/Annotations.kt new file mode 100644 index 0000000..0bda133 --- /dev/null +++ b/src/main/kotlin/net/pterodactylus/sone/web/page/Annotations.kt @@ -0,0 +1,11 @@ +package net.pterodactylus.sone.web.page + +import net.pterodactylus.util.web.* + +annotation class MenuName(val value: String) + +val Page<*>.menuName get() = javaClass.getAnnotation(MenuName::class.java)?.value + +annotation class TemplatePath(val value: String) + +val Page<*>.templatePath get() = javaClass.getAnnotation(TemplatePath::class.java)?.value diff --git a/src/main/kotlin/net/pterodactylus/sone/web/page/MenuName.kt b/src/main/kotlin/net/pterodactylus/sone/web/page/MenuName.kt deleted file mode 100644 index 0bda133..0000000 --- a/src/main/kotlin/net/pterodactylus/sone/web/page/MenuName.kt +++ /dev/null @@ -1,11 +0,0 @@ -package net.pterodactylus.sone.web.page - -import net.pterodactylus.util.web.* - -annotation class MenuName(val value: String) - -val Page<*>.menuName get() = javaClass.getAnnotation(MenuName::class.java)?.value - -annotation class TemplatePath(val value: String) - -val Page<*>.templatePath get() = javaClass.getAnnotation(TemplatePath::class.java)?.value -- 2.7.4