Skip to content

Commit 27130d8

Browse files
lrhnCommit Bot
authored and
Commit Bot
committed
Remember Since annotations on new weak API.
Change-Id: I5285a0afffa4629c2ab3f26c0bd58d377375316d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226686 Auto-Submit: Lasse Nielsen <[email protected]> Commit-Queue: Lasse Nielsen <[email protected]> Reviewed-by: Erik Ernst <[email protected]> Commit-Queue: Erik Ernst <[email protected]>
1 parent a09c585 commit 27130d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sdk/lib/core/weak.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class Expando<T extends Object> {
6969
/// Not all objects are supported as targets for weak references.
7070
/// The [WeakReference] constructor will reject any object that is not
7171
/// supported as an [Expando] key.
72+
@Since("2.17")
7273
abstract class WeakReference<T extends Object> {
7374
/// Creates a [WeakReference] pointing to the given [target].
7475
///
@@ -162,6 +163,7 @@ abstract class WeakReference<T extends Object> {
162163
/// but as high-level events similar to timer events.
163164
///
164165
/// Finalization callbacks must not throw.
166+
@Since("2.17")
165167
abstract class Finalizer<T> {
166168
/// Creates a finalizer with the given finalization callback.
167169
///

0 commit comments

Comments
 (0)