Reviewers: rchandia,
Description:
Fix checkstyle sort order.
Review by: [email protected]
Please review this at http://gwt-code-reviews.appspot.com/316802/show
Affected files:
M bikeshed/test/com/google/gwt/collections/ImmutableArrayTest.java
Index: bikeshed/test/com/google/gwt/collections/ImmutableArrayTest.java
===================================================================
--- bikeshed/test/com/google/gwt/collections/ImmutableArrayTest.java
(revision 7882)
+++ bikeshed/test/com/google/gwt/collections/ImmutableArrayTest.java
(working copy)
@@ -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) {
@@ -145,17 +158,4 @@
}
}
- 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.