This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
antlr32/java8-compat.patch
2014-06-02 14:53:41 +01:00

11 lines
480 B
Diff

--- tool/src/main/java/org/antlr/tool/CompositeGrammar.java.orig 2014-05-30 00:12:33.360503545 +0100
+++ tool/src/main/java/org/antlr/tool/CompositeGrammar.java 2014-05-30 00:13:38.533423946 +0100
@@ -219,7 +219,7 @@
public List<Grammar> getIndirectDelegates(Grammar g) {
List<Grammar> direct = getDirectDelegates(g);
List<Grammar> delegates = getDelegates(g);
- delegates.removeAll(direct);
+ if ( direct!=null ) delegates.removeAll(direct);
return delegates;
}