mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-29 04:25:23 +00:00
StringBuilder
This commit is contained in:
1 parent
a7ae9c3685
commit
5e0288b86b
5 files changed
+23
-18
No files matched your search
@@ -2730,12 +2730,12 @@ public final class FilePath implements SerializableOnlyOverRemoting {
|
||||
//
|
||||
// this is not a very efficient/clever way to do it, but it's relatively simple
|
||||
|
||||
String prefix="";
|
||||
StringBuilder prefix = new StringBuilder();
|
||||
while(true) {
|
||||
int idx = findSeparator(f);
|
||||
if(idx==-1) break;
|
||||
|
||||
prefix+=f.substring(0,idx)+'/';
|
||||
prefix.append(f.substring(0, idx)).append('/');
|
||||
f=f.substring(idx+1);
|
||||
if(hasMatch(dir,prefix+fileMask,caseSensitive))
|
||||
return Messages.FilePath_validateAntFileMask_doesntMatchAndSuggest(fileMask, prefix+fileMask);
|
||||
|
||||
Reference in new issue
Block a user