Use the char version of String.replace when possible.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2797 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
ray.j.greenwell
2010-07-13 00:56:07 +00:00
parent ca1141f3ca
commit 1f9786d291
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ public class GenUtil
} else {
Package pkg = clazz.getPackage();
int offset = (pkg == null) ? 0 : pkg.getName().length()+1;
return clazz.getName().substring(offset).replace("$", ".");
return clazz.getName().substring(offset).replace('$', '.');
}
} else if (type instanceof ParameterizedType) {
@@ -301,7 +301,7 @@ public class Application
path = path.substring(0, ldidx);
}
// convert slashes to dots
path = path.replace("/", ".");
path = path.replace('/', '.');
// prepend the base logic package and we're all set
return _logicPkg + path;
}