Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
[JENKINS-34759] [JENKINS-34760] Use validateAnt* method rather than v…
Browse files Browse the repository at this point in the history
…alidateFile*.
  • Loading branch information
uhafner committed May 18, 2016
1 parent a6e4ec5 commit 762294a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/main/java/hudson/plugins/warnings/WarningsDescriptor.java
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 762294a

Please sign in to comment.