mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-27 07:26:48 +01:00
Internalize
- Make *Programs#setInstance package private
This commit is contained in:
parent
31f4ffe354
commit
53c732c3f6
2 changed files with 2 additions and 6 deletions
|
@ -3,7 +3,6 @@ package com.jozufozu.flywheel.backend.compile;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.jetbrains.annotations.ApiStatus;
|
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
|
@ -103,8 +102,7 @@ public class IndirectPrograms extends AbstractPrograms {
|
||||||
return builder.build();
|
return builder.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiStatus.Internal
|
static void setInstance(@Nullable IndirectPrograms newInstance) {
|
||||||
public static void setInstance(@Nullable IndirectPrograms newInstance) {
|
|
||||||
if (instance != null) {
|
if (instance != null) {
|
||||||
instance.release();
|
instance.release();
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,6 @@ package com.jozufozu.flywheel.backend.compile;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.jetbrains.annotations.ApiStatus;
|
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
|
@ -43,8 +42,7 @@ public class InstancingPrograms extends AbstractPrograms {
|
||||||
setInstance(newInstance);
|
setInstance(newInstance);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiStatus.Internal
|
static void setInstance(@Nullable InstancingPrograms newInstance) {
|
||||||
public static void setInstance(@Nullable InstancingPrograms newInstance) {
|
|
||||||
if (instance != null) {
|
if (instance != null) {
|
||||||
instance.release();
|
instance.release();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue