From f7520c43362e5773a7c38ca4d2facf1d099c330d Mon Sep 17 00:00:00 2001 From: Snabeldier <79211348+Snabeldier@users.noreply.github.com> Date: Thu, 2 Jan 2025 06:41:26 +0100 Subject: [PATCH] switch and add some annotations --- .../java/minevalley/core/api/database/StatementBuilder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/minevalley/core/api/database/StatementBuilder.java b/src/main/java/minevalley/core/api/database/StatementBuilder.java index 7fc8467..02ea1c4 100644 --- a/src/main/java/minevalley/core/api/database/StatementBuilder.java +++ b/src/main/java/minevalley/core/api/database/StatementBuilder.java @@ -1,6 +1,7 @@ package minevalley.core.api.database; import minevalley.core.api.Core; +import org.intellij.lang.annotations.Language; import org.jetbrains.annotations.Contract; import javax.annotation.Nonnull; @@ -50,7 +51,7 @@ public interface StatementBuilder extends AutoCloseable { */ @Nonnull @Contract("_ -> this") - StatementBuilder setSQL(@Nonnull String sql) throws IllegalArgumentException, IllegalStateException; + StatementBuilder setSQL(@Nonnull @Language("SQL") String sql) throws IllegalArgumentException, IllegalStateException; /** * Sets the parameter at the given index to SQL {@code NULL}.