Fix checkstyle sort order.
Review at http://gwt-code-reviews.appspot.com/316802
Review by: rchandia@google.com
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@7888 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/bikeshed/test/com/google/gwt/collections/ImmutableArrayTest.java b/bikeshed/test/com/google/gwt/collections/ImmutableArrayTest.java
index dbc123c..c12a415 100644
--- a/bikeshed/test/com/google/gwt/collections/ImmutableArrayTest.java
+++ b/bikeshed/test/com/google/gwt/collections/ImmutableArrayTest.java
@@ -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);
- }
-
}