Test changes
- Allow use of TYPE_USE annotations - Ignore package-private methods for nullability annotations - Add excludes for classes which don't pass - Disable stupid BukkitMirrorTest - configure mockito agent to address changes in newer java versions see https://openjdk.org/jeps/451 Co-authored-by: Riley Park <rileysebastianpark@gmail.com> Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com> Co-authored-by: Yannick Lamprecht <yannicklamprecht@live.de>
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package io.papermc.paper.testing;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
import org.bukkit.Keyed;
|
||||
import org.bukkit.NamespacedKey;
|
||||
import org.bukkit.Tag;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public record EmptyTag(NamespacedKey key) implements Tag<Keyed> {
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public EmptyTag() {
|
||||
this(NamespacedKey.randomKey());
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull NamespacedKey getKey() {
|
||||
return this.key;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isTagged(@NotNull final Keyed item) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull Set<Keyed> getValues() {
|
||||
return Collections.emptySet();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user