Reviewers: jat, Description: Add a toString() method to UnmodifiableCollection that just passes through to the underlying collection. This matches the Sun JRE behavior.
Please review this at http://gwt-code-reviews.appspot.com/55802 Affected files: user/super/com/google/gwt/emul/java/util/Collections.java Index: user/super/com/google/gwt/emul/java/util/Collections.java =================================================================== --- user/super/com/google/gwt/emul/java/util/Collections.java (revision 5867) +++ user/super/com/google/gwt/emul/java/util/Collections.java (working copy) @@ -15,6 +15,8 @@ */ package java.util; +import java.util.Collection; + /** * Utility methods that operate on collections. <a * href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collections.html">[Sun @@ -83,6 +85,10 @@ public <E> E[] toArray(E[] a) { return coll.toArray(a); } + + public String toString() { + return coll.toString(); + } } static class UnmodifiableList<T> extends UnmodifiableCollection<T> implements --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
