< prev index next >
test/jdk/jshell/ReplToolTesting.java
Print this page
rev 3613 : imported patch 8131023
*** 245,255 ****
repl = new JShellTool(
cmdin,
new PrintStream(cmdout),
new PrintStream(cmderr),
new PrintStream(console),
- userin,
new PrintStream(userout),
new PrintStream(usererr),
prefs,
locale);
repl.testPrompt = true;
--- 245,254 ----
*** 461,471 ****
completions.toString());
}
private List<String> computeCompletions(String code, boolean isSmart) {
JShellTool js = this.repl != null ? this.repl
! : new JShellTool(null, null, null, null, null, null, null, prefs, Locale.ROOT);
int cursor = code.indexOf('|');
code = code.replace("|", "");
assertTrue(cursor > -1, "'|' not found: " + code);
List<Suggestion> completions =
js.commandCompletionSuggestions(code, cursor, new int[1]); //XXX: ignoring anchor for now
--- 460,470 ----
completions.toString());
}
private List<String> computeCompletions(String code, boolean isSmart) {
JShellTool js = this.repl != null ? this.repl
! : new JShellTool(null, null, null, null, null, null, prefs, Locale.ROOT);
int cursor = code.indexOf('|');
code = code.replace("|", "");
assertTrue(cursor > -1, "'|' not found: " + code);
List<Suggestion> completions =
js.commandCompletionSuggestions(code, cursor, new int[1]); //XXX: ignoring anchor for now
< prev index next >