mirror of
https://github.com/dart-lang/sdk
synced 2024-10-02 23:49:17 +00:00
clearly mark resource as deprecated
BUG= R=floitsch@google.com Review URL: https://codereview.chromium.org/1385933002 .
This commit is contained in:
parent
ef434d6a9b
commit
7b18bc7e14
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue