Skip to content

Commit

Permalink
I don't know what to do about this warning. Suppression time
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed May 9, 2024
1 parent 3eb1e7f commit 012caf6
Showing 1 changed file with 3 additions and 9 deletions.
Expand Up @@ -27,7 +27,7 @@ public abstract class CustomCycleButton<T, B extends CustomCycleButton<T, B>> ex
private final T[] values;
private int valueIndex;

public CustomCycleButton(
protected CustomCycleButton(
int x, int y,
int width, int height,
@Nullable Component title,
Expand All @@ -36,7 +36,8 @@ public CustomCycleButton(
this(x, y, width, height, title, null, onUpdate, values);
}

public CustomCycleButton(
@SuppressWarnings("this-escape")
protected CustomCycleButton(
int x, int y,
int width, int height,
@Nullable Component title, @Nullable Component tooltip,
Expand Down Expand Up @@ -110,13 +111,6 @@ public Component getMessage() {
return result;
}

//#if MC >= 1.19.4
@Override
public final void setTooltip(@Nullable Tooltip tooltip) {
super.setTooltip(tooltip);
}
//#endif

@NotNull
public abstract Component getValueMessage();
}

0 comments on commit 012caf6

Please sign in to comment.