Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 1608e20

Browse files
remove unused imports and fix validation bug (#375)
1 parent ab4d32d commit 1608e20

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/main/java/com/mathworks/ci/tools/MatlabInstaller.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,19 @@
2525
import hudson.util.ArgumentListBuilder;
2626
import hudson.util.FormValidation;
2727

28-
import java.io.BufferedReader;
2928
import java.io.IOException;
30-
import java.io.InputStreamReader;
3129
import java.net.URL;
3230

3331
import java.nio.charset.StandardCharsets;
3432

35-
import java.util.Arrays;
36-
import java.util.HashSet;
3733
import java.util.Locale;
3834

39-
import java.util.Set;
4035
import jenkins.model.Jenkins;
4136
import org.apache.commons.io.IOUtils;
4237

4338
import org.kohsuke.stapler.DataBoundConstructor;
4439
import org.kohsuke.stapler.DataBoundSetter;
4540
import org.kohsuke.stapler.QueryParameter;
46-
import org.kohsuke.stapler.verb.POST;
4741

4842
public class MatlabInstaller extends ToolInstaller {
4943

@@ -250,7 +244,6 @@ public boolean isApplicable(Class<? extends ToolInstallation> toolType) {
250244
return toolType == MatlabInstallation.class;
251245
}
252246

253-
@POST
254247
public FormValidation doCheckRelease(@QueryParameter String value) {
255248
Jenkins.get().checkPermission(Jenkins.ADMINISTER);
256249
if (value.isEmpty()) {

0 commit comments

Comments
 (0)