mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 13:32:24 +00:00
fixed/suppressed some warnings
This commit is contained in:
1 parent
4835e4c37c
commit
58f474dc4d
4 files changed
+5
-6
No files matched your search
@@ -44,6 +44,7 @@ import java.util.List;
|
||||
* @author Andrew Bayer
|
||||
*/
|
||||
public class ExtractChangeLogParser extends ChangeLogParser {
|
||||
@SuppressWarnings("rawtypes")
|
||||
@Override
|
||||
public ExtractChangeLogSet parse(AbstractBuild build, File changeLogFile) throws IOException, SAXException {
|
||||
if (changeLogFile.exists()) {
|
||||
@@ -56,6 +57,7 @@ public class ExtractChangeLogParser extends ChangeLogParser {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
public ExtractChangeLogSet parse(AbstractBuild build, InputStream changeLogStream) throws IOException, SAXException {
|
||||
|
||||
ArrayList<ExtractChangeLogEntry> changeLog = new ArrayList<ExtractChangeLogEntry>();
|
||||
|
||||
@@ -30,7 +30,6 @@ import hudson.model.BuildListener;
|
||||
import hudson.scm.NullSCM;
|
||||
import hudson.scm.SCM;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
@@ -70,7 +69,7 @@ public class ExtractResourceSCM extends NullSCM {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changeLogFile) throws IOException, InterruptedException {
|
||||
public boolean checkout(AbstractBuild<?,?> build, Launcher launcher, FilePath workspace, BuildListener listener, File changeLogFile) throws IOException, InterruptedException {
|
||||
if (workspace.exists()) {
|
||||
listener.getLogger().println("Deleting existing workspace " + workspace.getRemote());
|
||||
workspace.deleteRecursive();
|
||||
|
||||
@@ -75,7 +75,7 @@ public class ExtractResourceWithChangesSCM extends NullSCM {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changeLogFile) throws IOException, InterruptedException {
|
||||
public boolean checkout(AbstractBuild<?,?> build, Launcher launcher, FilePath workspace, BuildListener listener, File changeLogFile) throws IOException, InterruptedException {
|
||||
if (workspace.exists()) {
|
||||
listener.getLogger().println("Deleting existing workspace " + workspace.getRemote());
|
||||
workspace.deleteRecursive();
|
||||
|
||||
@@ -26,10 +26,8 @@ package org.jvnet.hudson.test;
|
||||
import hudson.FilePath;
|
||||
import hudson.Launcher;
|
||||
import hudson.model.AbstractBuild;
|
||||
import hudson.model.AbstractProject;
|
||||
import hudson.model.BuildListener;
|
||||
import hudson.model.InvisibleAction;
|
||||
import hudson.model.JobProperty;
|
||||
import hudson.model.User;
|
||||
import hudson.scm.ChangeLogParser;
|
||||
import hudson.scm.ChangeLogSet;
|
||||
@@ -39,7 +37,6 @@ import org.xml.sax.SAXException;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
@@ -86,6 +83,7 @@ public class FakeChangeLogSCM extends NullSCM {
|
||||
}
|
||||
|
||||
public static class FakeChangeLogParser extends ChangeLogParser {
|
||||
@SuppressWarnings("rawtypes")
|
||||
@Override
|
||||
public FakeChangeLogSet parse(AbstractBuild build, File changelogFile) throws IOException, SAXException {
|
||||
return new FakeChangeLogSet(build, build.getAction(ChangelogAction.class).entries);
|
||||
|
||||
Reference in new issue
Block a user