Skip to content

Commit

Permalink
chore: add @SuppressWarnings("unused") to util interfaces (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
Snabeldier authored Sep 14, 2024
1 parent 6f711d8 commit 1dd0545
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 1 deletion.
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

0 comments on commit 1dd0545

Please sign in to comment.