File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
common/src/main/java/org/embeddedt/modernfix/resources Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 11package org .embeddedt .modernfix .resources ;
22
3+ import com .google .common .base .Joiner ;
34import com .google .common .base .Stopwatch ;
45import com .google .common .collect .ImmutableList ;
56import com .google .common .collect .ImmutableMap ;
2829 * drop.
2930 */
3031public class PackResourcesCacheEngine {
32+ private static final Joiner SLASH_JOINER = Joiner .on ('/' );
33+
3134 private final Map <PackType , Set <String >> namespacesByType ;
3235 private final Set <CachedResourcePath > containedPaths ;
3336 private final EnumMap <PackType , Map <String , List <CachedResourcePath >>> resourceListings ;
@@ -88,7 +91,7 @@ private static boolean isValidCachedResourcePath(Path path) {
8891 if (path .getFileName () == null || path .getNameCount () == 0 ) {
8992 return false ;
9093 }
91- String str = path . toString ( );
94+ String str = SLASH_JOINER . join ( path );
9295 if (str .length () == 0 )
9396 return false ;
9497 for (int i = 0 ; i < str .length (); i ++) {
You can’t perform that action at this time.
0 commit comments