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

Unified Diff: pkg/collection/lib/wrappers.dart

Issue 143243005: pkg/collection: mark fields in wrappers as final (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: bumped pubspec Created 6 years, 11 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 | « no previous file | pkg/collection/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/collection/lib/wrappers.dart
diff --git a/pkg/collection/lib/wrappers.dart b/pkg/collection/lib/wrappers.dart
index 1097c3ef17771e03486537e3129735e25543ff5d..b15a6bdaf3f477bd6431970e091f9671aa61ac23 100644
--- a/pkg/collection/lib/wrappers.dart
+++ b/pkg/collection/lib/wrappers.dart
@@ -26,7 +26,7 @@ part "src/unmodifiable_wrappers.dart";
* iterable object.
*/
class DelegatingIterable<E> implements Iterable<E> {
- Iterable<E> _base;
+ final Iterable<E> _base;
/**
* Create a wrapper that forwards operations to [base].
@@ -295,7 +295,8 @@ class DelegatingQueue<E> extends DelegatingIterable<E> implements Queue<E> {
* map object.
*/
class DelegatingMap<K, V> implements Map<K, V> {
- Map<K, V> _base;
+ final Map<K, V> _base;
+
DelegatingMap(Map<K, V> base) : _base = base;
V operator [](Object key) => _base[key];
« no previous file with comments | « no previous file | pkg/collection/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698