Skip to content

Commit

Permalink
#1581. Remove use of Deprecated.expires (#1585)
Browse files Browse the repository at this point in the history
Authored by @sgrekhov.
  • Loading branch information
sgrekhov authored Dec 13, 2022
1 parent 56f4552 commit 5c70d75
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
8 changes: 4 additions & 4 deletions LibTest/core/Deprecated/Deprecated_A01_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

// @dart = 2.9

/// @assertion const Deprecated(String expires)
/// Create a deprecation annotation which specifies the expiration of the
/// annotated feature.
/// @assertion const Deprecated(String message)
/// Create a deprecation annotation which specifies the migration path and
/// expiration of the annotated feature.
/// @description Checks that this constructor can be called and returns instance
/// of Deprecated with correct expires value
/// of Deprecated with the correct message value
/// @author [email protected]
import "../../../Utils/expect.dart";
Expand Down
1 change: 0 additions & 1 deletion LibTest/mirrors/before_library_lib1.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@

// @dart = 2.9


@Deprecated('before_library_lib1')
library before_library_lib1;
4 changes: 1 addition & 3 deletions LibTest/mirrors/before_library_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@
import 'dart:mirrors';
import '../../Utils/expect.dart';

import 'before_library_lib1.dart';


main() {
Symbol libraryName = MirrorSystem.getSymbol('before_library_lib1');
var metadata = currentMirrorSystem().findLibrary(libraryName).metadata;
Expect.equals('before_library_lib1', metadata[0].reflectee.expires);
Expect.equals('before_library_lib1', metadata[0].reflectee.message);
}

0 comments on commit 5c70d75

Please sign in to comment.