diff options
author | Shigeru Chiba <chibash@users.noreply.github.com> | 2022-05-13 02:45:42 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-13 02:45:42 +0900 |
commit | 8fc31b8ea3eaadd4f8e80fa06208cbf19e991b3c (patch) | |
tree | c678631763bf4862e26845edb0ddbdb0b5f11002 /src/main/javassist/ClassPoolTail.java | |
parent | df3f4b7641d39558465a17514bffce657f2a27da (diff) | |
parent | 0827c539b765d73c952bb56454f7dd3faf2b0879 (diff) | |
download | javassist-8fc31b8ea3eaadd4f8e80fa06208cbf19e991b3c.tar.gz javassist-8fc31b8ea3eaadd4f8e80fa06208cbf19e991b3c.zip |
Merge pull request #382 from tim-hoffman/PR_RemoveStringBuffer
Replace StringBuffer with StringBuilder, other minor String optimizations
Diffstat (limited to 'src/main/javassist/ClassPoolTail.java')
-rw-r--r-- | src/main/javassist/ClassPoolTail.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/javassist/ClassPoolTail.java b/src/main/javassist/ClassPoolTail.java index 1aa948f7..d86cd768 100644 --- a/src/main/javassist/ClassPoolTail.java +++ b/src/main/javassist/ClassPoolTail.java @@ -54,7 +54,7 @@ final class DirClassPath implements ClassPath { char sep = File.separatorChar; String filename = directory + sep + classname.replace('.', sep) + ".class"; - return new FileInputStream(filename.toString()); + return new FileInputStream(filename); } catch (FileNotFoundException e) {} catch (SecurityException e) {} @@ -187,7 +187,7 @@ final class JarClassPath implements ClassPath { @Override public String toString() { - return jarfileURL == null ? "<null>" : jarfileURL.toString(); + return jarfileURL == null ? "<null>" : jarfileURL; } } @@ -200,7 +200,7 @@ final class ClassPoolTail { @Override public String toString() { - StringBuffer buf = new StringBuffer(); + StringBuilder buf = new StringBuilder(); buf.append("[class path: "); ClassPathList list = pathList; while (list != null) { |