From a1d60a685b715d978f7adb095932424733bb8a26 Mon Sep 17 00:00:00 2001 From: "Ray J. Greenwell" Date: Fri, 30 Mar 2012 11:12:50 -0700 Subject: [PATCH] Use File.separatorChar where it makes sense. --- .../main/java/com/threerings/resource/ResourceManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/threerings/resource/ResourceManager.java b/core/src/main/java/com/threerings/resource/ResourceManager.java index e1d060f6..18773c83 100644 --- a/core/src/main/java/com/threerings/resource/ResourceManager.java +++ b/core/src/main/java/com/threerings/resource/ResourceManager.java @@ -407,8 +407,8 @@ public class ResourceManager if (_rdir == null) { return null; } - if (!"/".equals(File.separator)) { - path = path.replace("/", File.separator); + if ('/' != File.separatorChar) { + path = path.replace('/', File.separatorChar); } // first try a locale-specific file String localePath = getLocalePath(path);