-
- Downloads
Replace uses of StringBuffer in lexer/parser templates
StringBuffer is synchronized for thread safety, but Lexer is already not thread-safe anyway, so this is unnecessary overhead. The other uses of StringBuffer were local in a single method and so can also be safely replaced.
Showing
- src/main/java/org/sablecc/sablecc/lexer/Lexer.java 2 additions, 8 deletionssrc/main/java/org/sablecc/sablecc/lexer/Lexer.java
- src/main/java/org/sablecc/sablecc/parser/Parser.java 1 addition, 1 deletionsrc/main/java/org/sablecc/sablecc/parser/Parser.java
- src/main/resources/org/sablecc/sablecc/lexer.txt 2 additions, 8 deletionssrc/main/resources/org/sablecc/sablecc/lexer.txt
- src/main/resources/org/sablecc/sablecc/parser.txt 1 addition, 1 deletionsrc/main/resources/org/sablecc/sablecc/parser.txt
Loading
Please register or sign in to comment