From 8b358cf5065c4ee40dd2880950df155e7222492f Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Mon, 11 Mar 2024 11:28:41 +0100 Subject: [PATCH] Hide implementation details (#689) Motivation: We should hide the annotation so someone will not import it by mistake Modifications: Move annotation to same package as the rest of the code and mark it as package-private Result: Don't expose implementation details --- .../incubator/codec/quic/{internal => }/NotNullByDefault.java | 4 ++-- .../main/java/io/netty/incubator/codec/quic/package-info.java | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) rename codec-classes-quic/src/main/java/io/netty/incubator/codec/quic/{internal => }/NotNullByDefault.java (95%) diff --git a/codec-classes-quic/src/main/java/io/netty/incubator/codec/quic/internal/NotNullByDefault.java b/codec-classes-quic/src/main/java/io/netty/incubator/codec/quic/NotNullByDefault.java similarity index 95% rename from codec-classes-quic/src/main/java/io/netty/incubator/codec/quic/internal/NotNullByDefault.java rename to codec-classes-quic/src/main/java/io/netty/incubator/codec/quic/NotNullByDefault.java index a1dd8546c..300a93769 100644 --- a/codec-classes-quic/src/main/java/io/netty/incubator/codec/quic/internal/NotNullByDefault.java +++ b/codec-classes-quic/src/main/java/io/netty/incubator/codec/quic/NotNullByDefault.java @@ -13,7 +13,7 @@ * License for the specific language governing permissions and limitations * under the License. */ -package io.netty.incubator.codec.quic.internal; +package io.netty.incubator.codec.quic; import org.jetbrains.annotations.NotNull; @@ -39,5 +39,5 @@ @Retention(RetentionPolicy.CLASS) @Target(ElementType.PACKAGE) @NotNull -public @interface NotNullByDefault { +@interface NotNullByDefault { } \ No newline at end of file diff --git a/codec-classes-quic/src/main/java/io/netty/incubator/codec/quic/package-info.java b/codec-classes-quic/src/main/java/io/netty/incubator/codec/quic/package-info.java index 23a735f19..4325c2508 100644 --- a/codec-classes-quic/src/main/java/io/netty/incubator/codec/quic/package-info.java +++ b/codec-classes-quic/src/main/java/io/netty/incubator/codec/quic/package-info.java @@ -19,4 +19,3 @@ @NotNullByDefault package io.netty.incubator.codec.quic; -import io.netty.incubator.codec.quic.internal.NotNullByDefault; \ No newline at end of file