Skip to content

Commit 6857e53

Browse files
authored
#1581. Remove use of Deprecated.expires (#1584)
Authored by @sgrekhov
1 parent 7fb3276 commit 6857e53

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

LibTest/core/Deprecated/Deprecated_A01_t01.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
/// @assertion const Deprecated(String expires)
6-
/// Create a deprecation annotation which specifies the expiration of the
7-
/// annotated feature.
5+
/// @assertion const Deprecated(String message)
6+
/// Create a deprecation annotation which specifies the migration path and
7+
/// expiration of the annotated feature..
88
/// @description Checks that this constructor can be called and returns instance
9-
/// of Deprecated with correct expires value
9+
/// of Deprecated with the correct message
1010
/// @author [email protected]
1111
1212
import "../../../Utils/expect.dart";

LibTest/mirrors/before_library_lib1.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
65
@Deprecated('before_library_lib1')
76
library before_library_lib1;

LibTest/mirrors/before_library_t01.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ import '../../Utils/expect.dart';
1111

1212
import 'before_library_lib1.dart';
1313

14-
1514
main() {
1615
Symbol libraryName = MirrorSystem.getSymbol('before_library_lib1');
1716
var metadata = currentMirrorSystem().findLibrary(libraryName).metadata;
18-
Expect.equals('before_library_lib1', metadata[0].reflectee.expires);
17+
Expect.equals('before_library_lib1', metadata[0].reflectee.message);
1918
}

0 commit comments

Comments
 (0)