changeset 50923:8702994c0314 condy-folding

Improve training of --generate-jli-classes to reduce noise in condy startup tests
author redestad
date Fri, 01 Jun 2018 16:21:03 +0200
parents 47ce05a9b63b
children a5ca4f50cb3b
files make/jdk/src/classes/build/tools/classlist/HelloClasslist.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/make/jdk/src/classes/build/tools/classlist/HelloClasslist.java	Thu May 31 13:09:04 2018 -0700
+++ b/make/jdk/src/classes/build/tools/classlist/HelloClasslist.java	Fri Jun 01 16:21:03 2018 +0200
@@ -38,6 +38,8 @@
 import java.util.stream.Stream;
 import java.util.logging.*;
 import java.util.Arrays;
+import java.util.Collections;
+import java.util.Comparator;
 import java.util.Date;
 import java.util.List;
 import java.util.Locale;
@@ -66,6 +68,8 @@
         Stream.of(helloWorld.split(","))
               .forEach(System.out::println);
 
+        Collections.sort(strings, Comparator.comparingInt(s -> s.length()));
+
         String newDate = DateTimeFormatter.ISO_LOCAL_DATE_TIME.format(
                 LocalDateTime.now(ZoneId.of("GMT")));