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:
@@ -55,7 +55,7 @@ public class GenUtil
|
|||||||
} else {
|
} else {
|
||||||
Package pkg = clazz.getPackage();
|
Package pkg = clazz.getPackage();
|
||||||
int offset = (pkg == null) ? 0 : pkg.getName().length()+1;
|
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) {
|
} else if (type instanceof ParameterizedType) {
|
||||||
|
|||||||
@@ -301,7 +301,7 @@ public class Application
|
|||||||
path = path.substring(0, ldidx);
|
path = path.substring(0, ldidx);
|
||||||
}
|
}
|
||||||
// convert slashes to dots
|
// convert slashes to dots
|
||||||
path = path.replace("/", ".");
|
path = path.replace('/', '.');
|
||||||
// prepend the base logic package and we're all set
|
// prepend the base logic package and we're all set
|
||||||
return _logicPkg + path;
|
return _logicPkg + path;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user