Skip to content

Commit

Permalink
Hide implementation details (java-native-access#689)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
normanmaurer authored Mar 11, 2024
1 parent 4c7ce4f commit 8b358cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -39,5 +39,5 @@
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.PACKAGE)
@NotNull
public @interface NotNullByDefault {
@interface NotNullByDefault {
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@
@NotNullByDefault
package io.netty.incubator.codec.quic;

import io.netty.incubator.codec.quic.internal.NotNullByDefault;

0 comments on commit 8b358cf

Please sign in to comment.