Skip to content

Commit

Permalink
Backport 4ed38f5ad5f822ab948257ed39717ea919fd32ed
Browse files Browse the repository at this point in the history
  • Loading branch information
duke committed Dec 19, 2023
1 parent 03acee8 commit b71fea3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public char[] readPassword(String fmt, Object ... args) {
} catch (EndOfFileException eofe) {
return null;
} finally {
jline.getBuffer().zeroOut();
jline.zeroOut();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -750,4 +750,9 @@ enum SuggestionType {
void setAutosuggestion(SuggestionType type);

SuggestionType getAutosuggestion();

// JDK specific modification
default void zeroOut() {
throw new UnsupportedOperationException();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6250,4 +6250,10 @@ private void rebind(KeyMap<Binding> keyMap, String operation, String prevBinding
}
}

// JDK specific modification
@Override
public void zeroOut() {
buf.zeroOut();
parsedLine = null;
}
}

0 comments on commit b71fea3

Please sign in to comment.