From 53c732c3f6c3943f4026354b79d3a57d9ff47214 Mon Sep 17 00:00:00 2001 From: Jozufozu Date: Sun, 18 Feb 2024 12:06:50 -0600 Subject: [PATCH] Internalize - Make *Programs#setInstance package private --- .../jozufozu/flywheel/backend/compile/IndirectPrograms.java | 4 +--- .../jozufozu/flywheel/backend/compile/InstancingPrograms.java | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/jozufozu/flywheel/backend/compile/IndirectPrograms.java b/src/main/java/com/jozufozu/flywheel/backend/compile/IndirectPrograms.java index b8fc8fec6..879a4c5b6 100644 --- a/src/main/java/com/jozufozu/flywheel/backend/compile/IndirectPrograms.java +++ b/src/main/java/com/jozufozu/flywheel/backend/compile/IndirectPrograms.java @@ -3,7 +3,6 @@ package com.jozufozu.flywheel.backend.compile; import java.util.List; import java.util.Map; -import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.Nullable; import com.google.common.collect.ImmutableList; @@ -103,8 +102,7 @@ public class IndirectPrograms extends AbstractPrograms { return builder.build(); } - @ApiStatus.Internal - public static void setInstance(@Nullable IndirectPrograms newInstance) { + static void setInstance(@Nullable IndirectPrograms newInstance) { if (instance != null) { instance.release(); } diff --git a/src/main/java/com/jozufozu/flywheel/backend/compile/InstancingPrograms.java b/src/main/java/com/jozufozu/flywheel/backend/compile/InstancingPrograms.java index 6a6fd5397..e13890d2a 100644 --- a/src/main/java/com/jozufozu/flywheel/backend/compile/InstancingPrograms.java +++ b/src/main/java/com/jozufozu/flywheel/backend/compile/InstancingPrograms.java @@ -3,7 +3,6 @@ package com.jozufozu.flywheel.backend.compile; import java.util.List; import java.util.Map; -import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.Nullable; import com.google.common.collect.ImmutableList; @@ -43,8 +42,7 @@ public class InstancingPrograms extends AbstractPrograms { setInstance(newInstance); } - @ApiStatus.Internal - public static void setInstance(@Nullable InstancingPrograms newInstance) { + static void setInstance(@Nullable InstancingPrograms newInstance) { if (instance != null) { instance.release(); }