diff options
author | 2015-03-04 19:03:48 +0100 | |
---|---|---|
committer | 2015-03-05 17:36:00 +0100 | |
commit | c5e3ab2bcb90c1c5579658736ede950ef264883f (patch) | |
tree | 981609505e8d2694eaf29667dba9e7462a17a795 | |
parent | dc68bafc29a457b1cc5b29a03f2ef5f2af77865d (diff) |
Follow up 137982
Updates comment explaining why we sort types by name in run-test
031-class-attributes.
Bug: 19499481
Change-Id: I1ee425a24dffd55d134effc6857e2c0ca368422a
-rw-r--r-- | test/031-class-attributes/src/ClassAttrs.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/031-class-attributes/src/ClassAttrs.java b/test/031-class-attributes/src/ClassAttrs.java index 977a05f1a6..c2e41c5b3e 100644 --- a/test/031-class-attributes/src/ClassAttrs.java +++ b/test/031-class-attributes/src/ClassAttrs.java @@ -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(); |