Fix test failure
This commit is contained in:
4 files changed
+7
-3
No files matched your search
+1
-1
@@ -24,9 +24,9 @@ import com.github.retrooper.packetevents.protocol.util.NbtCodec;
|
||||
import com.github.retrooper.packetevents.util.mappings.TypesBuilderData;
|
||||
import com.github.retrooper.packetevents.wrapper.PacketWrapper;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.annotations.UnknownNullability;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
import org.jspecify.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @version 1.21.11+
|
||||
|
||||
@@ -113,7 +113,8 @@ public class ClassStructureTest extends BaseDummyAPITest {
|
||||
.anyMatch(annotation -> annotation.getName().contains(Nullable.class.getSimpleName())))
|
||||
// the parameter type annotation disappears for non-static inner classes for some reason,
|
||||
// fall back to normal parameter annotations
|
||||
.orElseGet(() -> param.hasAnnotation(Nullable.class)))) {
|
||||
.orElseGet(() -> param.hasAnnotation(Nullable.class) || param.hasAnnotation(org.jspecify.annotations.Nullable.class)))) {
|
||||
// TODO jspecify @Nullable gets ignored by classgraph
|
||||
issues.add(classPrefix + " TypesBuilderData parameter type doesn't have @Nullable annotation: " + dataCtor.toStringWithSimpleNames());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,9 @@ java {
|
||||
|
||||
tasks {
|
||||
withType<JavaCompile> {
|
||||
options.compilerArgs.add("-parameters")
|
||||
options.compilerArgs.add("-g")
|
||||
|
||||
sequenceOf("unchecked", "deprecation", "removal")
|
||||
.forEach { options.compilerArgs.add("-Xlint:$it") }
|
||||
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ bungeecord = "1.21-R0.1"
|
||||
velocity = "3.4.0-SNAPSHOT"
|
||||
fabric-loom = "1.11.8"
|
||||
spongeGradle = "2.3.0"
|
||||
classgraph = "4.8.179"
|
||||
classgraph = "4.8.184"
|
||||
|
||||
[libraries]
|
||||
adventure-api = { group = "net.kyori", name = "adventure-api", version.ref = "adventure" }
|
||||
|
||||
Reference in new issue
Block a user