Revision: 7888
Author: [email protected]
Date: Wed Apr 7 06:00:18 2010
Log: Fix checkstyle sort order.
Review at http://gwt-code-reviews.appspot.com/316802
Review by: [email protected]
http://code.google.com/p/google-web-toolkit/source/detail?r=7888
Modified:
/trunk/bikeshed/test/com/google/gwt/collections/ImmutableArrayTest.java
=======================================
--- /trunk/bikeshed/test/com/google/gwt/collections/ImmutableArrayTest.java
Thu Apr 1 09:34:49 2010
+++ /trunk/bikeshed/test/com/google/gwt/collections/ImmutableArrayTest.java
Wed Apr 7 06:00:18 2010
@@ -98,6 +98,19 @@
assertEquals("pear", ia.get(0));
}
+ public void testImmutableNoCopy() {
+ MutableArray<String> ma = CollectionFactory.createMutableArray();
+ ma.add("pear");
+ ma.add("apple");
+ ImmutableArrayImpl<String> ia1 = (ImmutableArrayImpl<String>)
ma.freeze();
+
+ assertTrue(ma.elems == ia1.elems);
+
+ ImmutableArrayImpl<String> ia2 = (ImmutableArrayImpl<String>)
ma.freeze();
+
+ assertTrue(ia1.elems == ia2.elems);
+ }
+
public void testModifyFrozenMutable() {
// Do not test undefined behavior with assertions disabled
if (!assertionsEnabled) {
@@ -144,18 +157,5 @@
assertEquals(("This operation is illegal on a frozen collection"),
e.getMessage());
}
}
-
- public void testImmutableNoCopy() {
- MutableArray<String> ma = CollectionFactory.createMutableArray();
- ma.add("pear");
- ma.add("apple");
- ImmutableArrayImpl<String> ia1 = (ImmutableArrayImpl<String>)
ma.freeze();
-
- assertTrue(ma.elems == ia1.elems);
-
- ImmutableArrayImpl<String> ia2 = (ImmutableArrayImpl<String>)
ma.freeze();
-
- assertTrue(ia1.elems == ia2.elems);
- }
}
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
To unsubscribe, reply using "remove me" as the subject.