Don't crash on unmatched angle brackets in variable initializers

java.util.NoSuchElementException
	at java.util.ArrayDeque.removeLast(ArrayDeque.java:295)
	at com.google.turbine.parse.VariableInitializerParser.dropBracks(VariableInitializerParser.java:283)
	at com.google.turbine.parse.VariableInitializerParser.parseInitializers(VariableInitializerParser.java:130)
	at com.google.turbine.parse.Parser.fieldRest(Parser.java:828)
	at com.google.turbine.parse.Parser.memberRest(Parser.java:810)
	at com.google.turbine.parse.Parser.classMember(Parser.java:712)
	at com.google.turbine.parse.Parser.classMembers(Parser.java:619)
	at com.google.turbine.parse.Parser.classDeclaration(Parser.java:524)
	at com.google.turbine.parse.Parser.compilationUnit(Parser.java:166)
	at com.google.turbine.parse.Parser.parse(Parser.java:87)
	at com.google.turbine.parse.Parser.parse(Parser.java:83)

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=273818279
1 file changed
tree: 04177704c3dcc4bd36ea27e228d60460a912d548
  1. java/
  2. javatests/
  3. proto/
  4. .gitignore
  5. .travis.yml
  6. appveyor.yml
  7. LICENSE
  8. pom.xml
  9. README.md
README.md

Turbine

Turbine is a header compiler for Java.