提交 afb12404 编写于 作者: K kohsuke

no need to double-wrap

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16224 71c3de6d-444a-0410-be80-ed276b4c234a
上级 7a5775ca
......@@ -137,12 +137,12 @@ public class EnvVars extends TreeMap<String,String> {
public static EnvVars getRemote(VirtualChannel channel) throws IOException, InterruptedException {
if(channel==null)
return new EnvVars("N/A","N/A");
return new EnvVars(channel.call(new GetEnvVars()));
return channel.call(new GetEnvVars());
}
private static final class GetEnvVars implements Callable<Map<String,String>,RuntimeException> {
public Map<String,String> call() {
return new TreeMap<String,String>(EnvVars.masterEnvVars);
private static final class GetEnvVars implements Callable<EnvVars,RuntimeException> {
public EnvVars call() {
return new EnvVars(EnvVars.masterEnvVars);
}
private static final long serialVersionUID = 1L;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册