Updates comment explaining why we sort types by name in run-test
031-class-attributes.
Bug:
19499481
Change-Id: I1ee425a24dffd55d134effc6857e2c0ca368422a
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();