mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-02 22:55:53 +00:00
Java 5: contains
This commit is contained in:
1 parent
c3fc2b70d0
commit
b7e83565fd
1 file changed
+1
-1
@@ -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("\\");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user