提交 2b5c3a1b 编写于 作者: C Christoph Kutzinski

added serialVersionUIDs

上级 b0f663f3
......@@ -80,6 +80,7 @@ import java.util.logging.Logger;
*
* @author Kohsuke Kawaguchi
*/
@SuppressWarnings("deprecation") // as we're restricted to Maven 2.x API here, but compile against Maven 3.x we cannot avoid deprecations
public class MavenBuild extends AbstractMavenBuild<MavenModule,MavenBuild> {
/**
* {@link MavenReporter}s that will contribute project actions.
......@@ -389,6 +390,8 @@ public class MavenBuild extends AbstractMavenBuild<MavenModule,MavenBuild> {
* {@link MavenBuildProxy} implementation.
*/
class ProxyImpl implements MavenBuildProxy, Serializable {
private static final long serialVersionUID = 8865133776526671879L;
public <V, T extends Throwable> V execute(BuildCallable<V, T> program) throws T, IOException, InterruptedException {
return program.call(MavenBuild.this);
}
......@@ -464,6 +467,8 @@ public class MavenBuild extends AbstractMavenBuild<MavenModule,MavenBuild> {
}
public class ProxyImpl2 extends ProxyImpl implements MavenBuildProxy2 {
private static final long serialVersionUID = -3377221864644014218L;
private final SplittableBuildListener listener;
long startTime;
private final OutputStream log;
......
......@@ -28,6 +28,7 @@ import java.io.Serializable;
*/
public class MavenBuildInformation implements Serializable {
private static final long serialVersionUID = -3719709179508200057L;
private String mavenVersion;
public MavenBuildInformation(String mavenVersion) {
......
......@@ -55,6 +55,8 @@ public interface MavenBuildProxy2 extends MavenBuildProxy {
* Meant to be useful as the base class for other filters.
*/
/*package*/ static abstract class Filter<CORE extends MavenBuildProxy2> extends MavenBuildProxy.Filter<CORE> implements MavenBuildProxy2 {
private static final long serialVersionUID = -1208416744028858844L;
protected Filter(CORE core) {
super(core);
}
......
......@@ -199,6 +199,7 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
*/
/*package*/ List<ChangeLogSet.Entry> getChangeSetFor(final MavenModule mod) {
return new ArrayList<ChangeLogSet.Entry>() {
private static final long serialVersionUID = 5572368347535713298L;
{
// modules that are under 'mod'. lazily computed
List<MavenModule> subsidiaries = null;
......
......@@ -96,6 +96,9 @@ import java.util.Collections;
* @see MavenReporters
*/
public abstract class MavenReporter implements Describable<MavenReporter>, ExtensionPoint, Serializable, MavenProjectActionBuilder {
private static final long serialVersionUID = 7987776766278437534L;
/**
* Called before the actual maven2 execution begins.
*
......
......@@ -41,6 +41,7 @@ import org.kohsuke.stapler.framework.io.IOException2;
public class MavenVersionCallable
implements Callable<MavenInformation, IOException>
{
private static final long serialVersionUID = -2644951622080930034L;
private final String mavenHome;
......
......@@ -306,6 +306,8 @@ public class RedeployPublisher extends Recorder {
}
private static final class GetUserHome implements Callable<String,IOException> {
private static final long serialVersionUID = -8755705771716056636L;
public String call() throws IOException {
return System.getProperty("user.home");
}
......
......@@ -63,6 +63,8 @@ public class BuildInfoRecorder extends MavenReporter {
// touch <archive><manifestEntries><Build-Numer>#n
Map<String,String> props = build.execute(new BuildCallable<Map<String,String>,IOException>() {
private static final long serialVersionUID = 7810179928341972415L;
public Map<String,String> call(MavenBuild build) throws IOException, InterruptedException {
Map<String,String> r = new HashMap<String, String>();
// leave Hudson for backward comp
......
......@@ -115,7 +115,7 @@ public class MavenArtifactArchiver extends MavenReporter {
// record attached artifacts
final List<MavenArtifact> attachedArtifacts = new ArrayList<MavenArtifact>();
for (Artifact a : (List<Artifact>) pom.getAttachedArtifacts()) {
for (Artifact a : pom.getAttachedArtifacts()) {
MavenArtifact ma = MavenArtifact.create(a);
if (ma != null) {
mavenArtifacts.add(a.getFile());
......@@ -126,6 +126,8 @@ public class MavenArtifactArchiver extends MavenReporter {
// record the action
build.executeAsync(new MavenBuildProxy.BuildCallable<Void, IOException>() {
private static final long serialVersionUID = -7955474564875700905L;
public Void call(MavenBuild build) throws IOException, InterruptedException {
// if a build forks lifecycles, this method can be called multiple times
List<MavenArtifactRecord> old = build.getActions(MavenArtifactRecord.class);
......
......@@ -94,6 +94,8 @@ public class MavenFingerprinter extends MavenReporter {
*/
public boolean postBuild(MavenBuildProxy build, MavenProject pom, BuildListener listener) throws InterruptedException, IOException {
build.executeAsync(new BuildCallable<Void,IOException>() {
private static final long serialVersionUID = -1360161848504044869L;
// record is transient, so needs to make a copy first
private final Map<String,String> u = used;
private final Map<String,String> p = produced;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册