Skip to content

Commit 81fd17d

Browse files
committed
Seal TagLoader.Builder interface
1 parent f48443d commit 81fd17d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎src/main/java/org/glavo/nbt/tag/TagLoader.java‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
import java.nio.file.Path;
2929

3030
/// The loader for reading NBT tags.
31-
public sealed interface TagLoader
32-
permits TagLoaderImpl {
31+
public sealed interface TagLoader permits TagLoaderImpl {
3332

3433
/// Returns the default [TagLoader].
3534
static TagLoader getDefault() {
@@ -94,7 +93,7 @@ private static <T extends Tag> T check(@Nullable Tag tag, Class<T> tagClass) thr
9493
}
9594

9695
/// The builder for creating a [TagLoader].
97-
interface Builder {
96+
sealed interface Builder permits TagLoaderImpl.BuilderImpl {
9897

9998
/// Sets the Minecraft edition of the NBT data.
10099
///

0 commit comments

Comments
 (0)