[FIR] Create fake hidden versions of List.getFirst/getLast in JDK < 21

... so that overrides are marked as deprecated regardless of the JDK.

#KT-65440 Fixed
This commit is contained in:
Kirill Rakhman
2024-02-06 13:26:18 +01:00
committed by Space Team
parent c6b2675089
commit 2f49272c42
22 changed files with 399 additions and 3 deletions
@@ -83,6 +83,7 @@ class InlinerCycleReporter(
} finally {
if (!inlineCallInfos.isEmpty()) {
@Suppress("DEPRECATION") // KT-65247
if (inlineCallInfos.last.call == call) {
inlineCallInfos.removeLast()
}