Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add @SuppressWarnings("unused") to util interfaces #15

Merged
merged 1 commit into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/main/java/minevalley/smart/api/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@SuppressWarnings("unused")
public @interface App {

/**
Expand Down
1 change: 1 addition & 0 deletions src/main/java/minevalley/smart/api/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import minevalley.core.api.users.OnlineUser;
import minevalley.smart.api.utils.window.Window;

@SuppressWarnings("unused")
public interface Session {

OnlineUser getUser();
Expand Down
1 change: 1 addition & 0 deletions src/main/java/minevalley/smart/api/Smart.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import java.util.function.BiConsumer;
import java.util.function.Consumer;

@SuppressWarnings("unused")
public final class Smart {

@Setter
Expand Down
1 change: 1 addition & 0 deletions src/main/java/minevalley/smart/api/SmartApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ public SmartApp() {
*
* @param session new created session
*/
@SuppressWarnings("unused")
public abstract void onSessionCreate(Session session);
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.util.function.BiConsumer;
import java.util.function.Consumer;

@SuppressWarnings("unused")
public interface Window {

List<Session> getViewingUsers();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import java.util.function.Consumer;

@SuppressWarnings("unused")
public interface WindowBuilder {

WindowBuilder setTitle(String title);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.bukkit.inventory.ItemStack;

@SuppressWarnings("unused")
public interface WindowItem {

ItemStack getItemStack();
Expand Down
Loading