Internalize

- Make *Programs#setInstance package private
This commit is contained in:
Jozufozu 2024-02-18 12:06:50 -06:00
parent 31f4ffe354
commit 53c732c3f6
2 changed files with 2 additions and 6 deletions

View File

@ -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();
}

View File

@ -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();
}