Use File.separatorChar where it makes sense.
This commit is contained in:
@@ -407,8 +407,8 @@ public class ResourceManager
|
|||||||
if (_rdir == null) {
|
if (_rdir == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (!"/".equals(File.separator)) {
|
if ('/' != File.separatorChar) {
|
||||||
path = path.replace("/", File.separator);
|
path = path.replace('/', File.separatorChar);
|
||||||
}
|
}
|
||||||
// first try a locale-specific file
|
// first try a locale-specific file
|
||||||
String localePath = getLocalePath(path);
|
String localePath = getLocalePath(path);
|
||||||
|
|||||||
Reference in New Issue
Block a user