diff --git a/src/main/java/io/supertokens/storage/postgresql/annotations/ConfigDescription.java b/src/main/java/io/supertokens/storage/postgresql/annotations/ConfigDescription.java deleted file mode 100644 index 762ae6eb..00000000 --- a/src/main/java/io/supertokens/storage/postgresql/annotations/ConfigDescription.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2024, VRAI Labs and/or its affiliates. All rights reserved. - * - * This software is licensed under the Apache License, Version 2.0 (the - * "License") as published by the Apache Software Foundation. - * - * You may not use this file except in compliance with the License. You may - * obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ - - package io.supertokens.storage.postgresql.annotations; - - import java.lang.annotation.ElementType; - import java.lang.annotation.Retention; - import java.lang.annotation.RetentionPolicy; - import java.lang.annotation.Target; - - @Retention(RetentionPolicy.RUNTIME) - @Target(ElementType.FIELD) - public @interface ConfigDescription { - String value() default ""; - } - \ No newline at end of file diff --git a/src/main/java/io/supertokens/storage/postgresql/config/PostgreSQLConfig.java b/src/main/java/io/supertokens/storage/postgresql/config/PostgreSQLConfig.java index 1c42e5b5..57c6daa3 100644 --- a/src/main/java/io/supertokens/storage/postgresql/config/PostgreSQLConfig.java +++ b/src/main/java/io/supertokens/storage/postgresql/config/PostgreSQLConfig.java @@ -25,6 +25,7 @@ import com.google.gson.JsonObject; import io.supertokens.pluginInterface.ConfigFieldInfo; +import io.supertokens.pluginInterface.annotations.ConfigDescription; import io.supertokens.pluginInterface.exceptions.InvalidConfigException; import io.supertokens.storage.postgresql.Start; import io.supertokens.storage.postgresql.annotations.*; diff --git a/src/test/java/io/supertokens/storage/postgresql/test/PostgresSQLConfigTest.java b/src/test/java/io/supertokens/storage/postgresql/test/PostgresSQLConfigTest.java index d14841d9..109be7af 100644 --- a/src/test/java/io/supertokens/storage/postgresql/test/PostgresSQLConfigTest.java +++ b/src/test/java/io/supertokens/storage/postgresql/test/PostgresSQLConfigTest.java @@ -18,7 +18,7 @@ package io.supertokens.storage.postgresql.test; import io.supertokens.ProcessState; -import io.supertokens.storage.postgresql.annotations.ConfigDescription; +import io.supertokens.pluginInterface.annotations.ConfigDescription; import io.supertokens.storage.postgresql.config.PostgreSQLConfig; import org.junit.AfterClass;