"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/internal/atnmanager/LexerAtnManager.java" between
apache-groovy-src-3.0.8.zip and apache-groovy-src-3.0.9.zip

About: Groovy is an agile dynamic (scripting) language for the Java Platform. It has features similar to those of Python, Ruby, Perl, and Smalltalk. Source release.

LexerAtnManager.java  (apache-groovy-src-3.0.8):LexerAtnManager.java  (apache-groovy-src-3.0.9)
skipping to change at line 29 skipping to change at line 29
package org.apache.groovy.parser.antlr4.internal.atnmanager; package org.apache.groovy.parser.antlr4.internal.atnmanager;
import org.antlr.v4.runtime.atn.ATN; import org.antlr.v4.runtime.atn.ATN;
import org.apache.groovy.parser.antlr4.GroovyLangLexer; import org.apache.groovy.parser.antlr4.GroovyLangLexer;
import org.apache.groovy.util.SystemUtil; import org.apache.groovy.util.SystemUtil;
/** /**
* Manage ATN for lexer to avoid memory leak * Manage ATN for lexer to avoid memory leak
*/ */
public class LexerAtnManager extends AtnManager { public class LexerAtnManager extends AtnManager {
private static final String GROOVY_CLEAR_LEXER_DFA_CACHE = "groovy.clear.lex er.dfa.cache"; private static final String GROOVY_CLEAR_LEXER_DFA_CACHE = "groovy.antlr4.cl ear.lexer.dfa.cache";
private static final boolean TO_CLEAR_LEXER_DFA_CACHE; private static final boolean TO_CLEAR_LEXER_DFA_CACHE;
private final AtnWrapper lexerAtnWrapper = new AtnManager.AtnWrapper(GroovyL angLexer._ATN); private final AtnWrapper lexerAtnWrapper = new AtnManager.AtnWrapper(GroovyL angLexer._ATN);
public static final LexerAtnManager INSTANCE = new LexerAtnManager(); public static final LexerAtnManager INSTANCE = new LexerAtnManager();
static { static {
TO_CLEAR_LEXER_DFA_CACHE = SystemUtil.getBooleanSafe(GROOVY_CLEAR_LEXER_ DFA_CACHE); TO_CLEAR_LEXER_DFA_CACHE = SystemUtil.getBooleanSafe(GROOVY_CLEAR_LEXER_ DFA_CACHE);
} }
@Override @Override
public ATN getATN() { public ATN getATN() {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)