summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2008-08-19 21:29:29 +0000
committeraclement <aclement>2008-08-19 21:29:29 +0000
commit231c548d64db8deffbe74b1b0f1ef7f4a448c9ac (patch)
tree5e634899df2d712f2b09812b83328adc73ad88ec
parent9b87ea9ff3ea63d6115cf93c2420c200d90566b3 (diff)
downloadaspectj-231c548d64db8deffbe74b1b0f1ef7f4a448c9ac.tar.gz
aspectj-231c548d64db8deffbe74b1b0f1ef7f4a448c9ac.zip
minor optimization
-rw-r--r--weaver/src/org/aspectj/weaver/patterns/BasicTokenSource.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/weaver/src/org/aspectj/weaver/patterns/BasicTokenSource.java b/weaver/src/org/aspectj/weaver/patterns/BasicTokenSource.java
index 392b6f933..37bc7eda1 100644
--- a/weaver/src/org/aspectj/weaver/patterns/BasicTokenSource.java
+++ b/weaver/src/org/aspectj/weaver/patterns/BasicTokenSource.java
@@ -164,8 +164,7 @@ public class BasicTokenSource implements ITokenSource {
}
private static String makeString(char ch) {
- // slightly inefficient ;-)
- return new String(new char[] {ch});
+ return Character.toString(ch);
}
private static String makeString(char ch, int count) {