Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
[JENKINS-34759] [JENKINS-34760] Use validateAnt* method rather than v…
…alidateFile*.
  • Loading branch information
uhafner committed May 18, 2016
1 parent a6e4ec5 commit 762294aaa171f556d50e219b49af1e75aea7213e
Showing with 3 additions and 7 deletions.
  1. +3 −7 src/main/java/hudson/plugins/warnings/WarningsDescriptor.java
@@ -2,26 +2,22 @@

import java.io.IOException;

import net.sf.json.JSONObject;

import org.kohsuke.stapler.Ancestor;
import org.kohsuke.stapler.AncestorInPath;
import org.kohsuke.stapler.QueryParameter;
import org.kohsuke.stapler.StaplerProxy;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;

import hudson.Extension;
import hudson.FilePath;
import net.sf.json.JSONObject;

import hudson.Extension;
import hudson.model.AbstractProject;

import hudson.plugins.analysis.core.NullBuildHistory;
import hudson.plugins.analysis.core.PluginDescriptor;
import hudson.plugins.analysis.graph.DefaultGraphConfigurationView;
import hudson.plugins.analysis.graph.GraphConfiguration;
import hudson.plugins.warnings.parser.ParserRegistry;

import hudson.util.CopyOnWriteList;
import hudson.util.FormValidation;

@@ -169,7 +165,7 @@ public FormValidation doCheckPattern(@AncestorInPath final AbstractProject<?, ?>
@QueryParameter final String pattern) throws IOException {
FormValidation required = FormValidation.validateRequired(pattern);
if (required.kind == FormValidation.Kind.OK) {
return FilePath.validateFileMask(project.getSomeWorkspace(), pattern);
return super.doCheckPattern(project, pattern);
}
else {
return required;

0 comments on commit 762294a

Please sign in to comment.