Index: frog/leg/util/link_implementation.dart |
diff --git a/frog/leg/util/link_implementation.dart b/frog/leg/util/link_implementation.dart |
index 9dce2c4b1eac7f7a8b2be30815980b56cff548f2..bc204b08aec3191557307bf86788ffb4844ca329 100644 |
--- a/frog/leg/util/link_implementation.dart |
+++ b/frog/leg/util/link_implementation.dart |
@@ -2,16 +2,15 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-// TODO(ahe): This class should not be generic. |
-class LinkFactory { |
- factory Link<T>(T head, [Link<T> tail]) { |
+class LinkFactory<T> { |
+ factory Link(T head, [Link<T> tail]) { |
if (tail === null) { |
tail = new LinkTail<T>(); |
} |
return new LinkEntry<T>(head, tail); |
} |
- factory Link<T>.fromList(List<T> list) { |
+ factory Link.fromList(List<T> list) { |
switch (list.length) { |
case 0: |
return new LinkTail<T>(); |