Switched from annotation based scheme to a function based scheme.

This commit is contained in:
Kohsuke Kawaguchi committed 2014-09-23 19:12:43 -07:00
1 parent 59456c734a
commit ffb5b65093
44 files changed
+247 -251

No files matched your search

+2 -3
View File
@@ -26,7 +26,7 @@ package hudson;
import hudson.remoting.Callable;
import hudson.remoting.VirtualChannel;
import hudson.util.CaseInsensitiveComparator;
import jenkins.security.MasterToSlave;
import jenkins.security.MasterToSlaveCallable;
import java.io.File;
import java.io.IOException;
@@ -213,8 +213,7 @@ public class EnvVars extends TreeMap<String,String> {
return channel.call(new GetEnvVars());
}
@MasterToSlave
private static final class GetEnvVars implements Callable<EnvVars,RuntimeException> {
private static final class GetEnvVars extends MasterToSlaveCallable<EnvVars,RuntimeException> {
public EnvVars call() {
return new EnvVars(EnvVars.masterEnvVars);
}