mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-29 20:45:20 +00:00
@CheckForNull
This commit is contained in:
1 parent
c7a236ca1b
commit
7076f0de7e
2 files changed
+4
-4
No files matched your search
@@ -2316,9 +2316,9 @@ public final class FilePath implements Serializable {
|
||||
/**
|
||||
* Shortcut for {@link #validateFileMask(String)} in case the left-hand side can be null.
|
||||
*/
|
||||
public static FormValidation validateFileMask(FilePath pathOrNull, String value) throws IOException {
|
||||
if(pathOrNull==null) return FormValidation.ok();
|
||||
return pathOrNull.validateFileMask(value);
|
||||
public static FormValidation validateFileMask(@CheckForNull FilePath path, String value) throws IOException {
|
||||
if(path==null) return FormValidation.ok();
|
||||
return path.validateFileMask(value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user