From 3cb7394f3dc53aa43ffaf511fc5429b9f9553727 Mon Sep 17 00:00:00 2001 From: Gold856 <117957790+Gold856@users.noreply.github.com> Date: Mon, 12 Aug 2024 02:07:43 -0400 Subject: [PATCH] [wpilib] Deprecate Resource --- wpilibc/src/main/native/include/frc/Resource.h | 2 +- wpilibj/src/main/java/edu/wpi/first/wpilibj/Resource.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wpilibc/src/main/native/include/frc/Resource.h b/wpilibc/src/main/native/include/frc/Resource.h index 6d9dfa58500..1406405c125 100644 --- a/wpilibc/src/main/native/include/frc/Resource.h +++ b/wpilibc/src/main/native/include/frc/Resource.h @@ -24,7 +24,7 @@ namespace frc { * resources; it just tracks which indices were marked in use by Allocate and * not yet freed by Free. */ -class Resource { +class [[deprecated]] Resource { public: virtual ~Resource() = default; diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/Resource.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/Resource.java index f4b04587ad4..e9048dc7524 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/Resource.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/Resource.java @@ -20,6 +20,7 @@ * initialized. This ensures that the program is restartable in memory without having to * unload/reload. */ +@Deprecated(forRemoval = true, since = "2025") public final class Resource { private static Resource resourceList; private final boolean[] m_numAllocated;