OSDN Git Service

Follow up 137982
authorSebastien Hertz <shertz@google.com>
Wed, 4 Mar 2015 18:03:48 +0000 (19:03 +0100)
committerSebastien Hertz <shertz@google.com>
Thu, 5 Mar 2015 16:36:00 +0000 (17:36 +0100)
Updates comment explaining why we sort types by name in run-test
031-class-attributes.

Bug: 19499481
Change-Id: I1ee425a24dffd55d134effc6857e2c0ca368422a

test/031-class-attributes/src/ClassAttrs.java

index 977a05f..c2e41c5 100644 (file)
@@ -330,8 +330,9 @@ public class ClassAttrs {
         for (Type t : types) {
           typeStringList.add(t.toString());
         }
-        // Sort types alphabetically so they're always printed in the same order, whichever
-        // tool generated the DEX file of the test.
+        // Sort types alphabetically so they're always printed in the same order.
+        // For instance, Class.getClasses() does not guarantee any order for the
+        // returned Class[].
         Collections.sort(typeStringList);
 
         StringBuilder stb = new StringBuilder();