Readd checkerframework

This commit is contained in:
AlexProgrammerDE 2023-12-20 19:34:55 +01:00
parent 447f3497ef
commit e34a97cb66
3 changed files with 6 additions and 2 deletions
build.gradle.kts
gradle
src/main/java/com/github/steveice10/packetlib/packet

View file

@ -79,6 +79,9 @@ dependencies {
// Netty
api(libs.bundles.netty)
// Checker Framework
api(libs.checkerframework.qual)
// Test dependencies
testImplementation(libs.junit.jupiter)
}

View file

@ -12,6 +12,7 @@ math = "2.0"
fastutil-maps = "8.5.3"
netty = "4.1.103.Final"
netty-io_uring = "0.0.24.Final"
checkerframework = "3.42.0"
junit = "5.8.2"
[libraries]
@ -31,6 +32,8 @@ fastutil-int2object-maps = { module = "com.nukkitx.fastutil:fastutil-int-object-
netty-all = { module = "io.netty:netty-all", version.ref = "netty" }
netty-incubator-transport-native-io_uring = { module = "io.netty.incubator:netty-incubator-transport-native-io_uring", version.ref = "netty-io_uring" }
checkerframework-qual = { module = "org.checkerframework:checker-qual", version.ref = "checkerframework" }
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit" }
[plugins]

View file

@ -146,7 +146,6 @@ public abstract class PacketProtocol {
* @param buf The buffer to read the packet from.
* @param codecHelper The codec helper.
* @return The created packet.
* @if there was an IO error whilst reading the packet.
* @throws IllegalArgumentException If the packet ID is not registered.
*/
@SuppressWarnings("unchecked")
@ -212,7 +211,6 @@ public abstract class PacketProtocol {
* @param buf The buffer to read the packet from.
* @param codecHelper The codec helper.
* @return The created packet.
* @if there was an IO error whilst reading the packet.
* @throws IllegalArgumentException If the packet ID is not registered.
*/
@SuppressWarnings("unchecked")