@@ -359,13 +359,13 @@ public static List<SourceFile> fromZipFile(String zipName, Charset inputCharset)
359
359
private static final String JAR_URL_PREFIX = "jar:file:" ;
360
360
361
361
private static boolean isZipEntry (String path ) {
362
- return path .contains (".zip!" + File .separatorChar ) && (path .endsWith (".js" ) || path .endsWith (".js.map" ));
362
+ return path .contains (".zip!" + File .separator ) && (path .endsWith (".js" ) || path .endsWith (".js.map" ));
363
363
}
364
364
365
365
@ GwtIncompatible ("java.io.File" )
366
366
private static SourceFile fromZipEntry (String zipURL , Charset inputCharset ) {
367
367
checkArgument (isZipEntry (zipURL ));
368
- String [] components = zipURL .split (Pattern .quote (BANG_SLASH .replace ('/' , File .separatorChar )));
368
+ String [] components = zipURL .split (Pattern .quote (BANG_SLASH .replace ("/" , File .separator )));
369
369
try {
370
370
String zipPath = components [0 ];
371
371
String relativePath = components [1 ];
@@ -379,7 +379,7 @@ private static SourceFile fromZipEntry(String zipURL, Charset inputCharset) {
379
379
public static SourceFile fromZipEntry (
380
380
String originalZipPath , String absoluteZipPath , String entryPath , Charset inputCharset )
381
381
throws MalformedURLException {
382
- String zipEntryPath = JAR_URL_PREFIX + absoluteZipPath + BANG_SLASH + entryPath .replace (File .pathSeparatorChar , '/' );
382
+ String zipEntryPath = JAR_URL_PREFIX + absoluteZipPath + BANG_SLASH + entryPath .replace (File .pathSeparator , "/" );
383
383
URL zipEntryUrl = new URL (zipEntryPath );
384
384
385
385
return builder ()
0 commit comments