From 2d365a382db47a3503fb8007b16887d412eaa8dd Mon Sep 17 00:00:00 2001 From: NebelNidas Date: Thu, 16 Nov 2023 14:57:22 +0100 Subject: [PATCH] Mark MIO-related methods as internal --- .../enigma/translation/mapping/serde/MappingFormat.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/enigma/src/main/java/cuchaz/enigma/translation/mapping/serde/MappingFormat.java b/enigma/src/main/java/cuchaz/enigma/translation/mapping/serde/MappingFormat.java index 88f722c9..4521591e 100644 --- a/enigma/src/main/java/cuchaz/enigma/translation/mapping/serde/MappingFormat.java +++ b/enigma/src/main/java/cuchaz/enigma/translation/mapping/serde/MappingFormat.java @@ -13,6 +13,7 @@ import net.fabricmc.mappingio.tree.MemoryMappingTree; import net.fabricmc.mappingio.tree.VisitOrder; import net.fabricmc.mappingio.tree.VisitableMappingTree; +import org.jetbrains.annotations.ApiStatus; import cuchaz.enigma.ProgressListener; import cuchaz.enigma.analysis.index.JarIndex; @@ -126,10 +127,12 @@ public MappingsReader getReader() { } @Nullable + @ApiStatus.Internal public net.fabricmc.mappingio.format.MappingFormat getMappingIoCounterpart() { return mappingIoCounterpart; } + @ApiStatus.Internal public boolean hasMappingIoWriter() { return hasMappingIoWriter; } @@ -142,6 +145,7 @@ public boolean isWritable() { return writer != null || hasMappingIoWriter; } + @ApiStatus.Internal private boolean useMappingIo() { if (mappingIoCounterpart == null) return false; return System.getProperty("enigma.use_mappingio", "true").equals("true");