Skip to content

Commit

Permalink
moved instance fields at the top of the class
Browse files Browse the repository at this point in the history
  • Loading branch information
naotoj committed Dec 1, 2023
1 parent 03e07d9 commit a3773d4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ public JdkConsole console(boolean isTTY, Charset charset) {
* public Console class.
*/
private static class JdkConsoleImpl implements JdkConsole {
private final Terminal terminal;
private volatile LineReader jline;

@Override
public PrintWriter writer() {
return terminal.writer();
Expand Down Expand Up @@ -130,9 +133,6 @@ public Charset charset() {
return terminal.encoding();
}

private final Terminal terminal;
private volatile LineReader jline;

public JdkConsoleImpl(Terminal terminal) {
this.terminal = terminal;
}
Expand Down

0 comments on commit a3773d4

Please sign in to comment.