From 7b18bc7e141d548c3d8a5d4758e77b923f334e0c Mon Sep 17 00:00:00 2001 From: Seth Ladd Date: Tue, 6 Oct 2015 09:08:11 -0700 Subject: [PATCH] clearly mark resource as deprecated BUG= R=floitsch@google.com Review URL: https://codereview.chromium.org/1385933002 . --- CHANGELOG.md | 3 +++ sdk/lib/core/resource.dart | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 39970eea324..c0e6ec0581e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ * `Uri` added `removeFragment` method. * `String.allMatches` (implementing `Pattern.allMatches`) is now lazy, as all `allMatches` implementations are intended to be. + * `Resource` is deprecated in favor of the resource package. + See https://pub.dartlang.org/packages/resource to learn more. This is + the last release to contain the Resource class. * `dart:io` * `HttpClient` no longer sends URI fragments in the request. This is not diff --git a/sdk/lib/core/resource.dart b/sdk/lib/core/resource.dart index 17bdebcb1ec..e8c9c67d96f 100644 --- a/sdk/lib/core/resource.dart +++ b/sdk/lib/core/resource.dart @@ -5,16 +5,18 @@ part of dart.core; /** - * A resource that can be read into the program. + * DEPRECATED. A resource that can be read into the program. * - * WARNING: This API is _experimental_, - * and it may be changed or removed in future releases + * WARNING: This API is _deprecated_, + * and it will be removed in 1.14. Please use + * https://pub.dartlang.org/packages/resource instead. * * A resource is data that can be located using a URI and read into * the program at runtime. * The URI may use the `package` scheme to read resources provided * along with package sources. */ +@Deprecated('1.14') abstract class Resource { /** * Creates a resource object with the given [uri] as location.