Java 5: contains

This commit is contained in:
Josh Soref committed 2019-02-20 18:18:23 -05:00
1 parent c3fc2b70d0
commit b7e83565fd
1 file changed
+1 -1
+1 -1
View File
@@ -385,7 +385,7 @@ public final class FilePath implements Serializable {
return false;
// Windows can handle '/' as a path separator but Unix can't,
// so err on Unix side
return remote.indexOf("\\")==-1;
return !remote.contains("\\");
}
/**