mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 02:04:44 +02:00
refactor: adjust specific Nullable annotations used (#3869)
This commit is contained in:
@ -21,16 +21,15 @@ package com.plotsquared.core.configuration.caption;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.event.ClickEvent;
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.EnumSet;
|
||||
import java.util.Set;
|
||||
|
||||
final class ClickStripTransform implements ComponentTransform {
|
||||
|
||||
private final Set<ClickEvent.@NotNull Action> actionsToStrip;
|
||||
private final Set<ClickEvent.@NonNull Action> actionsToStrip;
|
||||
|
||||
public ClickStripTransform(final Set<ClickEvent.@NotNull Action> actionsToStrip) {
|
||||
public ClickStripTransform(final Set<ClickEvent.@NonNull Action> actionsToStrip) {
|
||||
this.actionsToStrip = EnumSet.copyOf(actionsToStrip);
|
||||
}
|
||||
|
||||
|
@ -93,10 +93,10 @@ public class HybridPlotWorld extends ClassicPlotWorld {
|
||||
@Inject
|
||||
public HybridPlotWorld(
|
||||
@Assisted("world") final String worldName,
|
||||
@Nullable @Assisted("id") final String id,
|
||||
@javax.annotation.Nullable @Assisted("id") final String id,
|
||||
@Assisted final @NonNull IndependentPlotGenerator generator,
|
||||
@Nullable @Assisted("min") final PlotId min,
|
||||
@Nullable @Assisted("max") final PlotId max,
|
||||
@javax.annotation.Nullable @Assisted("min") final PlotId min,
|
||||
@javax.annotation.Nullable @Assisted("max") final PlotId max,
|
||||
@WorldConfig final @NonNull YamlConfiguration worldConfiguration,
|
||||
final @NonNull GlobalBlockQueue blockQueue
|
||||
) {
|
||||
|
@ -18,7 +18,8 @@
|
||||
*/
|
||||
package com.plotsquared.core.plot;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
public class PlotTitle {
|
||||
|
Reference in New Issue
Block a user