aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/compiler/Lex.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/compiler/Lex.java')
-rw-r--r--src/main/javassist/compiler/Lex.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/javassist/compiler/Lex.java b/src/main/javassist/compiler/Lex.java
index 498b22fb..b7c39a98 100644
--- a/src/main/javassist/compiler/Lex.java
+++ b/src/main/javassist/compiler/Lex.java
@@ -27,7 +27,7 @@ class Token {
public class Lex implements TokenId {
private int lastChar;
- private StringBuffer textBuffer;
+ private StringBuilder textBuffer;
private Token currentToken;
private Token lookAheadTokens;
@@ -40,7 +40,7 @@ public class Lex implements TokenId {
*/
public Lex(String s) {
lastChar = -1;
- textBuffer = new StringBuffer();
+ textBuffer = new StringBuilder();
currentToken = new Token();
lookAheadTokens = null;
@@ -123,7 +123,7 @@ public class Lex implements TokenId {
else if(c == '.'){
c = getc();
if ('0' <= c && c <= '9') {
- StringBuffer tbuf = textBuffer;
+ StringBuilder tbuf = textBuffer;
tbuf.setLength(0);
tbuf.append('.');
return readDouble(tbuf, c, token);
@@ -205,7 +205,7 @@ public class Lex implements TokenId {
private int readStringL(Token token) {
int c;
- StringBuffer tbuf = textBuffer;
+ StringBuilder tbuf = textBuffer;
tbuf.setLength(0);
for (;;) {
while ((c = getc()) != '"') {
@@ -287,7 +287,7 @@ public class Lex implements TokenId {
}
else if (c2 == 'E' || c2 == 'e'
|| c2 == 'D' || c2 == 'd' || c2 == '.') {
- StringBuffer tbuf = textBuffer;
+ StringBuilder tbuf = textBuffer;
tbuf.setLength(0);
tbuf.append(value);
return readDouble(tbuf, c2, token);
@@ -300,7 +300,7 @@ public class Lex implements TokenId {
}
}
- private int readDouble(StringBuffer sbuf, int c, Token token) {
+ private int readDouble(StringBuilder sbuf, int c, Token token) {
if (c != 'E' && c != 'e' && c != 'D' && c != 'd') {
sbuf.append((char)c);
for (;;) {
@@ -412,7 +412,7 @@ public class Lex implements TokenId {
}
private int readIdentifier(int c, Token token) {
- StringBuffer tbuf = textBuffer;
+ StringBuilder tbuf = textBuffer;
tbuf.setLength(0);
do {