Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
LinuxSuRen
jenkins
提交
bedf304c
J
jenkins
项目概览
LinuxSuRen
/
jenkins
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jenkins
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bedf304c
编写于
12月 21, 2016
作者:
J
Jesse Glick
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'security-stable-1.625' into SECURITY-353
上级
b561ca56
2c1c1ece
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
14 addition
and
11 deletion
+14
-11
core/src/main/java/hudson/model/Job.java
core/src/main/java/hudson/model/Job.java
+2
-2
core/src/main/java/hudson/model/ParametersAction.java
core/src/main/java/hudson/model/ParametersAction.java
+3
-3
core/src/main/java/hudson/tools/ToolDescriptor.java
core/src/main/java/hudson/tools/ToolDescriptor.java
+1
-1
core/src/main/java/hudson/util/CopyOnWriteList.java
core/src/main/java/hudson/util/CopyOnWriteList.java
+1
-1
core/src/main/java/hudson/util/Iterators.java
core/src/main/java/hudson/util/Iterators.java
+6
-3
core/src/main/java/jenkins/model/InterruptedBuildAction.java
core/src/main/java/jenkins/model/InterruptedBuildAction.java
+1
-1
未找到文件。
core/src/main/java/hudson/model/Job.java
浏览文件 @
bedf304c
...
...
@@ -680,7 +680,7 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
@Exported
(
name
=
"allBuilds"
,
visibility
=-
2
)
@WithBridgeMethods
(
List
.
class
)
public
RunList
<
RunT
>
getBuilds
()
{
return
RunList
.
fromRuns
(
_getRuns
().
values
());
return
RunList
.
<
RunT
>
fromRuns
(
_getRuns
().
values
());
}
/**
...
...
@@ -712,7 +712,7 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
* Gets all the builds in a map.
*/
public
SortedMap
<
Integer
,
RunT
>
getBuildsAsMap
()
{
return
Collections
.
unmodifiableSortedMap
(
_getRuns
());
return
Collections
.
<
Integer
,
RunT
>
unmodifiableSortedMap
(
_getRuns
());
}
/**
...
...
core/src/main/java/hudson/model/ParametersAction.java
浏览文件 @
bedf304c
...
...
@@ -49,7 +49,7 @@ import java.util.Set;
import
java.util.logging.Level
;
import
java.util.logging.Logger
;
import
static
com
.
google
.
common
.
collect
.
Lists
.
newArrayList
;
import
com.google.common.collect.Lists
;
import
static
com
.
google
.
common
.
collect
.
Sets
.
newHashSet
;
import
javax.annotation.CheckForNull
;
import
javax.annotation.Nonnull
;
...
...
@@ -144,7 +144,7 @@ public class ParametersAction implements RunAction2, Iterable<ParameterValue>, Q
@Exported
(
visibility
=
2
)
public
List
<
ParameterValue
>
getParameters
()
{
return
Collections
.
unmodifiableList
(
filter
(
parameters
));
return
Collections
.
<
ParameterValue
>
unmodifiableList
(
filter
(
parameters
));
}
public
ParameterValue
getParameter
(
String
name
)
{
...
...
@@ -204,7 +204,7 @@ public class ParametersAction implements RunAction2, Iterable<ParameterValue>, Q
if
(
overrides
==
null
)
{
return
new
ParametersAction
(
parameters
);
}
List
<
ParameterValue
>
combinedParameters
=
newArrayList
(
overrides
);
List
<
ParameterValue
>
combinedParameters
=
Lists
.<
ParameterValue
>
newArrayList
(
overrides
);
Set
<
String
>
names
=
newHashSet
();
for
(
ParameterValue
v
:
overrides
)
{
...
...
core/src/main/java/hudson/tools/ToolDescriptor.java
浏览文件 @
bedf304c
...
...
@@ -86,7 +86,7 @@ public abstract class ToolDescriptor<T extends ToolInstallation> extends Descrip
* Lists up {@link ToolPropertyDescriptor}s that are applicable to this {@link ToolInstallation}.
*/
public
List
<
ToolPropertyDescriptor
>
getPropertyDescriptors
()
{
return
PropertyDescriptor
.
for_
(
ToolProperty
.
all
(),
clazz
);
return
PropertyDescriptor
.
<
ToolPropertyDescriptor
,
ToolInstallation
>
for_
(
ToolProperty
.
all
(),
clazz
);
}
/**
...
...
core/src/main/java/hudson/util/CopyOnWriteList.java
浏览文件 @
bedf304c
...
...
@@ -143,7 +143,7 @@ public class CopyOnWriteList<E> implements Iterable<E> {
}
public
List
<
E
>
getView
()
{
return
Collections
.
unmodifiableList
(
core
);
return
Collections
.
<
E
>
unmodifiableList
(
core
);
}
public
void
addAllTo
(
Collection
<?
super
E
>
dst
)
{
...
...
core/src/main/java/hudson/util/Iterators.java
浏览文件 @
bedf304c
...
...
@@ -24,6 +24,7 @@
package
hudson.util
;
import
com.google.common.base.Predicates
;
import
com.google.common.collect.ImmutableList
;
import
java.util.Collections
;
import
java.util.Iterator
;
...
...
@@ -314,12 +315,13 @@ public class Iterators {
* <p>
* That is, this creates {A,B,C,D} from {A,B},{C,D}.
*/
@SafeVarargs
public
static
<
T
>
Iterable
<
T
>
sequence
(
final
Iterable
<?
extends
T
>...
iterables
)
{
return
new
Iterable
<
T
>()
{
public
Iterator
<
T
>
iterator
()
{
return
new
FlattenIterator
<
T
,
Iterable
<?
extends
T
>>(
Arrays
.
asList
(
iterables
))
{
return
new
FlattenIterator
<
T
,
Iterable
<?
extends
T
>>(
ImmutableList
.
copyOf
(
iterables
))
{
protected
Iterator
<
T
>
expand
(
Iterable
<?
extends
T
>
iterable
)
{
return
cast
(
iterable
).
iterator
();
return
Iterators
.<
T
>
cast
(
iterable
).
iterator
();
}
};
}
...
...
@@ -350,8 +352,9 @@ public class Iterators {
};
}
@SafeVarargs
public
static
<
T
>
Iterator
<
T
>
sequence
(
Iterator
<?
extends
T
>...
iterators
)
{
return
com
.
google
.
common
.
collect
.
Iterators
.
concat
(
iterators
);
return
com
.
google
.
common
.
collect
.
Iterators
.
<
T
>
concat
(
iterators
);
}
/**
...
...
core/src/main/java/jenkins/model/InterruptedBuildAction.java
浏览文件 @
bedf304c
...
...
@@ -43,7 +43,7 @@ public class InterruptedBuildAction extends InvisibleAction {
private
final
List
<
CauseOfInterruption
>
causes
;
public
InterruptedBuildAction
(
Collection
<?
extends
CauseOfInterruption
>
causes
)
{
this
.
causes
=
ImmutableList
.
copyOf
(
causes
);
this
.
causes
=
ImmutableList
.
<
CauseOfInterruption
>
copyOf
(
causes
);
}
@Exported
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录