From 9eba0a03c312ed14e5ded485267c44f5c4a55bca Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Fri, 8 May 2020 10:55:35 +0200 Subject: [PATCH] [core] AntlrTokenizer.getCharStreamFromSourceCode is now public --- .../src/main/java/net/sourceforge/pmd/cpd/AntlrTokenizer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmd-core/src/main/java/net/sourceforge/pmd/cpd/AntlrTokenizer.java b/pmd-core/src/main/java/net/sourceforge/pmd/cpd/AntlrTokenizer.java index e7fe98ca92..79f70f7db6 100644 --- a/pmd-core/src/main/java/net/sourceforge/pmd/cpd/AntlrTokenizer.java +++ b/pmd-core/src/main/java/net/sourceforge/pmd/cpd/AntlrTokenizer.java @@ -53,7 +53,7 @@ public abstract class AntlrTokenizer implements Tokenizer { return new AntlrTokenFilter(tokenManager); } - public /* default */ static CharStream getCharStreamFromSourceCode(final SourceCode sourceCode) { + public static CharStream getCharStreamFromSourceCode(final SourceCode sourceCode) { StringBuilder buffer = sourceCode.getCodeBuffer(); return CharStreams.fromString(buffer.toString()); }