Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(556)

Unified Diff: lib/src/hash.dart

Issue 1826543003: Update deprecations. (Closed) Base URL: git@github.com:dart-lang/crypto.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/digest.dart ('k') | lib/src/hmac.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/hash.dart
diff --git a/lib/src/hash.dart b/lib/src/hash.dart
index 2013ca6eb6217bff47f59168d52676f51cc86cee..9714f4246a3cdc4e4656189decf5a8537f0654a1 100644
--- a/lib/src/hash.dart
+++ b/lib/src/hash.dart
@@ -40,21 +40,22 @@ abstract class Hash extends Converter<List<int>, Digest> {
ByteConversionSink startChunkedConversion(Sink<Digest> sink);
- /// Returns a new instance of this hash function.
- @Deprecated("Expires in 1.0.0. Use Hash.startChunkedConversion() instead.")
+ /// This is deprecated.
+ ///
+ /// Use [startChunkedConversion] instead.
+ @Deprecated("Will be removed in crypto 1.0.0.")
Hash newInstance();
- /// Add a list of bytes to the hash computation.
+ /// This is deprecated.
///
- /// If [this] has already been closed, throws a [StateError].
- @Deprecated("Expires in 1.0.0. Use Hash.convert() or "
- "Hash.startChunkedConversion() instead.")
+ /// Use [convert] or [startChunkedConversion] instead.
+ @Deprecated("Will be removed in crypto 1.0.0.")
void add(List<int> data) => _sink.add(data);
- /// Finish the hash computation and extract the message digest as a list of
- /// bytes.
- @Deprecated("Expires in 1.0.0. Use Hash.convert() or "
- "Hash.startChunkedConversion() instead.")
+ /// This is deprecated.
+ ///
+ /// Use [convert] or [startChunkedConversion] instead.
+ @Deprecated("Will be removed in crypto 1.0.0.")
List<int> close() {
_sink.close();
return _innerSink.value.bytes;
« no previous file with comments | « lib/src/digest.dart ('k') | lib/src/hmac.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698