langtools/test/jdk/jshell/ReplToolTesting.java
changeset 38514 f7df9ab653b0
parent 37389 9c137b83a8b8
child 38908 f0c186d76c8a
equal deleted inserted replaced
38513:0ae85633d035 38514:f7df9ab653b0
    67                     .map(s -> new ImportInfo("import " + s + ";", "", s))
    67                     .map(s -> new ImportInfo("import " + s + ";", "", s))
    68                     .collect(toList());
    68                     .collect(toList());
    69     final static List<MethodInfo> START_UP_METHODS = Stream.of(
    69     final static List<MethodInfo> START_UP_METHODS = Stream.of(
    70                     new MethodInfo("void printf(String format, Object... args) { System.out.printf(format, args); }",
    70                     new MethodInfo("void printf(String format, Object... args) { System.out.printf(format, args); }",
    71                             "(String,Object...)void", "printf"))
    71                             "(String,Object...)void", "printf"))
       
    72                     .collect(toList());
       
    73     final static List<String> START_UP_CMD_METHOD = Stream.of(
       
    74                     "|    printf (String,Object...)void")
    72                     .collect(toList());
    75                     .collect(toList());
    73     final static List<String> START_UP = Collections.unmodifiableList(
    76     final static List<String> START_UP = Collections.unmodifiableList(
    74             Stream.concat(START_UP_IMPORTS.stream(), START_UP_METHODS.stream())
    77             Stream.concat(START_UP_IMPORTS.stream(), START_UP_METHODS.stream())
    75             .map(s -> s.getSource())
    78             .map(s -> s.getSource())
    76             .collect(toList()));
    79             .collect(toList()));