Skip to content

Commit

Permalink
Revert createHeadlessTerminal on TerminalFactory interface
Browse files Browse the repository at this point in the history
  • Loading branch information
reibitto committed Dec 28, 2019
1 parent 692a319 commit 4b07c9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,13 @@ public Terminal createTerminal() throws IOException {
}
}

@Override
/**
* Instantiates a Terminal according to the factory implementation with the exception that
* {@link DefaultTerminalFactory#preferTerminalEmulator} is always ignored. You may want to use this method when
* using tools that rely on AOT compilation such as Graal native-image to ensure AWT/Swing code paths are not hit.
* @return Terminal implementation
* @throws IOException If there was an I/O error with the underlying input/output system
*/
public Terminal createHeadlessTerminal() throws IOException {
// if tty but have no tty, but do have a port, then go telnet:
if( telnetPort > 0 && System.console() == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,4 @@ public interface TerminalFactory {
* @throws IOException If there was an I/O error with the underlying input/output system
*/
Terminal createTerminal() throws IOException;

/**
* Instantiates a Terminal according to the factory implementation with the exception that
* {@link DefaultTerminalFactory#preferTerminalEmulator} is always ignored. You may want to use this method when
* using tools that rely on AOT compilation such as Graal native-image to ensure AWT/Swing code paths are not hit.
* @return Terminal implementation
* @throws IOException If there was an I/O error with the underlying input/output system
*/
Terminal createHeadlessTerminal() throws IOException;
}

0 comments on commit 4b07c9a

Please sign in to comment.