Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
jenkins
提交
441bf1c2
J
jenkins
项目概览
xxadev
/
jenkins
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
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,发现更多精彩内容 >>
提交
441bf1c2
编写于
10月 17, 2016
作者:
J
Jesse Glick
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Placate the JDK 9 compiler.
上级
6cad6735
变更
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
浏览文件 @
441bf1c2
...
@@ -698,7 +698,7 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
...
@@ -698,7 +698,7 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
@Exported
(
name
=
"allBuilds"
,
visibility
=-
2
)
@Exported
(
name
=
"allBuilds"
,
visibility
=-
2
)
@WithBridgeMethods
(
List
.
class
)
@WithBridgeMethods
(
List
.
class
)
public
RunList
<
RunT
>
getBuilds
()
{
public
RunList
<
RunT
>
getBuilds
()
{
return
RunList
.
fromRuns
(
_getRuns
().
values
());
return
RunList
.
<
RunT
>
fromRuns
(
_getRuns
().
values
());
}
}
/**
/**
...
@@ -730,7 +730,7 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
...
@@ -730,7 +730,7 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
* Gets all the builds in a map.
* Gets all the builds in a map.
*/
*/
public
SortedMap
<
Integer
,
RunT
>
getBuildsAsMap
()
{
public
SortedMap
<
Integer
,
RunT
>
getBuildsAsMap
()
{
return
Collections
.
unmodifiableSortedMap
(
_getRuns
());
return
Collections
.
<
Integer
,
RunT
>
unmodifiableSortedMap
(
_getRuns
());
}
}
/**
/**
...
...
core/src/main/java/hudson/model/ParametersAction.java
浏览文件 @
441bf1c2
...
@@ -50,7 +50,7 @@ import java.util.TreeSet;
...
@@ -50,7 +50,7 @@ import java.util.TreeSet;
import
java.util.logging.Level
;
import
java.util.logging.Level
;
import
java.util.logging.Logger
;
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
static
com
.
google
.
common
.
collect
.
Sets
.
newHashSet
;
import
javax.annotation.CheckForNull
;
import
javax.annotation.CheckForNull
;
import
javax.annotation.Nonnull
;
import
javax.annotation.Nonnull
;
...
@@ -169,7 +169,7 @@ public class ParametersAction implements RunAction2, Iterable<ParameterValue>, Q
...
@@ -169,7 +169,7 @@ public class ParametersAction implements RunAction2, Iterable<ParameterValue>, Q
@Exported
(
visibility
=
2
)
@Exported
(
visibility
=
2
)
public
List
<
ParameterValue
>
getParameters
()
{
public
List
<
ParameterValue
>
getParameters
()
{
return
Collections
.
unmodifiableList
(
filter
(
parameters
));
return
Collections
.
<
ParameterValue
>
unmodifiableList
(
filter
(
parameters
));
}
}
public
ParameterValue
getParameter
(
String
name
)
{
public
ParameterValue
getParameter
(
String
name
)
{
...
@@ -231,7 +231,7 @@ public class ParametersAction implements RunAction2, Iterable<ParameterValue>, Q
...
@@ -231,7 +231,7 @@ public class ParametersAction implements RunAction2, Iterable<ParameterValue>, Q
parametersAction
.
safeParameters
=
this
.
safeParameters
;
parametersAction
.
safeParameters
=
this
.
safeParameters
;
return
parametersAction
;
return
parametersAction
;
}
}
List
<
ParameterValue
>
combinedParameters
=
newArrayList
(
overrides
);
List
<
ParameterValue
>
combinedParameters
=
Lists
.<
ParameterValue
>
newArrayList
(
overrides
);
Set
<
String
>
names
=
newHashSet
();
Set
<
String
>
names
=
newHashSet
();
for
(
ParameterValue
v
:
overrides
)
{
for
(
ParameterValue
v
:
overrides
)
{
...
...
core/src/main/java/hudson/tools/ToolDescriptor.java
浏览文件 @
441bf1c2
...
@@ -100,7 +100,7 @@ public abstract class ToolDescriptor<T extends ToolInstallation> extends Descrip
...
@@ -100,7 +100,7 @@ public abstract class ToolDescriptor<T extends ToolInstallation> extends Descrip
* Lists up {@link ToolPropertyDescriptor}s that are applicable to this {@link ToolInstallation}.
* Lists up {@link ToolPropertyDescriptor}s that are applicable to this {@link ToolInstallation}.
*/
*/
public
List
<
ToolPropertyDescriptor
>
getPropertyDescriptors
()
{
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
浏览文件 @
441bf1c2
...
@@ -143,7 +143,7 @@ public class CopyOnWriteList<E> implements Iterable<E> {
...
@@ -143,7 +143,7 @@ public class CopyOnWriteList<E> implements Iterable<E> {
}
}
public
List
<
E
>
getView
()
{
public
List
<
E
>
getView
()
{
return
Collections
.
unmodifiableList
(
core
);
return
Collections
.
<
E
>
unmodifiableList
(
core
);
}
}
public
void
addAllTo
(
Collection
<?
super
E
>
dst
)
{
public
void
addAllTo
(
Collection
<?
super
E
>
dst
)
{
...
...
core/src/main/java/hudson/util/Iterators.java
浏览文件 @
441bf1c2
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
package
hudson.util
;
package
hudson.util
;
import
com.google.common.base.Predicates
;
import
com.google.common.base.Predicates
;
import
com.google.common.collect.ImmutableList
;
import
java.util.Collections
;
import
java.util.Collections
;
import
java.util.Iterator
;
import
java.util.Iterator
;
...
@@ -314,12 +315,13 @@ public class Iterators {
...
@@ -314,12 +315,13 @@ public class Iterators {
* <p>
* <p>
* That is, this creates {A,B,C,D} from {A,B},{C,D}.
* 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
)
{
public
static
<
T
>
Iterable
<
T
>
sequence
(
final
Iterable
<?
extends
T
>...
iterables
)
{
return
new
Iterable
<
T
>()
{
return
new
Iterable
<
T
>()
{
public
Iterator
<
T
>
iterator
()
{
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
)
{
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 {
...
@@ -350,8 +352,9 @@ public class Iterators {
};
};
}
}
@SafeVarargs
public
static
<
T
>
Iterator
<
T
>
sequence
(
Iterator
<?
extends
T
>...
iterators
)
{
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
浏览文件 @
441bf1c2
...
@@ -43,7 +43,7 @@ public class InterruptedBuildAction extends InvisibleAction {
...
@@ -43,7 +43,7 @@ public class InterruptedBuildAction extends InvisibleAction {
private
final
List
<
CauseOfInterruption
>
causes
;
private
final
List
<
CauseOfInterruption
>
causes
;
public
InterruptedBuildAction
(
Collection
<?
extends
CauseOfInterruption
>
causes
)
{
public
InterruptedBuildAction
(
Collection
<?
extends
CauseOfInterruption
>
causes
)
{
this
.
causes
=
ImmutableList
.
copyOf
(
causes
);
this
.
causes
=
ImmutableList
.
<
CauseOfInterruption
>
copyOf
(
causes
);
}
}
@Exported
@Exported
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录