Skip to content

Commit

Permalink
DefaultPrinter: add @SuppressWarnings("serial") in highlighters cache…
Browse files Browse the repository at this point in the history
… map
  • Loading branch information
mattirn committed Dec 18, 2021
1 parent 51c0399 commit f72694f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ public class DefaultPrinter extends JlineCommandRegistry implements Printer {
private final ScriptEngine engine;
private final ConfigurationPath configPath;
private StyleResolver prntStyle;

@SuppressWarnings("serial")
private final LinkedHashMap<String, SyntaxHighlighter> highlighters = new LinkedHashMap<String,
SyntaxHighlighter>(HIGHLIGHTER_CACHE_SIZE + 1, .75F, false) {
protected boolean removeEldestEntry(Map.Entry<String, SyntaxHighlighter> eldest) {
Expand Down

0 comments on commit f72694f

Please sign in to comment.