Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
野花太放肆
jenkins
提交
1709ed3a
J
jenkins
项目概览
野花太放肆
/
jenkins
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
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,发现更多精彩内容 >>
提交
1709ed3a
编写于
4月 15, 2015
作者:
D
David Hoover
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add @Deprecated annotations to things documented as @deprecated.
上级
d7f83ec2
变更
138
展开全部
隐藏空白更改
内联
并排
Showing
138 changed file
with
373 addition
and
3 deletion
+373
-3
cli/src/main/java/hudson/cli/CLI.java
cli/src/main/java/hudson/cli/CLI.java
+2
-0
core/src/main/java/hudson/DescriptorExtensionList.java
core/src/main/java/hudson/DescriptorExtensionList.java
+2
-0
core/src/main/java/hudson/ExtensionFinder.java
core/src/main/java/hudson/ExtensionFinder.java
+1
-0
core/src/main/java/hudson/ExtensionList.java
core/src/main/java/hudson/ExtensionList.java
+5
-0
core/src/main/java/hudson/FilePath.java
core/src/main/java/hudson/FilePath.java
+3
-0
core/src/main/java/hudson/FileSystemProvisioner.java
core/src/main/java/hudson/FileSystemProvisioner.java
+1
-0
core/src/main/java/hudson/Functions.java
core/src/main/java/hudson/Functions.java
+3
-0
core/src/main/java/hudson/Launcher.java
core/src/main/java/hudson/Launcher.java
+13
-0
core/src/main/java/hudson/MarkupText.java
core/src/main/java/hudson/MarkupText.java
+1
-0
core/src/main/java/hudson/Plugin.java
core/src/main/java/hudson/Plugin.java
+1
-0
core/src/main/java/hudson/PluginManager.java
core/src/main/java/hudson/PluginManager.java
+1
-0
core/src/main/java/hudson/Proc.java
core/src/main/java/hudson/Proc.java
+1
-0
core/src/main/java/hudson/ProxyConfiguration.java
core/src/main/java/hudson/ProxyConfiguration.java
+1
-0
core/src/main/java/hudson/StructuredForm.java
core/src/main/java/hudson/StructuredForm.java
+1
-0
core/src/main/java/hudson/UDPBroadcastThread.java
core/src/main/java/hudson/UDPBroadcastThread.java
+1
-0
core/src/main/java/hudson/Util.java
core/src/main/java/hudson/Util.java
+2
-0
core/src/main/java/hudson/cli/CliProtocol.java
core/src/main/java/hudson/cli/CliProtocol.java
+1
-0
core/src/main/java/hudson/cli/CliProtocol2.java
core/src/main/java/hudson/cli/CliProtocol2.java
+1
-0
core/src/main/java/hudson/model/AbstractBuild.java
core/src/main/java/hudson/model/AbstractBuild.java
+6
-0
core/src/main/java/hudson/model/AbstractCIBase.java
core/src/main/java/hudson/model/AbstractCIBase.java
+2
-1
core/src/main/java/hudson/model/AbstractItem.java
core/src/main/java/hudson/model/AbstractItem.java
+1
-0
core/src/main/java/hudson/model/AbstractModelObject.java
core/src/main/java/hudson/model/AbstractModelObject.java
+1
-0
core/src/main/java/hudson/model/AbstractProject.java
core/src/main/java/hudson/model/AbstractProject.java
+10
-0
core/src/main/java/hudson/model/Build.java
core/src/main/java/hudson/model/Build.java
+2
-0
core/src/main/java/hudson/model/BuildAuthorizationToken.java
core/src/main/java/hudson/model/BuildAuthorizationToken.java
+1
-0
core/src/main/java/hudson/model/BuildableItem.java
core/src/main/java/hudson/model/BuildableItem.java
+2
-0
core/src/main/java/hudson/model/Cause.java
core/src/main/java/hudson/model/Cause.java
+3
-0
core/src/main/java/hudson/model/CauseAction.java
core/src/main/java/hudson/model/CauseAction.java
+1
-0
core/src/main/java/hudson/model/Computer.java
core/src/main/java/hudson/model/Computer.java
+5
-0
core/src/main/java/hudson/model/ComputerSet.java
core/src/main/java/hudson/model/ComputerSet.java
+1
-0
core/src/main/java/hudson/model/DependecyDeclarer.java
core/src/main/java/hudson/model/DependecyDeclarer.java
+1
-0
core/src/main/java/hudson/model/Descriptor.java
core/src/main/java/hudson/model/Descriptor.java
+3
-0
core/src/main/java/hudson/model/DirectoryBrowserSupport.java
core/src/main/java/hudson/model/DirectoryBrowserSupport.java
+2
-0
core/src/main/java/hudson/model/Executor.java
core/src/main/java/hudson/model/Executor.java
+2
-0
core/src/main/java/hudson/model/FreeStyleProject.java
core/src/main/java/hudson/model/FreeStyleProject.java
+1
-0
core/src/main/java/hudson/model/Hudson.java
core/src/main/java/hudson/model/Hudson.java
+21
-0
core/src/main/java/hudson/model/Item.java
core/src/main/java/hudson/model/Item.java
+1
-0
core/src/main/java/hudson/model/Items.java
core/src/main/java/hudson/model/Items.java
+2
-0
core/src/main/java/hudson/model/JDK.java
core/src/main/java/hudson/model/JDK.java
+2
-0
core/src/main/java/hudson/model/Job.java
core/src/main/java/hudson/model/Job.java
+3
-0
core/src/main/java/hudson/model/JobProperty.java
core/src/main/java/hudson/model/JobProperty.java
+1
-0
core/src/main/java/hudson/model/Jobs.java
core/src/main/java/hudson/model/Jobs.java
+2
-0
core/src/main/java/hudson/model/LargeText.java
core/src/main/java/hudson/model/LargeText.java
+1
-0
core/src/main/java/hudson/model/LoadBalancer.java
core/src/main/java/hudson/model/LoadBalancer.java
+1
-0
core/src/main/java/hudson/model/ManagementLink.java
core/src/main/java/hudson/model/ManagementLink.java
+1
-0
core/src/main/java/hudson/model/MultiStageTimeSeries.java
core/src/main/java/hudson/model/MultiStageTimeSeries.java
+1
-0
core/src/main/java/hudson/model/Node.java
core/src/main/java/hudson/model/Node.java
+2
-0
core/src/main/java/hudson/model/OverallLoadStatistics.java
core/src/main/java/hudson/model/OverallLoadStatistics.java
+1
-0
core/src/main/java/hudson/model/PageDecorator.java
core/src/main/java/hudson/model/PageDecorator.java
+2
-0
core/src/main/java/hudson/model/ParameterDefinition.java
core/src/main/java/hudson/model/ParameterDefinition.java
+1
-0
core/src/main/java/hudson/model/ParameterValue.java
core/src/main/java/hudson/model/ParameterValue.java
+2
-0
core/src/main/java/hudson/model/ParametersAction.java
core/src/main/java/hudson/model/ParametersAction.java
+1
-0
core/src/main/java/hudson/model/PeriodicWork.java
core/src/main/java/hudson/model/PeriodicWork.java
+1
-0
core/src/main/java/hudson/model/Project.java
core/src/main/java/hudson/model/Project.java
+3
-0
core/src/main/java/hudson/model/Queue.java
core/src/main/java/hudson/model/Queue.java
+7
-0
core/src/main/java/hudson/model/Run.java
core/src/main/java/hudson/model/Run.java
+6
-0
core/src/main/java/hudson/model/RunMap.java
core/src/main/java/hudson/model/RunMap.java
+3
-0
core/src/main/java/hudson/model/RunParameterDefinition.java
core/src/main/java/hudson/model/RunParameterDefinition.java
+1
-0
core/src/main/java/hudson/model/SCMedItem.java
core/src/main/java/hudson/model/SCMedItem.java
+2
-0
core/src/main/java/hudson/model/Slave.java
core/src/main/java/hudson/model/Slave.java
+1
-0
core/src/main/java/hudson/model/StreamBuildListener.java
core/src/main/java/hudson/model/StreamBuildListener.java
+1
-0
core/src/main/java/hudson/model/TaskAction.java
core/src/main/java/hudson/model/TaskAction.java
+1
-0
core/src/main/java/hudson/model/TaskThread.java
core/src/main/java/hudson/model/TaskThread.java
+3
-0
core/src/main/java/hudson/model/TopLevelItemDescriptor.java
core/src/main/java/hudson/model/TopLevelItemDescriptor.java
+1
-0
core/src/main/java/hudson/model/TransientBuildActionFactory.java
...c/main/java/hudson/model/TransientBuildActionFactory.java
+2
-1
core/src/main/java/hudson/model/UpdateCenter.java
core/src/main/java/hudson/model/UpdateCenter.java
+7
-0
core/src/main/java/hudson/model/UpdateSite.java
core/src/main/java/hudson/model/UpdateSite.java
+2
-0
core/src/main/java/hudson/model/User.java
core/src/main/java/hudson/model/User.java
+1
-0
core/src/main/java/hudson/model/UserProperties.java
core/src/main/java/hudson/model/UserProperties.java
+2
-0
core/src/main/java/hudson/model/View.java
core/src/main/java/hudson/model/View.java
+3
-0
core/src/main/java/hudson/model/ViewJob.java
core/src/main/java/hudson/model/ViewJob.java
+1
-0
core/src/main/java/hudson/model/listeners/ItemListener.java
core/src/main/java/hudson/model/listeners/ItemListener.java
+1
-0
core/src/main/java/hudson/model/listeners/RunListener.java
core/src/main/java/hudson/model/listeners/RunListener.java
+2
-0
core/src/main/java/hudson/model/listeners/SaveableListener.java
...rc/main/java/hudson/model/listeners/SaveableListener.java
+1
-0
core/src/main/java/hudson/model/queue/LoadPredictor.java
core/src/main/java/hudson/model/queue/LoadPredictor.java
+1
-0
core/src/main/java/hudson/model/queue/QueueTaskDispatcher.java
...src/main/java/hudson/model/queue/QueueTaskDispatcher.java
+1
-0
core/src/main/java/hudson/node_monitors/AbstractNodeMonitorDescriptor.java
...a/hudson/node_monitors/AbstractNodeMonitorDescriptor.java
+5
-0
core/src/main/java/hudson/node_monitors/NodeMonitor.java
core/src/main/java/hudson/node_monitors/NodeMonitor.java
+1
-0
core/src/main/java/hudson/os/solaris/ZFSProvisioner.java
core/src/main/java/hudson/os/solaris/ZFSProvisioner.java
+1
-0
core/src/main/java/hudson/scheduler/CronTab.java
core/src/main/java/hudson/scheduler/CronTab.java
+1
-0
core/src/main/java/hudson/scm/ChangeLogAnnotator.java
core/src/main/java/hudson/scm/ChangeLogAnnotator.java
+2
-0
core/src/main/java/hudson/scm/RepositoryBrowsers.java
core/src/main/java/hudson/scm/RepositoryBrowsers.java
+2
-0
core/src/main/java/hudson/scm/SCM.java
core/src/main/java/hudson/scm/SCM.java
+3
-0
core/src/main/java/hudson/scm/SCMS.java
core/src/main/java/hudson/scm/SCMS.java
+2
-0
core/src/main/java/hudson/security/AuthorizationStrategy.java
.../src/main/java/hudson/security/AuthorizationStrategy.java
+1
-0
core/src/main/java/hudson/security/DeferredCreationLdapAuthoritiesPopulator.java
...on/security/DeferredCreationLdapAuthoritiesPopulator.java
+1
-0
core/src/main/java/hudson/security/HudsonFilter.java
core/src/main/java/hudson/security/HudsonFilter.java
+3
-0
core/src/main/java/hudson/security/HudsonPrivateSecurityRealm.java
...main/java/hudson/security/HudsonPrivateSecurityRealm.java
+1
-0
core/src/main/java/hudson/security/InvalidatableUserDetails.java
...c/main/java/hudson/security/InvalidatableUserDetails.java
+1
-0
core/src/main/java/hudson/security/Permission.java
core/src/main/java/hudson/security/Permission.java
+6
-0
core/src/main/java/hudson/security/SecurityRealm.java
core/src/main/java/hudson/security/SecurityRealm.java
+1
-0
core/src/main/java/hudson/slaves/Channels.java
core/src/main/java/hudson/slaves/Channels.java
+1
-0
core/src/main/java/hudson/slaves/Cloud.java
core/src/main/java/hudson/slaves/Cloud.java
+1
-0
core/src/main/java/hudson/slaves/ComputerLauncher.java
core/src/main/java/hudson/slaves/ComputerLauncher.java
+4
-0
core/src/main/java/hudson/slaves/ComputerListener.java
core/src/main/java/hudson/slaves/ComputerListener.java
+2
-0
core/src/main/java/hudson/slaves/DumbSlave.java
core/src/main/java/hudson/slaves/DumbSlave.java
+1
-0
core/src/main/java/hudson/slaves/NodeDescriptor.java
core/src/main/java/hudson/slaves/NodeDescriptor.java
+1
-0
core/src/main/java/hudson/slaves/NodeProperty.java
core/src/main/java/hudson/slaves/NodeProperty.java
+1
-0
core/src/main/java/hudson/slaves/NodeProvisioner.java
core/src/main/java/hudson/slaves/NodeProvisioner.java
+5
-0
core/src/main/java/hudson/slaves/RetentionStrategy.java
core/src/main/java/hudson/slaves/RetentionStrategy.java
+1
-0
core/src/main/java/hudson/slaves/SlaveComputer.java
core/src/main/java/hudson/slaves/SlaveComputer.java
+1
-0
core/src/main/java/hudson/tasks/ArtifactArchiver.java
core/src/main/java/hudson/tasks/ArtifactArchiver.java
+1
-0
core/src/main/java/hudson/tasks/BuildStep.java
core/src/main/java/hudson/tasks/BuildStep.java
+3
-0
core/src/main/java/hudson/tasks/BuildStepCompatibilityLayer.java
...c/main/java/hudson/tasks/BuildStepCompatibilityLayer.java
+4
-0
core/src/main/java/hudson/tasks/BuildTrigger.java
core/src/main/java/hudson/tasks/BuildTrigger.java
+2
-0
core/src/main/java/hudson/tasks/BuildWrapper.java
core/src/main/java/hudson/tasks/BuildWrapper.java
+1
-0
core/src/main/java/hudson/tasks/BuildWrappers.java
core/src/main/java/hudson/tasks/BuildWrappers.java
+1
-0
core/src/main/java/hudson/tasks/LogRotator.java
core/src/main/java/hudson/tasks/LogRotator.java
+1
-0
core/src/main/java/hudson/tasks/Maven.java
core/src/main/java/hudson/tasks/Maven.java
+3
-0
core/src/main/java/hudson/tasks/Shell.java
core/src/main/java/hudson/tasks/Shell.java
+1
-0
core/src/main/java/hudson/tasks/UserNameResolver.java
core/src/main/java/hudson/tasks/UserNameResolver.java
+1
-0
core/src/main/java/hudson/tools/ToolInstallation.java
core/src/main/java/hudson/tools/ToolInstallation.java
+1
-0
core/src/main/java/hudson/tools/ToolLocationNodeProperty.java
.../src/main/java/hudson/tools/ToolLocationNodeProperty.java
+1
-0
core/src/main/java/hudson/triggers/SCMTrigger.java
core/src/main/java/hudson/triggers/SCMTrigger.java
+1
-0
core/src/main/java/hudson/triggers/Trigger.java
core/src/main/java/hudson/triggers/Trigger.java
+1
-0
core/src/main/java/hudson/triggers/Triggers.java
core/src/main/java/hudson/triggers/Triggers.java
+3
-0
core/src/main/java/hudson/util/ByteBuffer.java
core/src/main/java/hudson/util/ByteBuffer.java
+1
-0
core/src/main/java/hudson/util/CharSpool.java
core/src/main/java/hudson/util/CharSpool.java
+1
-0
core/src/main/java/hudson/util/ChartUtil.java
core/src/main/java/hudson/util/ChartUtil.java
+5
-0
core/src/main/java/hudson/util/DescribableList.java
core/src/main/java/hudson/util/DescribableList.java
+4
-0
core/src/main/java/hudson/util/DescriptorList.java
core/src/main/java/hudson/util/DescriptorList.java
+3
-0
core/src/main/java/hudson/util/FormFieldValidator.java
core/src/main/java/hudson/util/FormFieldValidator.java
+10
-0
core/src/main/java/hudson/util/IOUtils.java
core/src/main/java/hudson/util/IOUtils.java
+55
-1
core/src/main/java/hudson/util/LineEndNormalizingWriter.java
core/src/main/java/hudson/util/LineEndNormalizingWriter.java
+1
-0
core/src/main/java/hudson/util/ListBoxModel.java
core/src/main/java/hudson/util/ListBoxModel.java
+1
-0
core/src/main/java/hudson/util/ProcessTreeKiller.java
core/src/main/java/hudson/util/ProcessTreeKiller.java
+5
-0
core/src/main/java/hudson/util/RunList.java
core/src/main/java/hudson/util/RunList.java
+2
-0
core/src/main/java/hudson/util/Secret.java
core/src/main/java/hudson/util/Secret.java
+2
-0
core/src/main/java/hudson/util/StreamTaskListener.java
core/src/main/java/hudson/util/StreamTaskListener.java
+2
-0
core/src/main/java/hudson/util/WriterOutputStream.java
core/src/main/java/hudson/util/WriterOutputStream.java
+1
-0
core/src/main/java/hudson/util/xstream/MapperDelegate.java
core/src/main/java/hudson/util/xstream/MapperDelegate.java
+6
-0
core/src/main/java/hudson/views/ListViewColumn.java
core/src/main/java/hudson/views/ListViewColumn.java
+2
-0
core/src/main/java/jenkins/model/Jenkins.java
core/src/main/java/jenkins/model/Jenkins.java
+9
-0
core/src/main/java/jenkins/model/JenkinsLocationConfiguration.java
...main/java/jenkins/model/JenkinsLocationConfiguration.java
+1
-0
core/src/main/java/jenkins/security/ApiTokenFilter.java
core/src/main/java/jenkins/security/ApiTokenFilter.java
+1
-0
core/src/main/java/jenkins/slaves/JnlpSlaveAgentProtocol.java
.../src/main/java/jenkins/slaves/JnlpSlaveAgentProtocol.java
+1
-0
core/src/main/java/jenkins/slaves/JnlpSlaveAgentProtocol2.java
...src/main/java/jenkins/slaves/JnlpSlaveAgentProtocol2.java
+1
-0
core/src/main/java/jenkins/util/AntClassLoader.java
core/src/main/java/jenkins/util/AntClassLoader.java
+1
-0
未找到文件。
cli/src/main/java/hudson/cli/CLI.java
浏览文件 @
1709ed3a
...
...
@@ -97,6 +97,7 @@ public class CLI {
* @deprecated
* Use {@link CLIConnectionFactory} to create {@link CLI}
*/
@Deprecated
public
CLI
(
URL
jenkins
,
ExecutorService
exec
)
throws
IOException
,
InterruptedException
{
this
(
jenkins
,
exec
,
null
);
}
...
...
@@ -105,6 +106,7 @@ public class CLI {
* @deprecated
* Use {@link CLIConnectionFactory} to create {@link CLI}
*/
@Deprecated
public
CLI
(
URL
jenkins
,
ExecutorService
exec
,
String
httpsProxyTunnel
)
throws
IOException
,
InterruptedException
{
this
(
new
CLIConnectionFactory
().
url
(
jenkins
).
executorService
(
exec
).
httpsProxyTunnel
(
httpsProxyTunnel
));
}
...
...
core/src/main/java/hudson/DescriptorExtensionList.java
浏览文件 @
1709ed3a
...
...
@@ -81,6 +81,7 @@ public class DescriptorExtensionList<T extends Describable<T>, D extends Descrip
* @deprecated as of 1.416
* Use {@link #create(Jenkins, Class)}
*/
@Deprecated
public
static
<
T
extends
Describable
<
T
>,
D
extends
Descriptor
<
T
>>
DescriptorExtensionList
<
T
,
D
>
createDescriptorList
(
Hudson
hudson
,
Class
<
T
>
describableType
)
{
return
(
DescriptorExtensionList
)
createDescriptorList
((
Jenkins
)
hudson
,
describableType
);
...
...
@@ -95,6 +96,7 @@ public class DescriptorExtensionList<T extends Describable<T>, D extends Descrip
* @deprecated as of 1.416
* Use {@link #DescriptorExtensionList(Jenkins, Class)}
*/
@Deprecated
protected
DescriptorExtensionList
(
Hudson
hudson
,
Class
<
T
>
describableType
)
{
this
((
Jenkins
)
hudson
,
describableType
);
}
...
...
core/src/main/java/hudson/ExtensionFinder.java
浏览文件 @
1709ed3a
...
...
@@ -85,6 +85,7 @@ public abstract class ExtensionFinder implements ExtensionPoint {
* Use and implement {@link #find(Class,Hudson)} that allows us to put some metadata.
*/
@Restricted
(
NoExternalUse
.
class
)
@Deprecated
public
<
T
>
Collection
<
T
>
findExtensions
(
Class
<
T
>
type
,
Hudson
hudson
)
{
return
Collections
.
emptyList
();
}
...
...
core/src/main/java/hudson/ExtensionList.java
浏览文件 @
1709ed3a
...
...
@@ -73,6 +73,7 @@ public class ExtensionList<T> extends AbstractList<T> {
* @deprecated as of 1.417
* Use {@link #jenkins}
*/
@Deprecated
public
final
Hudson
hudson
;
public
final
@CheckForNull
Jenkins
jenkins
;
public
final
Class
<
T
>
extensionType
;
...
...
@@ -93,6 +94,7 @@ public class ExtensionList<T> extends AbstractList<T> {
* @deprecated as of 1.416
* Use {@link #ExtensionList(Jenkins, Class)}
*/
@Deprecated
protected
ExtensionList
(
Hudson
hudson
,
Class
<
T
>
extensionType
)
{
this
((
Jenkins
)
hudson
,
extensionType
);
}
...
...
@@ -105,6 +107,7 @@ public class ExtensionList<T> extends AbstractList<T> {
* @deprecated as of 1.416
* Use {@link #ExtensionList(Jenkins, Class, CopyOnWriteArrayList)}
*/
@Deprecated
protected
ExtensionList
(
Hudson
hudson
,
Class
<
T
>
extensionType
,
CopyOnWriteArrayList
<
ExtensionComponent
<
T
>>
legacyStore
)
{
this
((
Jenkins
)
hudson
,
extensionType
,
legacyStore
);
}
...
...
@@ -214,6 +217,7 @@ public class ExtensionList<T> extends AbstractList<T> {
* Prefer automatic registration.
*/
@Override
@Deprecated
public
synchronized
boolean
add
(
T
t
)
{
legacyInstances
.
add
(
new
ExtensionComponent
<
T
>(
t
));
// if we've already filled extensions, add it
...
...
@@ -325,6 +329,7 @@ public class ExtensionList<T> extends AbstractList<T> {
* @deprecated as of 1.416
* Use {@link #create(Jenkins, Class)}
*/
@Deprecated
public
static
<
T
>
ExtensionList
<
T
>
create
(
Hudson
hudson
,
Class
<
T
>
type
)
{
return
create
((
Jenkins
)
hudson
,
type
);
}
...
...
core/src/main/java/hudson/FilePath.java
浏览文件 @
1709ed3a
...
...
@@ -367,6 +367,7 @@ public final class FilePath implements Serializable {
*
* @deprecated as of 1.315. Use {@link #zip(OutputStream)} that has more consistent name.
*/
@Deprecated
public
void
createZipArchive
(
OutputStream
os
)
throws
IOException
,
InterruptedException
{
zip
(
os
);
}
...
...
@@ -411,6 +412,7 @@ public final class FilePath implements Serializable {
* @deprecated as of 1.315
* Use {@link #zip(OutputStream,String)} that has more consistent name.
*/
@Deprecated
public
void
createZipArchive
(
OutputStream
os
,
final
String
glob
)
throws
IOException
,
InterruptedException
{
archive
(
ArchiverFactory
.
ZIP
,
os
,
glob
);
}
...
...
@@ -2337,6 +2339,7 @@ public final class FilePath implements Serializable {
* @see #validateFileMask(FilePath, String)
* @deprecated use {@link #validateAntFileMask(String, int)} instead
*/
@Deprecated
public
String
validateAntFileMask
(
final
String
fileMasks
)
throws
IOException
,
InterruptedException
{
return
validateAntFileMask
(
fileMasks
,
Integer
.
MAX_VALUE
);
}
...
...
core/src/main/java/hudson/FileSystemProvisioner.java
浏览文件 @
1709ed3a
...
...
@@ -204,6 +204,7 @@ public abstract class FileSystemProvisioner implements ExtensionPoint, Describab
/**
* @deprecated as of 1.350
*/
@Deprecated
public
WorkspaceSnapshot
snapshot
(
AbstractBuild
<?,
?>
build
,
FilePath
ws
,
TaskListener
listener
)
throws
IOException
,
InterruptedException
{
return
snapshot
(
build
,
ws
,
"**/*"
,
listener
);
}
...
...
core/src/main/java/hudson/Functions.java
浏览文件 @
1709ed3a
...
...
@@ -438,6 +438,7 @@ public class Functions {
* JEXL now supports the real ternary operator "x?y:z", so this work around
* is no longer necessary.
*/
@Deprecated
public
static
Object
ifThenElse
(
boolean
cond
,
Object
thenValue
,
Object
elseValue
)
{
return
cond
?
thenValue
:
elseValue
;
}
...
...
@@ -1573,6 +1574,7 @@ public class Functions {
* @deprecated
* Use {@link #calcCheckUrl}
*/
@Deprecated
public
String
getCheckUrl
(
String
userDefined
,
Object
descriptor
,
String
field
)
{
if
(
userDefined
!=
null
||
field
==
null
)
return
userDefined
;
if
(
descriptor
instanceof
Descriptor
)
{
...
...
@@ -1823,6 +1825,7 @@ public class Functions {
* @deprecated as of 1.451
* Use {@link #getAvatar}
*/
@Deprecated
public
String
getUserAvatar
(
User
user
,
String
avatarSize
)
{
return
getAvatar
(
user
,
avatarSize
);
}
...
...
core/src/main/java/hudson/Launcher.java
浏览文件 @
1709ed3a
...
...
@@ -133,6 +133,7 @@ public abstract class Launcher {
* figure out the current {@link Computer} from within a build, use
* {@link Computer#currentComputer()}
*/
@Deprecated
public
Computer
getComputer
()
{
for
(
Computer
c
:
Jenkins
.
getInstance
().
getComputers
()
)
if
(
c
.
getChannel
()==
channel
)
...
...
@@ -412,6 +413,7 @@ public abstract class Launcher {
* @deprecated as of 1.311
* Use {@link #launch()} and its associated builder pattern
*/
@Deprecated
public
final
Proc
launch
(
String
cmd
,
Map
<
String
,
String
>
env
,
OutputStream
out
,
FilePath
workDir
)
throws
IOException
{
return
launch
(
cmd
,
Util
.
mapToEnv
(
env
),
out
,
workDir
);
}
...
...
@@ -420,6 +422,7 @@ public abstract class Launcher {
* @deprecated as of 1.311
* Use {@link #launch()} and its associated builder pattern
*/
@Deprecated
public
final
Proc
launch
(
String
[]
cmd
,
Map
<
String
,
String
>
env
,
OutputStream
out
,
FilePath
workDir
)
throws
IOException
{
return
launch
(
cmd
,
Util
.
mapToEnv
(
env
),
out
,
workDir
);
}
...
...
@@ -428,6 +431,7 @@ public abstract class Launcher {
* @deprecated as of 1.311
* Use {@link #launch()} and its associated builder pattern
*/
@Deprecated
public
final
Proc
launch
(
String
[]
cmd
,
Map
<
String
,
String
>
env
,
InputStream
in
,
OutputStream
out
)
throws
IOException
{
return
launch
(
cmd
,
Util
.
mapToEnv
(
env
),
in
,
out
);
}
...
...
@@ -449,6 +453,7 @@ public abstract class Launcher {
* @deprecated as of 1.311
* Use {@link #launch()} and its associated builder pattern
*/
@Deprecated
public
final
Proc
launch
(
String
[]
cmd
,
boolean
[]
mask
,
Map
<
String
,
String
>
env
,
OutputStream
out
,
FilePath
workDir
)
throws
IOException
{
return
launch
(
cmd
,
mask
,
Util
.
mapToEnv
(
env
),
out
,
workDir
);
}
...
...
@@ -470,6 +475,7 @@ public abstract class Launcher {
* @deprecated as of 1.311
* Use {@link #launch()} and its associated builder pattern
*/
@Deprecated
public
final
Proc
launch
(
String
[]
cmd
,
boolean
[]
mask
,
Map
<
String
,
String
>
env
,
InputStream
in
,
OutputStream
out
)
throws
IOException
{
return
launch
(
cmd
,
mask
,
Util
.
mapToEnv
(
env
),
in
,
out
);
}
...
...
@@ -478,6 +484,7 @@ public abstract class Launcher {
* @deprecated as of 1.311
* Use {@link #launch()} and its associated builder pattern
*/
@Deprecated
public
final
Proc
launch
(
String
cmd
,
String
[]
env
,
OutputStream
out
,
FilePath
workDir
)
throws
IOException
{
return
launch
(
Util
.
tokenize
(
cmd
),
env
,
out
,
workDir
);
}
...
...
@@ -486,6 +493,7 @@ public abstract class Launcher {
* @deprecated as of 1.311
* Use {@link #launch()} and its associated builder pattern
*/
@Deprecated
public
final
Proc
launch
(
String
[]
cmd
,
String
[]
env
,
OutputStream
out
,
FilePath
workDir
)
throws
IOException
{
return
launch
(
cmd
,
env
,
null
,
out
,
workDir
);
}
...
...
@@ -494,6 +502,7 @@ public abstract class Launcher {
* @deprecated as of 1.311
* Use {@link #launch()} and its associated builder pattern
*/
@Deprecated
public
final
Proc
launch
(
String
[]
cmd
,
String
[]
env
,
InputStream
in
,
OutputStream
out
)
throws
IOException
{
return
launch
(
cmd
,
env
,
in
,
out
,
null
);
}
...
...
@@ -515,6 +524,7 @@ public abstract class Launcher {
* @deprecated as of 1.311
* Use {@link #launch()} and its associated builder pattern
*/
@Deprecated
public
final
Proc
launch
(
String
[]
cmd
,
boolean
[]
mask
,
String
[]
env
,
OutputStream
out
,
FilePath
workDir
)
throws
IOException
{
return
launch
(
cmd
,
mask
,
env
,
null
,
out
,
workDir
);
}
...
...
@@ -536,6 +546,7 @@ public abstract class Launcher {
* @deprecated as of 1.311
* Use {@link #launch()} and its associated builder pattern
*/
@Deprecated
public
final
Proc
launch
(
String
[]
cmd
,
boolean
[]
mask
,
String
[]
env
,
InputStream
in
,
OutputStream
out
)
throws
IOException
{
return
launch
(
cmd
,
mask
,
env
,
in
,
out
,
null
);
}
...
...
@@ -554,6 +565,7 @@ public abstract class Launcher {
* @deprecated as of 1.311
* Use {@link #launch()} and its associated builder pattern
*/
@Deprecated
public
Proc
launch
(
String
[]
cmd
,
String
[]
env
,
InputStream
in
,
OutputStream
out
,
FilePath
workDir
)
throws
IOException
{
return
launch
(
launch
().
cmds
(
cmd
).
envs
(
env
).
stdin
(
in
).
stdout
(
out
).
pwd
(
workDir
));
}
...
...
@@ -576,6 +588,7 @@ public abstract class Launcher {
* @deprecated as of 1.311
* Use {@link #launch()} and its associated builder pattern
*/
@Deprecated
public
Proc
launch
(
String
[]
cmd
,
boolean
[]
mask
,
String
[]
env
,
InputStream
in
,
OutputStream
out
,
FilePath
workDir
)
throws
IOException
{
return
launch
(
launch
().
cmds
(
cmd
).
masks
(
mask
).
envs
(
env
).
stdin
(
in
).
stdout
(
out
).
pwd
(
workDir
));
}
...
...
core/src/main/java/hudson/MarkupText.java
浏览文件 @
1709ed3a
...
...
@@ -283,6 +283,7 @@ public class MarkupText extends AbstractMarkupText {
* Use {@link #toString(boolean)} to be explicit about the escape mode.
*/
@Override
@Deprecated
public
String
toString
()
{
return
toString
(
false
);
}
...
...
core/src/main/java/hudson/Plugin.java
浏览文件 @
1709ed3a
...
...
@@ -164,6 +164,7 @@ public abstract class Plugin implements Saveable {
* @since 1.233
* @deprecated as of 1.305 override {@link #configure(StaplerRequest,JSONObject)} instead
*/
@Deprecated
public
void
configure
(
JSONObject
formData
)
throws
IOException
,
ServletException
,
FormException
{
}
...
...
core/src/main/java/hudson/PluginManager.java
浏览文件 @
1709ed3a
...
...
@@ -151,6 +151,7 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
* {@link PluginManager} can now live longer than {@link jenkins.model.Jenkins} instance, so
* use {@code Hudson.getInstance().servletContext} instead.
*/
@Deprecated
public
final
ServletContext
context
;
/**
...
...
core/src/main/java/hudson/Proc.java
浏览文件 @
1709ed3a
...
...
@@ -431,6 +431,7 @@ public abstract class Proc {
*
* @deprecated as of 1.399. Replaced by {@link Launcher.RemoteLauncher.ProcImpl}
*/
@Deprecated
public
static
final
class
RemoteProc
extends
Proc
{
private
final
Future
<
Integer
>
process
;
...
...
core/src/main/java/hudson/ProxyConfiguration.java
浏览文件 @
1709ed3a
...
...
@@ -165,6 +165,7 @@ public final class ProxyConfiguration extends AbstractDescribableImpl<ProxyConfi
* @deprecated
* Use {@link #createProxy(String)}
*/
@Deprecated
public
Proxy
createProxy
()
{
return
createProxy
(
null
);
}
...
...
core/src/main/java/hudson/StructuredForm.java
浏览文件 @
1709ed3a
...
...
@@ -43,6 +43,7 @@ public class StructuredForm {
* @deprecated
* Use {@link StaplerRequest#getSubmittedForm()}. Since 1.238.
*/
@Deprecated
public
static
JSONObject
get
(
StaplerRequest
req
)
throws
ServletException
{
return
req
.
getSubmittedForm
();
}
...
...
core/src/main/java/hudson/UDPBroadcastThread.java
浏览文件 @
1709ed3a
...
...
@@ -59,6 +59,7 @@ public class UDPBroadcastThread extends Thread {
* @deprecated as of 1.416
* Use {@link #UDPBroadcastThread(Jenkins)}
*/
@Deprecated
public
UDPBroadcastThread
(
Hudson
jenkins
)
throws
IOException
{
this
((
Jenkins
)
jenkins
);
}
...
...
core/src/main/java/hudson/Util.java
浏览文件 @
1709ed3a
...
...
@@ -774,6 +774,7 @@ public class Util {
* Deprecated since 2009-06-24, remove method after 2009-12-24.
*/
@Nonnull
@Deprecated
public
static
String
combine
(
long
n
,
@Nonnull
String
suffix
)
{
String
s
=
Long
.
toString
(
n
)+
' '
+
suffix
;
if
(
n
!=
1
)
...
...
@@ -1269,6 +1270,7 @@ public class Util {
* @deprecated as of 1.456
* Use {@link #resolveSymlink(File)}
*/
@Deprecated
public
static
String
resolveSymlink
(
File
link
,
TaskListener
listener
)
throws
InterruptedException
,
IOException
{
return
resolveSymlink
(
link
);
}
...
...
core/src/main/java/hudson/cli/CliProtocol.java
浏览文件 @
1709ed3a
...
...
@@ -48,6 +48,7 @@ public class CliProtocol extends AgentProtocol {
* @deprecated as of 1.559
* Use {@link #Handler(NioChannelHub, Socket)}
*/
@Deprecated
public
Handler
(
Socket
socket
)
{
this
(
null
,
socket
);
}
...
...
core/src/main/java/hudson/cli/CliProtocol2.java
浏览文件 @
1709ed3a
...
...
@@ -37,6 +37,7 @@ public class CliProtocol2 extends CliProtocol {
* @deprecated as of 1.559
* Use {@link #Handler2(NioChannelHub, Socket)}
*/
@Deprecated
public
Handler2
(
Socket
socket
)
{
super
(
socket
);
}
...
...
core/src/main/java/hudson/model/AbstractBuild.java
浏览文件 @
1709ed3a
...
...
@@ -413,6 +413,7 @@ public abstract class AbstractBuild<P extends AbstractProject<P,R>,R extends Abs
* @deprecated as of 1.467
* Please use {@link hudson.model.Run.RunExecution}
*/
@Deprecated
public
abstract
class
AbstractRunner
extends
AbstractBuildExecution
{
}
...
...
@@ -691,6 +692,7 @@ public abstract class AbstractBuild<P extends AbstractProject<P,R>,R extends Abs
* @deprecated as of 1.356
* Use {@link #performAllBuildSteps(BuildListener, Map, boolean)}
*/
@Deprecated
protected
final
void
performAllBuildStep
(
BuildListener
listener
,
Map
<?,?
extends
BuildStep
>
buildSteps
,
boolean
phase
)
throws
InterruptedException
,
IOException
{
performAllBuildSteps
(
listener
,
buildSteps
.
values
(),
phase
);
}
...
...
@@ -703,6 +705,7 @@ public abstract class AbstractBuild<P extends AbstractProject<P,R>,R extends Abs
* @deprecated as of 1.356
* Use {@link #performAllBuildSteps(BuildListener, Iterable, boolean)}
*/
@Deprecated
protected
final
void
performAllBuildStep
(
BuildListener
listener
,
Iterable
<?
extends
BuildStep
>
buildSteps
,
boolean
phase
)
throws
InterruptedException
,
IOException
{
performAllBuildSteps
(
listener
,
buildSteps
,
phase
);
}
...
...
@@ -1051,6 +1054,7 @@ public abstract class AbstractBuild<P extends AbstractProject<P,R>,R extends Abs
/**
* @deprecated Use {@link #getAction(Class)} on {@link AbstractTestResultAction}.
*/
@Deprecated
public
Action
getTestResultAction
()
{
try
{
return
getAction
(
Jenkins
.
getInstance
().
getPluginManager
().
uberClassLoader
.
loadClass
(
"hudson.tasks.test.AbstractTestResultAction"
).
asSubclass
(
Action
.
class
));
...
...
@@ -1062,6 +1066,7 @@ public abstract class AbstractBuild<P extends AbstractProject<P,R>,R extends Abs
/**
* @deprecated Use {@link #getAction(Class)} on {@link AggregatedTestResultAction}.
*/
@Deprecated
public
Action
getAggregatedTestResultAction
()
{
try
{
return
getAction
(
Jenkins
.
getInstance
().
getPluginManager
().
uberClassLoader
.
loadClass
(
"hudson.tasks.test.AggregatedTestResultAction"
).
asSubclass
(
Action
.
class
));
...
...
@@ -1340,6 +1345,7 @@ public abstract class AbstractBuild<P extends AbstractProject<P,R>,R extends Abs
* @deprecated as of 1.489
* Use {@link #doStop()}
*/
@Deprecated
public
void
doStop
(
StaplerRequest
req
,
StaplerResponse
rsp
)
throws
IOException
,
ServletException
{
doStop
().
generateResponse
(
req
,
rsp
,
this
);
}
...
...
core/src/main/java/hudson/model/AbstractCIBase.java
浏览文件 @
1709ed3a
...
...
@@ -61,8 +61,9 @@ public abstract class AbstractCIBase extends Node implements ItemGroup<TopLevelI
/**
* @deprecated
* Why are you calling a method that always returns ""?
* You probably want o call {@link Jenkins#getRootUrl()}
* You probably want
t
o call {@link Jenkins#getRootUrl()}
*/
@Deprecated
public
String
getUrl
()
{
return
""
;
}
...
...
core/src/main/java/hudson/model/AbstractItem.java
浏览文件 @
1709ed3a
...
...
@@ -621,6 +621,7 @@ public abstract class AbstractItem extends Actionable implements Item, HttpDelet
* @deprecated as of 1.473
* Use {@link #updateByXml(Source)}
*/
@Deprecated
public
void
updateByXml
(
StreamSource
source
)
throws
IOException
{
updateByXml
((
Source
)
source
);
}
...
...
core/src/main/java/hudson/model/AbstractModelObject.java
浏览文件 @
1709ed3a
...
...
@@ -81,6 +81,7 @@ public abstract class AbstractModelObject implements SearchableModelObject {
* @deprecated
* Use {@link RequirePOST} on your method.
*/
@Deprecated
protected
final
void
requirePOST
()
throws
ServletException
{
StaplerRequest
req
=
Stapler
.
getCurrentRequest
();
if
(
req
==
null
)
return
;
// invoked outside the context of servlet
...
...
core/src/main/java/hudson/model/AbstractProject.java
浏览文件 @
1709ed3a
...
...
@@ -505,6 +505,7 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
* If you are calling this method to serve a file from the workspace, doing a form validation, etc., then
* use {@link #getSomeWorkspace()}
*/
@Deprecated
public
final
FilePath
getWorkspace
()
{
AbstractBuild
b
=
getBuildForDeprecatedMethods
();
return
b
!=
null
?
b
.
getWorkspace
()
:
null
;
...
...
@@ -586,6 +587,7 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
* @deprecated as of 1.319
* See {@link #getWorkspace()} for a migration strategy.
*/
@Deprecated
public
FilePath
getModuleRoot
()
{
AbstractBuild
b
=
getBuildForDeprecatedMethods
();
return
b
!=
null
?
b
.
getModuleRoot
()
:
null
;
...
...
@@ -601,6 +603,7 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
* @deprecated as of 1.319
* See {@link #getWorkspace()} for a migration strategy.
*/
@Deprecated
public
FilePath
[]
getModuleRoots
()
{
AbstractBuild
b
=
getBuildForDeprecatedMethods
();
return
b
!=
null
?
b
.
getModuleRoots
()
:
null
;
...
...
@@ -797,6 +800,7 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
* @deprecated
* Use {@link #scheduleBuild(Cause)}. Since 1.283
*/
@Deprecated
public
boolean
scheduleBuild
()
{
return
getParameterizedJobMixIn
().
scheduleBuild
();
}
...
...
@@ -805,6 +809,7 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
* @deprecated
* Use {@link #scheduleBuild(int, Cause)}. Since 1.283
*/
@Deprecated
public
boolean
scheduleBuild
(
int
quietPeriod
)
{
return
getParameterizedJobMixIn
().
scheduleBuild
(
quietPeriod
);
}
...
...
@@ -1226,6 +1231,7 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
* If you need to lock a workspace while you do some computation, see the source code of
* {@link #pollSCMChanges(TaskListener)} for how to obtain a lock of a workspace through {@link WorkspaceList}.
*/
@Deprecated
public
Resource
getWorkspaceResource
()
{
return
new
Resource
(
getFullDisplayName
()+
" workspace"
);
}
...
...
@@ -1299,6 +1305,7 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
* @deprecated as of 1.346
* Use {@link #poll(TaskListener)} instead.
*/
@Deprecated
public
boolean
pollSCMChanges
(
TaskListener
listener
)
{
return
poll
(
listener
).
hasChanges
();
}
...
...
@@ -1756,6 +1763,7 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
* @deprecated as of 1.489
* Inject {@link TimeDuration}.
*/
@Deprecated
public
int
getDelay
(
StaplerRequest
req
)
throws
ServletException
{
String
delay
=
req
.
getParameter
(
"delay"
);
if
(
delay
==
null
)
return
getQuietPeriod
();
...
...
@@ -1872,6 +1880,7 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
* @deprecated
* As of 1.261. Use {@link #buildDescribable(StaplerRequest, List)} instead.
*/
@Deprecated
protected
final
<
T
extends
Describable
<
T
>>
List
<
T
>
buildDescribable
(
StaplerRequest
req
,
List
<?
extends
Descriptor
<
T
>>
descriptors
,
String
prefix
)
throws
FormException
,
ServletException
{
return
buildDescribable
(
req
,
descriptors
);
}
...
...
@@ -2219,6 +2228,7 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
/**
* @deprecated Just use {@link #CANCEL}.
*/
@Deprecated
public
static
final
Permission
ABORT
=
CANCEL
;
/**
...
...
core/src/main/java/hudson/model/Build.java
浏览文件 @
1709ed3a
...
...
@@ -119,6 +119,7 @@ public abstract class Build <P extends Project<P,B>,B extends Build<P,B>>
* proper execution object.
*/
@Restricted
(
NoExternalUse
.
class
)
@Deprecated
protected
Runner
createRunner
()
{
return
new
BuildExecution
();
}
...
...
@@ -127,6 +128,7 @@ public abstract class Build <P extends Project<P,B>,B extends Build<P,B>>
* @deprecated as of 1.467
* Please use {@link BuildExecution}
*/
@Deprecated
protected
class
RunnerImpl
extends
BuildExecution
{
}
...
...
core/src/main/java/hudson/model/BuildAuthorizationToken.java
浏览文件 @
1709ed3a
...
...
@@ -45,6 +45,7 @@ import org.kohsuke.stapler.HttpResponses;
* Use {@link ACL} and {@link Item#BUILD}. This code is only here
* for the backward compatibility.
*/
@Deprecated
public
final
class
BuildAuthorizationToken
{
private
final
String
token
;
...
...
core/src/main/java/hudson/model/BuildableItem.java
浏览文件 @
1709ed3a
...
...
@@ -39,12 +39,14 @@ public interface BuildableItem extends Item, Task {
* @deprecated
* Use {@link #scheduleBuild(Cause)}. Since 1.283
*/
@Deprecated
boolean
scheduleBuild
();
boolean
scheduleBuild
(
Cause
c
);
/**
* @deprecated
* Use {@link #scheduleBuild(int, Cause)}. Since 1.283
*/
@Deprecated
boolean
scheduleBuild
(
int
quietPeriod
);
boolean
scheduleBuild
(
int
quietPeriod
,
Cause
c
);
}
core/src/main/java/hudson/model/Cause.java
浏览文件 @
1709ed3a
...
...
@@ -124,6 +124,7 @@ public abstract class Cause {
* Fall back implementation when no other type is available.
* @deprecated since 2009-02-08
*/
@Deprecated
public
static
class
LegacyCodeCause
extends
Cause
{
private
StackTraceElement
[]
stackTrace
;
public
LegacyCodeCause
()
{
...
...
@@ -162,6 +163,7 @@ public abstract class Cause {
* @deprecated since 2009-02-28
*/
// for backward bytecode compatibility
@Deprecated
public
UpstreamCause
(
AbstractBuild
<?,?>
up
)
{
this
((
Run
<?,?>)
up
);
}
...
...
@@ -361,6 +363,7 @@ public abstract class Cause {
* @deprecated 1.428
* use {@link UserIdCause}
*/
@Deprecated
public
static
class
UserCause
extends
Cause
{
private
String
authenticationName
;
public
UserCause
()
{
...
...
core/src/main/java/hudson/model/CauseAction.java
浏览文件 @
1709ed3a
...
...
@@ -113,6 +113,7 @@ public class CauseAction implements FoldableAction, RunAction2 {
* @deprecated as of 1.288
* but left here for backward compatibility.
*/
@Deprecated
public
String
getShortDescription
()
{
if
(
causes
.
isEmpty
())
return
"N/A"
;
return
causes
.
get
(
0
).
getShortDescription
();
...
...
core/src/main/java/hudson/model/Computer.java
浏览文件 @
1709ed3a
...
...
@@ -378,6 +378,7 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
/**
* @deprecated since 2009-01-06. Use {@link #connect(boolean)}
*/
@Deprecated
public
final
void
launch
()
{
connect
(
true
);
}
...
...
@@ -477,6 +478,7 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
* @deprecated as of 1.320.
* Use {@link #disconnect(OfflineCause)} and specify the cause.
*/
@Deprecated
public
Future
<?>
disconnect
()
{
recordTermination
();
if
(
Util
.
isOverridden
(
Computer
.
class
,
getClass
(),
"disconnect"
,
OfflineCause
.
class
))
...
...
@@ -640,6 +642,7 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
* accidentally call this method.
*/
@Exported
@Deprecated
public
boolean
isTemporarilyOffline
()
{
return
temporarilyOffline
;
}
...
...
@@ -648,6 +651,7 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
* @deprecated as of 1.320.
* Use {@link #setTemporarilyOffline(boolean, OfflineCause)}
*/
@Deprecated
public
void
setTemporarilyOffline
(
boolean
temporarilyOffline
)
{
setTemporarilyOffline
(
temporarilyOffline
,
null
);
}
...
...
@@ -1051,6 +1055,7 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
* @deprecated as of 1.292
* Use {@link #getEnvironment()} instead.
*/
@Deprecated
public
Map
<
String
,
String
>
getEnvVars
()
throws
IOException
,
InterruptedException
{
return
getEnvironment
();
}
...
...
core/src/main/java/hudson/model/ComputerSet.java
浏览文件 @
1709ed3a
...
...
@@ -95,6 +95,7 @@ public final class ComputerSet extends AbstractModelObject implements Describabl
* @deprecated as of 1.301
* Use {@link #getMonitors()}.
*/
@Deprecated
public
static
List
<
NodeMonitor
>
get_monitors
()
{
return
monitors
.
toList
();
}
...
...
core/src/main/java/hudson/model/DependecyDeclarer.java
浏览文件 @
1709ed3a
...
...
@@ -30,4 +30,5 @@ import jenkins.model.DependencyDeclarer;
* @deprecated Use {@link DependencyDeclarer} instead.
* @since 1.160
*/
@Deprecated
public
interface
DependecyDeclarer
extends
DependencyDeclarer
{}
core/src/main/java/hudson/model/Descriptor.java
浏览文件 @
1709ed3a
...
...
@@ -366,6 +366,7 @@ public abstract class Descriptor<T extends Describable<T>> implements Saveable {
* @deprecated since 1.528
* Use {@link #getCheckMethod(String)}
*/
@Deprecated
public
String
getCheckUrl
(
String
fieldName
)
{
return
getCheckMethod
(
fieldName
).
toCheckUrl
();
}
...
...
@@ -512,6 +513,7 @@ public abstract class Descriptor<T extends Describable<T>> implements Saveable {
* Implement {@link #newInstance(StaplerRequest, JSONObject)} method instead.
* Deprecated as of 1.145.
*/
@Deprecated
public
T
newInstance
(
StaplerRequest
req
)
throws
FormException
{
throw
new
UnsupportedOperationException
(
getClass
()+
" should implement newInstance(StaplerRequest,JSONObject)"
);
}
...
...
@@ -684,6 +686,7 @@ public abstract class Descriptor<T extends Describable<T>> implements Saveable {
* @deprecated
* As of 1.239, use {@link #configure(StaplerRequest, JSONObject)}.
*/
@Deprecated
public
boolean
configure
(
StaplerRequest
req
)
throws
FormException
{
return
true
;
}
...
...
core/src/main/java/hudson/model/DirectoryBrowserSupport.java
浏览文件 @
1709ed3a
...
...
@@ -75,6 +75,7 @@ public final class DirectoryBrowserSupport implements HttpResponse {
* @deprecated as of 1.297
* Use {@link #DirectoryBrowserSupport(ModelObject, FilePath, String, String, boolean)}
*/
@Deprecated
public
DirectoryBrowserSupport
(
ModelObject
owner
,
String
title
)
{
this
(
owner
,
(
VirtualFile
)
null
,
title
,
null
,
false
);
}
...
...
@@ -147,6 +148,7 @@ public final class DirectoryBrowserSupport implements HttpResponse {
* Instead of calling this method explicitly, just return the {@link DirectoryBrowserSupport} object
* from the {@code doXYZ} method and let Stapler generate a response for you.
*/
@Deprecated
public
void
serveFile
(
StaplerRequest
req
,
StaplerResponse
rsp
,
FilePath
root
,
String
icon
,
boolean
serveDirIndex
)
throws
IOException
,
ServletException
,
InterruptedException
{
serveFile
(
req
,
rsp
,
root
.
toVirtualFile
(),
icon
,
serveDirIndex
);
}
...
...
core/src/main/java/hudson/model/Executor.java
浏览文件 @
1709ed3a
...
...
@@ -800,6 +800,7 @@ public class Executor extends Thread implements ModelObject {
* Use {@link #doStop()}.
*/
@RequirePOST
@Deprecated
public
void
doStop
(
StaplerRequest
req
,
StaplerResponse
rsp
)
throws
IOException
,
ServletException
{
doStop
().
generateResponse
(
req
,
rsp
,
this
);
}
...
...
@@ -937,6 +938,7 @@ public class Executor extends Thread implements ModelObject {
* @deprecated as of 1.388
* Use {@link Executables#getEstimatedDurationFor(Queue.Executable)}
*/
@Deprecated
public
static
long
getEstimatedDurationFor
(
Executable
e
)
{
return
Executables
.
getEstimatedDurationFor
(
e
);
}
...
...
core/src/main/java/hudson/model/FreeStyleProject.java
浏览文件 @
1709ed3a
...
...
@@ -38,6 +38,7 @@ public class FreeStyleProject extends Project<FreeStyleProject,FreeStyleBuild> i
/**
* @deprecated as of 1.390
*/
@Deprecated
public
FreeStyleProject
(
Jenkins
parent
,
String
name
)
{
super
(
parent
,
name
);
}
...
...
core/src/main/java/hudson/model/Hudson.java
浏览文件 @
1709ed3a
...
...
@@ -60,12 +60,14 @@ public class Hudson extends Jenkins {
* List of registered {@link hudson.model.listeners.ItemListener}s.
* @deprecated as of 1.286
*/
@Deprecated
private
transient
final
CopyOnWriteList
<
ItemListener
>
itemListeners
=
ExtensionListView
.
createCopyOnWriteList
(
ItemListener
.
class
);
/**
* List of registered {@link hudson.slaves.ComputerListener}s.
* @deprecated as of 1.286
*/
@Deprecated
private
transient
final
CopyOnWriteList
<
ComputerListener
>
computerListeners
=
ExtensionListView
.
createCopyOnWriteList
(
ComputerListener
.
class
);
/** @deprecated Here only for compatibility. Use {@link Jenkins#getInstance} instead. */
...
...
@@ -89,6 +91,7 @@ public class Hudson extends Jenkins {
* @deprecated as of 1.286.
* Use {@link ItemListener#all()}.
*/
@Deprecated
public
CopyOnWriteList
<
ItemListener
>
getJobListeners
()
{
return
itemListeners
;
}
...
...
@@ -99,6 +102,7 @@ public class Hudson extends Jenkins {
* @deprecated as of 1.286.
* Use {@link ComputerListener#all()}.
*/
@Deprecated
public
CopyOnWriteList
<
ComputerListener
>
getComputerListeners
()
{
return
computerListeners
;
}
...
...
@@ -109,6 +113,7 @@ public class Hudson extends Jenkins {
* @deprecated
* Use {@link #getNode(String)}. Since 1.252.
*/
@Deprecated
public
Slave
getSlave
(
String
name
)
{
Node
n
=
getNode
(
name
);
if
(
n
instanceof
Slave
)
...
...
@@ -120,6 +125,7 @@ public class Hudson extends Jenkins {
* @deprecated
* Use {@link #getNodes()}. Since 1.252.
*/
@Deprecated
public
List
<
Slave
>
getSlaves
()
{
return
(
List
)
getNodes
();
}
...
...
@@ -130,6 +136,7 @@ public class Hudson extends Jenkins {
* @deprecated
* Use {@link #setNodes(List)}. Since 1.252.
*/
@Deprecated
public
void
setSlaves
(
List
<
Slave
>
slaves
)
throws
IOException
{
setNodes
(
slaves
);
}
...
...
@@ -139,6 +146,7 @@ public class Hudson extends Jenkins {
* Left only for the compatibility of URLs.
* Should not be invoked for any other purpose.
*/
@Deprecated
public
TopLevelItem
getJob
(
String
name
)
{
return
getItem
(
name
);
}
...
...
@@ -147,6 +155,7 @@ public class Hudson extends Jenkins {
* @deprecated
* Used only for mapping jobs to URL in a case-insensitive fashion.
*/
@Deprecated
public
TopLevelItem
getJobCaseInsensitive
(
String
name
)
{
String
match
=
Functions
.
toEmailSafeString
(
name
);
for
(
TopLevelItem
item
:
getItems
())
{
...
...
@@ -161,6 +170,7 @@ public class Hudson extends Jenkins {
* @deprecated as of 1.317
* Use {@link #doQuietDown()} instead.
*/
@Deprecated
public
synchronized
void
doQuietDown
(
StaplerResponse
rsp
)
throws
IOException
,
ServletException
{
doQuietDown
().
generateResponse
(
null
,
rsp
,
this
);
}
...
...
@@ -171,6 +181,7 @@ public class Hudson extends Jenkins {
* @deprecated
* As on 1.267, moved to "/log/rss..."
*/
@Deprecated
public
void
doLogRss
(
StaplerRequest
req
,
StaplerResponse
rsp
)
throws
IOException
,
ServletException
{
String
qs
=
req
.
getQueryString
();
rsp
.
sendRedirect2
(
"./log/rss"
+(
qs
==
null
?
""
:
'?'
+
qs
));
...
...
@@ -180,6 +191,7 @@ public class Hudson extends Jenkins {
* @deprecated as of 1.294
* Define your own check method, instead of relying on this generic one.
*/
@Deprecated
public
void
doFieldCheck
(
StaplerRequest
req
,
StaplerResponse
rsp
)
throws
IOException
,
ServletException
{
doFieldCheck
(
fixEmpty
(
req
.
getParameter
(
"value"
)),
...
...
@@ -201,6 +213,7 @@ public class Hudson extends Jenkins {
* Either use client-side validation (e.g. class="required number")
* or define your own check method, instead of relying on this generic one.
*/
@Deprecated
public
FormValidation
doFieldCheck
(
@QueryParameter
(
fixEmpty
=
true
)
String
value
,
@QueryParameter
(
fixEmpty
=
true
)
String
type
,
@QueryParameter
(
fixEmpty
=
true
)
String
errorText
,
...
...
@@ -236,6 +249,7 @@ public class Hudson extends Jenkins {
* @deprecated
* Use {@link Functions#isWindows()}.
*/
@Deprecated
public
static
boolean
isWindows
()
{
return
File
.
pathSeparatorChar
==
';'
;
}
...
...
@@ -244,6 +258,7 @@ public class Hudson extends Jenkins {
* @deprecated
* Use {@link hudson.Platform#isDarwin()}
*/
@Deprecated
public
static
boolean
isDarwin
()
{
return
Platform
.
isDarwin
();
}
...
...
@@ -252,6 +267,7 @@ public class Hudson extends Jenkins {
* @deprecated since 2007-12-18.
* Use {@link #checkPermission(hudson.security.Permission)}
*/
@Deprecated
public
static
boolean
adminCheck
()
throws
IOException
{
return
adminCheck
(
Stapler
.
getCurrentRequest
(),
Stapler
.
getCurrentResponse
());
}
...
...
@@ -260,6 +276,7 @@ public class Hudson extends Jenkins {
* @deprecated since 2007-12-18.
* Use {@link #checkPermission(hudson.security.Permission)}
*/
@Deprecated
public
static
boolean
adminCheck
(
StaplerRequest
req
,
StaplerResponse
rsp
)
throws
IOException
{
if
(
isAdmin
(
req
))
return
true
;
...
...
@@ -285,6 +302,7 @@ public class Hudson extends Jenkins {
* if appropriate), then identify a suitable {@link hudson.security.AccessControlled} object to check its permission
* against.
*/
@Deprecated
public
static
boolean
isAdmin
()
{
return
Jenkins
.
getInstance
().
getACL
().
hasPermission
(
ADMINISTER
);
}
...
...
@@ -294,6 +312,7 @@ public class Hudson extends Jenkins {
* Define a custom {@link hudson.security.Permission} and check against ACL.
* See {@link #isAdmin()} for more instructions.
*/
@Deprecated
public
static
boolean
isAdmin
(
StaplerRequest
req
)
{
return
isAdmin
();
}
...
...
@@ -305,6 +324,7 @@ public class Hudson extends Jenkins {
/**
* @deprecated only here for backward comp
*/
@Deprecated
public
static
final
class
MasterComputer
extends
Jenkins
.
MasterComputer
{
// no op
}
...
...
@@ -312,6 +332,7 @@ public class Hudson extends Jenkins {
/**
* @deprecated only here for backward comp
*/
@Deprecated
public
static
class
CloudList
extends
Jenkins
.
CloudList
{
public
CloudList
(
Jenkins
h
)
{
super
(
h
);
...
...
core/src/main/java/hudson/model/Item.java
浏览文件 @
1709ed3a
...
...
@@ -176,6 +176,7 @@ public interface Item extends PersistenceRoot, SearchableModelObject, AccessCont
* This method is only intended for the remote API clients who cannot resolve relative references
* (even this won't work for the same reason, which should be fixed.)
*/
@Deprecated
String
getAbsoluteUrl
();
/**
...
...
core/src/main/java/hudson/model/Items.java
浏览文件 @
1709ed3a
...
...
@@ -66,6 +66,7 @@ public class Items {
* @deprecated as of 1.286
* Use {@link #all()} for read access and {@link Extension} for registration.
*/
@Deprecated
public
static
final
List
<
TopLevelItemDescriptor
>
LIST
=
(
List
)
new
DescriptorList
<
TopLevelItem
>(
TopLevelItem
.
class
);
/**
...
...
@@ -172,6 +173,7 @@ public class Items {
* @deprecated as of 1.406
* Use {@link #fromNameList(ItemGroup, String, Class)}
*/
@Deprecated
public
static
<
T
extends
Item
>
List
<
T
>
fromNameList
(
String
list
,
Class
<
T
>
type
)
{
return
fromNameList
(
null
,
list
,
type
);
}
...
...
core/src/main/java/hudson/model/JDK.java
浏览文件 @
1709ed3a
...
...
@@ -80,6 +80,7 @@ public final class JDK extends ToolInstallation implements NodeSpecific<JDK>, En
* @deprecated as of 1.304
* Use {@link #getHome()}
*/
@Deprecated
public
String
getJavaHome
()
{
return
getHome
();
}
...
...
@@ -108,6 +109,7 @@ public final class JDK extends ToolInstallation implements NodeSpecific<JDK>, En
/**
* @deprecated as of 1.460. Use {@link #buildEnvVars(EnvVars)}
*/
@Deprecated
public
void
buildEnvVars
(
Map
<
String
,
String
>
env
)
{
String
home
=
getHome
();
if
(
home
==
null
)
{
...
...
core/src/main/java/hudson/model/Job.java
浏览文件 @
1709ed3a
...
...
@@ -442,6 +442,7 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
* @deprecated as of 1.503
* Use {@link #getBuildDiscarder()}.
*/
@Deprecated
public
LogRotator
getLogRotator
()
{
if
(
logRotator
instanceof
LogRotator
)
return
(
LogRotator
)
logRotator
;
...
...
@@ -452,6 +453,7 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
* @deprecated as of 1.503
* Use {@link #setBuildDiscarder(BuildDiscarder)}
*/
@Deprecated
public
void
setLogRotator
(
LogRotator
logRotator
)
throws
IOException
{
setBuildDiscarder
(
logRotator
);
}
...
...
@@ -744,6 +746,7 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
* as of 1.372. Should just do {@code getBuilds().byTimestamp(s,e)} to avoid code bloat in {@link Job}.
*/
@WithBridgeMethods
(
List
.
class
)
@Deprecated
public
RunList
<
RunT
>
getBuildsByTimestamp
(
long
start
,
long
end
)
{
return
getBuilds
().
byTimestamp
(
start
,
end
);
}
...
...
core/src/main/java/hudson/model/JobProperty.java
浏览文件 @
1709ed3a
...
...
@@ -104,6 +104,7 @@ public abstract class JobProperty<J extends Job<?,?>> implements ReconfigurableD
* @deprecated
* as of 1.341. Override {@link #getJobActions(Job)} instead.
*/
@Deprecated
public
Action
getJobAction
(
J
job
)
{
return
null
;
}
...
...
core/src/main/java/hudson/model/Jobs.java
浏览文件 @
1709ed3a
...
...
@@ -34,6 +34,7 @@ import java.util.List;
* @author Kohsuke Kawaguchi
* @deprecated since 1.281
*/
@Deprecated
public
class
Jobs
{
/**
* List of all installed {@link JobPropertyDescriptor} types.
...
...
@@ -47,6 +48,7 @@ public class Jobs {
* Use {@link JobPropertyDescriptor#all()} for read access,
* and {@link Extension} for registration.
*/
@Deprecated
public
static
final
List
<
JobPropertyDescriptor
>
PROPERTIES
=
(
List
)
new
DescriptorList
<
JobProperty
<?>>((
Class
)
JobProperty
.
class
);
}
core/src/main/java/hudson/model/LargeText.java
浏览文件 @
1709ed3a
...
...
@@ -50,6 +50,7 @@ import java.io.InputStreamReader;
* @author Kohsuke Kawaguchi
* @deprecated moved to stapler, as of Hudson 1.220
*/
@Deprecated
public
class
LargeText
{
/**
* Represents the data source of this text.
...
...
core/src/main/java/hudson/model/LoadBalancer.java
浏览文件 @
1709ed3a
...
...
@@ -128,6 +128,7 @@ public abstract class LoadBalancer implements ExtensionPoint {
* @deprecated as of 1.377
* The only implementation in the core now is the one based on consistent hash.
*/
@Deprecated
public
static
final
LoadBalancer
DEFAULT
=
CONSISTENT_HASH
;
...
...
core/src/main/java/hudson/model/ManagementLink.java
浏览文件 @
1709ed3a
...
...
@@ -97,6 +97,7 @@ public abstract class ManagementLink implements ExtensionPoint, Action {
* @deprecated as of 1.286
* Use {@link #all()} for read access and put {@link Extension} for registration.
*/
@Deprecated
public
static
final
List
<
ManagementLink
>
LIST
=
ExtensionListView
.
createList
(
ManagementLink
.
class
);
/**
...
...
core/src/main/java/hudson/model/MultiStageTimeSeries.java
浏览文件 @
1709ed3a
...
...
@@ -110,6 +110,7 @@ public class MultiStageTimeSeries implements Serializable {
* @deprecated since 2009-04-05.
* Use {@link #MultiStageTimeSeries(Localizable, Color, float, float)}
*/
@Deprecated
public
MultiStageTimeSeries
(
float
initialValue
,
float
decay
)
{
this
(
Messages
.
_MultiStageTimeSeries_EMPTY_STRING
(),
Color
.
WHITE
,
initialValue
,
decay
);
}
...
...
core/src/main/java/hudson/model/Node.java
浏览文件 @
1709ed3a
...
...
@@ -133,6 +133,7 @@ public abstract class Node extends AbstractModelObject implements Reconfigurable
*
* @deprecated to indicate that this method isn't really meant to be called by random code.
*/
@Deprecated
public
abstract
void
setNodeName
(
String
name
);
/**
...
...
@@ -330,6 +331,7 @@ public abstract class Node extends AbstractModelObject implements Reconfigurable
* @deprecated as of 1.413
* Use {@link #canTake(Queue.BuildableItem)}
*/
@Deprecated
public
CauseOfBlockage
canTake
(
Task
task
)
{
return
null
;
}
...
...
core/src/main/java/hudson/model/OverallLoadStatistics.java
浏览文件 @
1709ed3a
...
...
@@ -48,6 +48,7 @@ public class OverallLoadStatistics extends LoadStatistics {
*/
@Exported
@Restricted
(
NoExternalUse
.
class
)
@Deprecated
public
final
MultiStageTimeSeries
totalQueueLength
=
queueLength
;
public
OverallLoadStatistics
()
{
...
...
core/src/main/java/hudson/model/PageDecorator.java
浏览文件 @
1709ed3a
...
...
@@ -79,6 +79,7 @@ public abstract class PageDecorator extends Descriptor<PageDecorator> implements
* @deprecated as of 1.425
* Use the default constructor that's less error prone
*/
@Deprecated
protected
PageDecorator
(
Class
<?
extends
PageDecorator
>
yourClass
)
{
super
(
yourClass
);
}
...
...
@@ -119,6 +120,7 @@ public abstract class PageDecorator extends Descriptor<PageDecorator> implements
* @deprecated as of 1.286
* Use {@link #all()} for read access, and use {@link Extension} for registration.
*/
@Deprecated
public
static
final
List
<
PageDecorator
>
ALL
=
(
List
)
new
DescriptorList
<
PageDecorator
>(
PageDecorator
.
class
);
/**
...
...
core/src/main/java/hudson/model/ParameterDefinition.java
浏览文件 @
1709ed3a
...
...
@@ -232,6 +232,7 @@ public abstract class ParameterDefinition implements
* @deprecated as of 1.286
* Use {@link #all()} for read access, and {@link Extension} for registration.
*/
@Deprecated
public
static
final
DescriptorList
<
ParameterDefinition
>
LIST
=
new
DescriptorList
<
ParameterDefinition
>(
ParameterDefinition
.
class
);
public
abstract
static
class
ParameterDescriptor
extends
...
...
core/src/main/java/hudson/model/ParameterValue.java
浏览文件 @
1709ed3a
...
...
@@ -127,6 +127,7 @@ public abstract class ParameterValue implements Serializable {
* @deprecated as of 1.344
* Use {@link #buildEnvironment(Run, EnvVars)} instead.
*/
@Deprecated
public
void
buildEnvVars
(
AbstractBuild
<?,?>
build
,
Map
<
String
,
String
>
env
)
{
if
(
env
instanceof
EnvVars
)
{
if
(
Util
.
isOverridden
(
ParameterValue
.
class
,
getClass
(),
"buildEnvironment"
,
Run
.
class
,
EnvVars
.
class
))
{
...
...
@@ -222,6 +223,7 @@ public abstract class ParameterValue implements Serializable {
* instead copy them in {@link ParameterDefinition#createValue(StaplerRequest, JSONObject)}
* into {@link ParameterValue}.
*/
@Deprecated
public
ParameterDefinition
getDefinition
()
{
throw
new
UnsupportedOperationException
();
}
...
...
core/src/main/java/hudson/model/ParametersAction.java
浏览文件 @
1709ed3a
...
...
@@ -64,6 +64,7 @@ public class ParametersAction implements Action, Iterable<ParameterValue>, Queue
/**
* @deprecated since 1.283; kept to avoid warnings loading old build data, but now transient.
*/
@Deprecated
private
transient
AbstractBuild
<?,
?>
build
;
public
ParametersAction
(
List
<
ParameterValue
>
parameters
)
{
...
...
core/src/main/java/hudson/model/PeriodicWork.java
浏览文件 @
1709ed3a
...
...
@@ -60,6 +60,7 @@ public abstract class PeriodicWork extends SafeTimerTask implements ExtensionPoi
/** @deprecated Use your own logger, or send messages to the logger in {@link AsyncPeriodicWork#execute}. */
@SuppressWarnings
(
"NonConstantLogger"
)
@Deprecated
protected
final
Logger
logger
=
Logger
.
getLogger
(
getClass
().
getName
());
/**
...
...
core/src/main/java/hudson/model/Project.java
浏览文件 @
1709ed3a
...
...
@@ -130,6 +130,7 @@ public abstract class Project<P extends Project<P,B>,B extends Build<P,B>>
* We will be soon removing the restriction that only one instance of publisher is allowed per type.
* Use {@link #getPublishersList()} instead.
*/
@Deprecated
public
Map
<
Descriptor
<
Publisher
>,
Publisher
>
getPublishers
()
{
return
getPublishersList
().
toMap
();
}
...
...
@@ -177,6 +178,7 @@ public abstract class Project<P extends Project<P,B>,B extends Build<P,B>>
* @deprecated as of 1.290
* Use {@code getPublishersList().add(x)}
*/
@Deprecated
public
void
addPublisher
(
Publisher
buildStep
)
throws
IOException
{
getPublishersList
().
add
(
buildStep
);
}
...
...
@@ -187,6 +189,7 @@ public abstract class Project<P extends Project<P,B>,B extends Build<P,B>>
* @deprecated as of 1.290
* Use {@code getPublishersList().remove(x)}
*/
@Deprecated
public
void
removePublisher
(
Descriptor
<
Publisher
>
descriptor
)
throws
IOException
{
getPublishersList
().
remove
(
descriptor
);
}
...
...
core/src/main/java/hudson/model/Queue.java
浏览文件 @
1709ed3a
...
...
@@ -519,6 +519,7 @@ public class Queue extends ResourceController implements Saveable {
* @deprecated as of 1.311
* Use {@link #schedule(AbstractProject)}
*/
@Deprecated
public
boolean
add
(
AbstractProject
p
)
{
return
schedule
(
p
)!=
null
;
}
...
...
@@ -541,6 +542,7 @@ public class Queue extends ResourceController implements Saveable {
* @deprecated as of 1.311
* Use {@link #schedule(Task, int)}
*/
@Deprecated
public
boolean
add
(
AbstractProject
p
,
int
quietPeriod
)
{
return
schedule
(
p
,
quietPeriod
)!=
null
;
}
...
...
@@ -549,6 +551,7 @@ public class Queue extends ResourceController implements Saveable {
* @deprecated as of 1.521
* Use {@link #schedule2(Task, int, List)}
*/
@Deprecated
public
WaitingItem
schedule
(
Task
p
,
int
quietPeriod
,
List
<
Action
>
actions
)
{
return
schedule2
(
p
,
quietPeriod
,
actions
).
getCreateItem
();
}
...
...
@@ -684,6 +687,7 @@ public class Queue extends ResourceController implements Saveable {
* @deprecated as of 1.311
* Use {@link #schedule(Task, int)}
*/
@Deprecated
public
boolean
add
(
Task
p
,
int
quietPeriod
)
{
return
schedule
(
p
,
quietPeriod
)!=
null
;
}
...
...
@@ -696,6 +700,7 @@ public class Queue extends ResourceController implements Saveable {
* @deprecated as of 1.311
* Use {@link #schedule(Task, int, Action...)}
*/
@Deprecated
public
boolean
add
(
Task
p
,
int
quietPeriod
,
Action
...
actions
)
{
return
schedule
(
p
,
quietPeriod
,
actions
)!=
null
;
}
...
...
@@ -1453,6 +1458,7 @@ public class Queue extends ResourceController implements Saveable {
}
/** @deprecated Use {@link #isBlockedByShutdown} instead. */
@Deprecated
public
static
boolean
ifBlockedByHudsonShutdown
(
Task
task
)
{
return
isBlockedByShutdown
(
task
);
}
...
...
@@ -1530,6 +1536,7 @@ public class Queue extends ResourceController implements Saveable {
* @deprecated as of 1.330
* Use {@link CauseOfBlockage#getShortDescription()} instead.
*/
@Deprecated
String
getWhyBlocked
();
/**
...
...
core/src/main/java/hudson/model/Run.java
浏览文件 @
1709ed3a
...
...
@@ -984,6 +984,7 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
* This method is only intended for the remote API clients who cannot resolve relative references.
*/
@Exported
(
visibility
=
2
,
name
=
"url"
)
@Deprecated
public
final
@Nonnull
String
getAbsoluteUrl
()
{
return
project
.
getAbsoluteUrl
()+
getNumber
()+
'/'
;
}
...
...
@@ -1554,6 +1555,7 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
* @deprecated as of 1.467
* Please use {@link RunExecution}
*/
@Deprecated
protected
abstract
class
Runner
extends
RunExecution
{}
/**
...
...
@@ -1675,6 +1677,7 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
* @deprecated as of 1.467
* Use {@link #execute(RunExecution)}
*/
@Deprecated
protected
final
void
run
(
@Nonnull
Runner
job
)
{
execute
(
job
);
}
...
...
@@ -2105,6 +2108,7 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
* @deprecated as of 1.352
* Use {@code getLogText().doProgressiveText(req,rsp)}
*/
@Deprecated
public
void
doProgressiveLog
(
StaplerRequest
req
,
StaplerResponse
rsp
)
throws
IOException
{
getLogText
().
doProgressText
(
req
,
rsp
);
}
...
...
@@ -2192,6 +2196,7 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
* @deprecated as of 1.292
* Use {@link #getEnvironment(TaskListener)} instead.
*/
@Deprecated
public
Map
<
String
,
String
>
getEnvVars
()
{
LOGGER
.
log
(
WARNING
,
"deprecated call to Run.getEnvVars\n\tat {0}"
,
new
Throwable
().
getStackTrace
()[
1
]);
try
{
...
...
@@ -2206,6 +2211,7 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
/**
* @deprecated as of 1.305 use {@link #getEnvironment(TaskListener)}
*/
@Deprecated
public
EnvVars
getEnvironment
()
throws
IOException
,
InterruptedException
{
LOGGER
.
log
(
WARNING
,
"deprecated call to Run.getEnvironment\n\tat {0}"
,
new
Throwable
().
getStackTrace
()[
1
]);
return
getEnvironment
(
new
LogTaskListener
(
LOGGER
,
Level
.
INFO
));
...
...
core/src/main/java/hudson/model/RunMap.java
浏览文件 @
1709ed3a
...
...
@@ -74,6 +74,7 @@ public final class RunMap<R extends Run<?,R>> extends AbstractLazyLoadRunMap<R>
* @deprecated as of 1.485
* Use {@link #RunMap(File, Constructor)}.
*/
@Deprecated
public
RunMap
()
{
super
(
null
);
// will be set later
}
...
...
@@ -152,6 +153,7 @@ public final class RunMap<R extends Run<?,R>> extends AbstractLazyLoadRunMap<R>
* @deprecated as of 1.485
* Use {@link ReverseComparator}
*/
@Deprecated
public
static
final
Comparator
<
Comparable
>
COMPARATOR
=
new
Comparator
<
Comparable
>()
{
public
int
compare
(
Comparable
o1
,
Comparable
o2
)
{
return
-
o1
.
compareTo
(
o2
);
...
...
@@ -247,6 +249,7 @@ public final class RunMap<R extends Run<?,R>> extends AbstractLazyLoadRunMap<R>
* @deprecated as of 1.485
* Use {@link #RunMap(File, Constructor)}
*/
@Deprecated
public
void
load
(
Job
job
,
Constructor
<
R
>
cons
)
{
this
.
cons
=
cons
;
initBaseDir
(
job
.
getBuildDir
());
...
...
core/src/main/java/hudson/model/RunParameterDefinition.java
浏览文件 @
1709ed3a
...
...
@@ -74,6 +74,7 @@ public class RunParameterDefinition extends SimpleParameterDefinition {
/**
* @deprecated as of 1.517
*/
@Deprecated
public
RunParameterDefinition
(
String
name
,
String
projectName
,
String
description
)
{
// delegate to updated constructor with additional RunParameterFilter parameter defaulted to ALL.
this
(
name
,
projectName
,
description
,
RunParameterFilter
.
ALL
);
...
...
core/src/main/java/hudson/model/SCMedItem.java
浏览文件 @
1709ed3a
...
...
@@ -30,6 +30,7 @@ import jenkins.triggers.SCMTriggerItem;
/**
* @deprecated Implement {@link SCMTriggerItem} instead.
*/
@Deprecated
public
interface
SCMedItem
extends
BuildableItem
{
/**
* Gets the {@link SCM} for this item.
...
...
@@ -55,6 +56,7 @@ public interface SCMedItem extends BuildableItem {
* @deprecated as of 1.346
* Use {@link #poll(TaskListener)} instead.
*/
@Deprecated
boolean
pollSCMChanges
(
TaskListener
listener
);
/**
...
...
core/src/main/java/hudson/model/Slave.java
浏览文件 @
1709ed3a
...
...
@@ -451,6 +451,7 @@ public abstract class Slave extends Node implements Serializable {
* "ssh myslave java -jar /path/to/hudson-remoting.jar"
* @deprecated in 1.216
*/
@Deprecated
private
transient
String
agentCommand
;
/**
...
...
core/src/main/java/hudson/model/StreamBuildListener.java
浏览文件 @
1709ed3a
...
...
@@ -57,6 +57,7 @@ public class StreamBuildListener extends StreamTaskListener implements BuildList
* The caller should use {@link #StreamBuildListener(OutputStream, Charset)} to pass in
* the charset and output stream separately, so that this class can handle encoding correctly.
*/
@Deprecated
public
StreamBuildListener
(
PrintStream
w
)
{
super
(
w
);
}
...
...
core/src/main/java/hudson/model/TaskAction.java
浏览文件 @
1709ed3a
...
...
@@ -80,6 +80,7 @@ public abstract class TaskAction extends AbstractModelObject implements Action {
* @deprecated as of 1.350
* Use {@link #obtainLog()}, which returns the same object in a more type-safe signature.
*/
@Deprecated
public
LargeText
getLog
()
{
return
obtainLog
();
}
...
...
core/src/main/java/hudson/model/TaskThread.java
浏览文件 @
1709ed3a
...
...
@@ -51,6 +51,7 @@ public abstract class TaskThread extends Thread {
* @deprecated as of Hudson 1.350
* Use {@link #log}. It's the same object, in a better type.
*/
@Deprecated
private
final
LargeText
text
;
/**
...
...
@@ -163,6 +164,7 @@ public abstract class TaskThread extends Thread {
* @deprecated as of Hudson 1.350
* Use {@link #forMemory(TaskAction)} and pass in the calling {@link TaskAction}
*/
@Deprecated
public
static
ListenerAndText
forMemory
()
{
return
forMemory
(
null
);
}
...
...
@@ -171,6 +173,7 @@ public abstract class TaskThread extends Thread {
* @deprecated as of Hudson 1.350
* Use {@link #forFile(File, TaskAction)} and pass in the calling {@link TaskAction}
*/
@Deprecated
public
static
ListenerAndText
forFile
(
File
f
)
throws
IOException
{
return
forFile
(
f
,
null
);
}
...
...
core/src/main/java/hudson/model/TopLevelItemDescriptor.java
浏览文件 @
1709ed3a
...
...
@@ -125,6 +125,7 @@ public abstract class TopLevelItemDescriptor extends Descriptor<TopLevelItem> {
* @deprecated as of 1.390
* Use {@link #newInstance(ItemGroup, String)}
*/
@Deprecated
public
TopLevelItem
newInstance
(
String
name
)
{
return
newInstance
(
Jenkins
.
getInstance
(),
name
);
}
...
...
core/src/main/java/hudson/model/TransientBuildActionFactory.java
浏览文件 @
1709ed3a
...
...
@@ -37,6 +37,7 @@ public abstract class TransientBuildActionFactory implements ExtensionPoint {
* @deprecated as of 1.461
* Override and call {@link #createFor(Run)} instead.
*/
@Deprecated
public
Collection
<?
extends
Action
>
createFor
(
AbstractBuild
target
)
{
return
Collections
.
emptyList
();
}
...
...
@@ -47,4 +48,4 @@ public abstract class TransientBuildActionFactory implements ExtensionPoint {
public
static
ExtensionList
<
TransientBuildActionFactory
>
all
()
{
return
ExtensionList
.
lookup
(
TransientBuildActionFactory
.
class
);
}
}
\ No newline at end of file
}
core/src/main/java/hudson/model/UpdateCenter.java
浏览文件 @
1709ed3a
...
...
@@ -320,6 +320,7 @@ public class UpdateCenter extends AbstractModelObject implements Saveable, OnMas
* TODO: revisit tool update mechanism, as that should be de-centralized, too. In the mean time,
* please try not to use this method, and instead ping us to get this part completed.
*/
@Deprecated
public
String
getDefaultBaseUrl
()
{
return
config
.
getUpdateCenterUrl
();
}
...
...
@@ -842,6 +843,7 @@ public class UpdateCenter extends AbstractModelObject implements Saveable, OnMas
* is now a part of the <tt>update-center.json</tt> file. See
* <tt>http://jenkins-ci.org/update-center.json</tt> as an example.
*/
@Deprecated
public
String
getConnectionCheckUrl
()
{
return
"http://www.google.com"
;
}
...
...
@@ -856,6 +858,7 @@ public class UpdateCenter extends AbstractModelObject implements Saveable, OnMas
* @return
* Absolute URL that ends with '/'.
*/
@Deprecated
public
String
getUpdateCenterUrl
()
{
return
UPDATE_CENTER_URL
;
}
...
...
@@ -867,6 +870,7 @@ public class UpdateCenter extends AbstractModelObject implements Saveable, OnMas
* <tt>update-center.json</tt> is now signed, so we don't have to further make sure that
* we aren't downloading from anywhere unsecure.
*/
@Deprecated
public
String
getPluginRepositoryBaseUrl
()
{
return
"http://jenkins-ci.org/"
;
}
...
...
@@ -920,6 +924,7 @@ public class UpdateCenter extends AbstractModelObject implements Saveable, OnMas
* @deprecated as of 1.326
* Use {@link #submit()} instead.
*/
@Deprecated
public
void
schedule
()
{
submit
();
}
...
...
@@ -1270,6 +1275,7 @@ public class UpdateCenter extends AbstractModelObject implements Saveable, OnMas
/**
* @deprecated as of 1.442
*/
@Deprecated
public
InstallationJob
(
Plugin
plugin
,
UpdateSite
site
,
Authentication
auth
)
{
this
(
plugin
,
site
,
auth
,
false
);
}
...
...
@@ -1565,6 +1571,7 @@ public class UpdateCenter extends AbstractModelObject implements Saveable, OnMas
* @deprecated as of 1.333
* Use {@link UpdateSite#neverUpdate}
*/
@Deprecated
public
static
boolean
neverUpdate
=
Boolean
.
getBoolean
(
UpdateCenter
.
class
.
getName
()+
".never"
);
public
static
final
XStream2
XSTREAM
=
new
XStream2
();
...
...
core/src/main/java/hudson/model/UpdateSite.java
浏览文件 @
1709ed3a
...
...
@@ -406,6 +406,7 @@ public class UpdateSite {
* @deprecated
* Exposed only for UI.
*/
@Deprecated
public
String
getDownloadUrl
()
{
/*
HACKISH:
...
...
@@ -768,6 +769,7 @@ public class UpdateSite {
* @deprecated as of 1.326
* Use {@link #deploy()}.
*/
@Deprecated
public
void
install
()
{
deploy
();
}
...
...
core/src/main/java/hudson/model/User.java
浏览文件 @
1709ed3a
...
...
@@ -357,6 +357,7 @@ public class User extends AbstractModelObject implements AccessControlled, Descr
* {@code create} is false.
* @deprecated use {@link User#get(String, boolean, java.util.Map)}
*/
@Deprecated
public
static
@Nullable
User
get
(
String
idOrFullName
,
boolean
create
)
{
return
get
(
idOrFullName
,
create
,
Collections
.
emptyMap
());
}
...
...
core/src/main/java/hudson/model/UserProperties.java
浏览文件 @
1709ed3a
...
...
@@ -33,10 +33,12 @@ import java.util.List;
* @author Kohsuke Kawaguchi
* @deprecated as of 1.286
*/
@Deprecated
public
class
UserProperties
{
/**
* @deprecated as of 1.286
* Use {@link UserProperty#all()} for read access and {@link Extension} for auto-registration.
*/
@Deprecated
public
static
final
List
<
UserPropertyDescriptor
>
LIST
=
(
List
)
new
DescriptorList
<
UserProperty
>(
UserProperty
.
class
);
}
core/src/main/java/hudson/model/View.java
浏览文件 @
1709ed3a
...
...
@@ -655,6 +655,7 @@ public abstract class View extends AbstractModelObject implements AccessControll
* Does this {@link View} has any associated user information recorded?
* @deprecated Potentially very expensive call; do not use from Jelly views.
*/
@Deprecated
public
boolean
hasPeople
()
{
return
People
.
isApplicable
(
getItems
());
}
...
...
@@ -738,6 +739,7 @@ public abstract class View extends AbstractModelObject implements AccessControll
/**
* @deprecated Potentially very expensive call; do not use from Jelly views.
*/
@Deprecated
public
static
boolean
isApplicable
(
Collection
<?
extends
Item
>
items
)
{
for
(
Item
item
:
items
)
{
for
(
Job
job
:
item
.
getAllJobs
())
{
...
...
@@ -1116,6 +1118,7 @@ public abstract class View extends AbstractModelObject implements AccessControll
* @deprecated as of 1.286
* Use {@link #all()} for read access, and use {@link Extension} for registration.
*/
@Deprecated
public
static
final
DescriptorList
<
View
>
LIST
=
new
DescriptorList
<
View
>(
View
.
class
);
/**
...
...
core/src/main/java/hudson/model/ViewJob.java
浏览文件 @
1709ed3a
...
...
@@ -79,6 +79,7 @@ public abstract class ViewJob<JobT extends ViewJob<JobT,RunT>, RunT extends Run<
/**
* @deprecated as of 1.390
*/
@Deprecated
protected
ViewJob
(
Jenkins
parent
,
String
name
)
{
super
(
parent
,
name
);
}
...
...
core/src/main/java/hudson/model/listeners/ItemListener.java
浏览文件 @
1709ed3a
...
...
@@ -148,6 +148,7 @@ public class ItemListener implements ExtensionPoint {
* @deprecated as of 1.286
* put {@link Extension} on your class to have it auto-registered.
*/
@Deprecated
public
void
register
()
{
all
().
add
(
this
);
}
...
...
core/src/main/java/hudson/model/listeners/RunListener.java
浏览文件 @
1709ed3a
...
...
@@ -171,6 +171,7 @@ public abstract class RunListener<R extends Run> implements ExtensionPoint {
* @deprecated as of 1.281
* Put {@link Extension} on your class to get it auto-registered.
*/
@Deprecated
public
void
register
()
{
all
().
add
(
this
);
}
...
...
@@ -187,6 +188,7 @@ public abstract class RunListener<R extends Run> implements ExtensionPoint {
* @deprecated as of 1.281
* Use {@link #all()} for read access, and use {@link Extension} for registration.
*/
@Deprecated
public
static
final
CopyOnWriteList
<
RunListener
>
LISTENERS
=
ExtensionListView
.
createCopyOnWriteList
(
RunListener
.
class
);
/**
...
...
core/src/main/java/hudson/model/listeners/SaveableListener.java
浏览文件 @
1709ed3a
...
...
@@ -60,6 +60,7 @@ public abstract class SaveableListener implements ExtensionPoint {
* @deprecated as of 1.281
* Put {@link Extension} on your class to get it auto-registered.
*/
@Deprecated
public
void
register
()
{
all
().
add
(
this
);
}
...
...
core/src/main/java/hudson/model/queue/LoadPredictor.java
浏览文件 @
1709ed3a
...
...
@@ -73,6 +73,7 @@ public abstract class LoadPredictor implements ExtensionPoint {
* @deprecated as of 1.380
* Use {@link #predict(MappingWorksheet, Computer, long, long)}
*/
@Deprecated
public
Iterable
<
FutureLoad
>
predict
(
Computer
computer
,
long
start
,
long
end
)
{
return
Collections
.
emptyList
();
}
...
...
core/src/main/java/hudson/model/queue/QueueTaskDispatcher.java
浏览文件 @
1709ed3a
...
...
@@ -68,6 +68,7 @@ public abstract class QueueTaskDispatcher implements ExtensionPoint {
* @deprecated since 1.413
* Use {@link #canTake(Node, Queue.BuildableItem)}
*/
@Deprecated
public
@CheckForNull
CauseOfBlockage
canTake
(
Node
node
,
Task
task
)
{
return
null
;
}
...
...
core/src/main/java/hudson/node_monitors/AbstractNodeMonitorDescriptor.java
浏览文件 @
1709ed3a
...
...
@@ -58,6 +58,7 @@ public abstract class AbstractNodeMonitorDescriptor<T> extends Descriptor<NodeMo
* @deprecated as of 1.522
* Extend from {@link AbstractAsyncNodeMonitorDescriptor}
*/
@Deprecated
protected
AbstractNodeMonitorDescriptor
()
{
this
(
HOUR
);
}
...
...
@@ -66,6 +67,7 @@ public abstract class AbstractNodeMonitorDescriptor<T> extends Descriptor<NodeMo
* @deprecated as of 1.522
* Extend from {@link AbstractAsyncNodeMonitorDescriptor}
*/
@Deprecated
protected
AbstractNodeMonitorDescriptor
(
long
interval
)
{
schedule
(
interval
);
}
...
...
@@ -74,6 +76,7 @@ public abstract class AbstractNodeMonitorDescriptor<T> extends Descriptor<NodeMo
* @deprecated as of 1.522
* Extend from {@link AbstractAsyncNodeMonitorDescriptor}
*/
@Deprecated
protected
AbstractNodeMonitorDescriptor
(
Class
<?
extends
NodeMonitor
>
clazz
)
{
this
(
clazz
,
HOUR
);
}
...
...
@@ -82,6 +85,7 @@ public abstract class AbstractNodeMonitorDescriptor<T> extends Descriptor<NodeMo
* @deprecated as of 1.522
* Extend from {@link AbstractAsyncNodeMonitorDescriptor}
*/
@Deprecated
protected
AbstractNodeMonitorDescriptor
(
Class
<?
extends
NodeMonitor
>
clazz
,
long
interval
)
{
super
(
clazz
);
...
...
@@ -243,6 +247,7 @@ public abstract class AbstractNodeMonitorDescriptor<T> extends Descriptor<NodeMo
* @deprecated as of 1.320
* Use {@link #markOffline(Computer, OfflineCause)} to specify the cause.
*/
@Deprecated
protected
boolean
markOffline
(
Computer
c
)
{
return
markOffline
(
c
,
null
);
}
...
...
core/src/main/java/hudson/node_monitors/NodeMonitor.java
浏览文件 @
1709ed3a
...
...
@@ -139,6 +139,7 @@ public abstract class NodeMonitor implements ExtensionPoint, Describable<NodeMon
* @deprecated as of 1.286.
* Use {@link #all()} for read access and {@link Extension} for registration.
*/
@Deprecated
public
static
final
DescriptorList
<
NodeMonitor
>
LIST
=
new
DescriptorList
<
NodeMonitor
>(
NodeMonitor
.
class
);
/**
...
...
core/src/main/java/hudson/os/solaris/ZFSProvisioner.java
浏览文件 @
1709ed3a
...
...
@@ -102,6 +102,7 @@ public class ZFSProvisioner extends FileSystemProvisioner implements Serializabl
/**
* @deprecated as of 1.350
*/
@Deprecated
public
WorkspaceSnapshot
snapshot
(
AbstractBuild
<?,
?>
build
,
FilePath
ws
,
TaskListener
listener
)
throws
IOException
,
InterruptedException
{
throw
new
UnsupportedOperationException
();
}
...
...
core/src/main/java/hudson/scheduler/CronTab.java
浏览文件 @
1709ed3a
...
...
@@ -70,6 +70,7 @@ public final class CronTab {
* @deprecated as of 1.448
* Use {@link #CronTab(String, int, Hash)}
*/
@Deprecated
public
CronTab
(
String
format
,
int
line
)
throws
ANTLRException
{
set
(
format
,
line
,
null
);
}
...
...
core/src/main/java/hudson/scm/ChangeLogAnnotator.java
浏览文件 @
1709ed3a
...
...
@@ -98,6 +98,7 @@ public abstract class ChangeLogAnnotator implements ExtensionPoint {
* @deprecated as of 1.286
* Prefer automatic registration via {@link Extension}
*/
@Deprecated
public
final
void
register
()
{
all
().
add
(
this
);
}
...
...
@@ -115,6 +116,7 @@ public abstract class ChangeLogAnnotator implements ExtensionPoint {
* @deprecated as of 1.286
* Use {@link #all()} for read access, and {@link Extension} for registration.
*/
@Deprecated
public
static
final
CopyOnWriteList
<
ChangeLogAnnotator
>
annotators
=
ExtensionListView
.
createCopyOnWriteList
(
ChangeLogAnnotator
.
class
);
/**
...
...
core/src/main/java/hudson/scm/RepositoryBrowsers.java
浏览文件 @
1709ed3a
...
...
@@ -46,6 +46,7 @@ public class RepositoryBrowsers {
* @deprecated as of 1.286.
* Use {@link RepositoryBrowser#all()} for read access and {@link Extension} for registration.
*/
@Deprecated
public
static
final
List
<
Descriptor
<
RepositoryBrowser
<?>>>
LIST
=
new
DescriptorList
<
RepositoryBrowser
<?>>((
Class
)
RepositoryBrowser
.
class
);
/**
...
...
@@ -65,6 +66,7 @@ public class RepositoryBrowsers {
* @deprecated since 2008-06-19.
* Use {@link #createInstance(Class, StaplerRequest, JSONObject, String)}.
*/
@Deprecated
public
static
<
T
extends
RepositoryBrowser
>
T
createInstance
(
Class
<
T
>
type
,
StaplerRequest
req
,
String
fieldName
)
throws
FormException
{
List
<
Descriptor
<
RepositoryBrowser
<?>>>
list
=
filter
(
type
);
...
...
core/src/main/java/hudson/scm/SCM.java
浏览文件 @
1709ed3a
...
...
@@ -268,6 +268,7 @@ public abstract class SCM implements Describable<SCM>, ExtensionPoint {
*
* Call {@link #poll(AbstractProject, Launcher, FilePath, TaskListener, SCMRevisionState)} for use instead.
*/
@Deprecated
public
boolean
pollChanges
(
AbstractProject
<?,?>
project
,
Launcher
launcher
,
FilePath
workspace
,
TaskListener
listener
)
throws
IOException
,
InterruptedException
{
// up until 1.336, this method was abstract, so everyone should have overridden this method
// without calling super.pollChanges. So the compatibility implementation is purely for
...
...
@@ -578,6 +579,7 @@ public abstract class SCM implements Describable<SCM>, ExtensionPoint {
* @deprecated since 1.382
* Use/override {@link #getModuleRoot(FilePath, AbstractBuild)} instead.
*/
@Deprecated
public
FilePath
getModuleRoot
(
FilePath
workspace
)
{
if
(
Util
.
isOverridden
(
SCM
.
class
,
getClass
(),
"getModuleRoot"
,
FilePath
.
class
,
AbstractBuild
.
class
))
// if the subtype already implements newer getModuleRoot(FilePath,AbstractBuild), call that.
...
...
@@ -632,6 +634,7 @@ public abstract class SCM implements Describable<SCM>, ExtensionPoint {
* @deprecated as of 1.382.
* Use/derive from {@link #getModuleRoots(FilePath, AbstractBuild)} instead.
*/
@Deprecated
public
FilePath
[]
getModuleRoots
(
FilePath
workspace
)
{
if
(
Util
.
isOverridden
(
SCM
.
class
,
getClass
(),
"getModuleRoots"
,
FilePath
.
class
,
AbstractBuild
.
class
))
// if the subtype already derives newer getModuleRoots(FilePath,AbstractBuild), delegate to it
...
...
core/src/main/java/hudson/scm/SCMS.java
浏览文件 @
1709ed3a
...
...
@@ -45,6 +45,7 @@ public class SCMS {
* @deprecated as of 1.286
* Use {@link SCM#all()} for read access and {@link Extension} for registration.
*/
@Deprecated
public
static
final
List
<
SCMDescriptor
<?>>
SCMS
=
(
List
)
new
DescriptorList
<
SCM
>(
SCM
.
class
);
/**
...
...
@@ -67,6 +68,7 @@ public class SCMS {
* @deprecated as of 1.294
* Use {@link #parseSCM(StaplerRequest, AbstractProject)} and pass in the caller's project type.
*/
@Deprecated
public
static
SCM
parseSCM
(
StaplerRequest
req
)
throws
FormException
,
ServletException
{
return
parseSCM
(
req
,
null
);
}
...
...
core/src/main/java/hudson/security/AuthorizationStrategy.java
浏览文件 @
1709ed3a
...
...
@@ -194,6 +194,7 @@ public abstract class AuthorizationStrategy extends AbstractDescribableImpl<Auth
* @deprecated since 1.286
* Use {@link #all()} for read access, and {@link Extension} for registration.
*/
@Deprecated
public
static
final
DescriptorList
<
AuthorizationStrategy
>
LIST
=
new
DescriptorList
<
AuthorizationStrategy
>(
AuthorizationStrategy
.
class
);
/**
...
...
core/src/main/java/hudson/security/DeferredCreationLdapAuthoritiesPopulator.java
浏览文件 @
1709ed3a
...
...
@@ -44,6 +44,7 @@ import hudson.security.SecurityRealm.SecurityComponents;
* {@link SecurityComponents} are now created after {@link SecurityRealm} is created, so
* the initialization order issue that this code was trying to address no longer exists.
*/
@Deprecated
public
class
DeferredCreationLdapAuthoritiesPopulator
implements
LdapAuthoritiesPopulator
{
/**
...
...
core/src/main/java/hudson/security/HudsonFilter.java
浏览文件 @
1709ed3a
...
...
@@ -74,6 +74,7 @@ public class HudsonFilter implements Filter {
* This proxy always delegate to {@code Hudson.getInstance().getSecurityRealm().getSecurityComponents().manager},
* so use that instead.
*/
@Deprecated
public
static
final
AuthenticationManagerProxy
AUTHENTICATION_MANAGER
=
new
AuthenticationManagerProxy
();
/**
...
...
@@ -84,6 +85,7 @@ public class HudsonFilter implements Filter {
* This proxy always delegate to {@code Hudson.getInstance().getSecurityRealm().getSecurityComponents().userDetails},
* so use that instead.
*/
@Deprecated
public
static
final
UserDetailsServiceProxy
USER_DETAILS_SERVICE_PROXY
=
new
UserDetailsServiceProxy
();
/**
...
...
@@ -94,6 +96,7 @@ public class HudsonFilter implements Filter {
* This proxy always delegate to {@code Hudson.getInstance().getSecurityRealm().getSecurityComponents().rememberMe},
* so use that instead.
*/
@Deprecated
public
static
final
RememberMeServicesProxy
REMEMBER_ME_SERVICES_PROXY
=
new
RememberMeServicesProxy
();
public
void
init
(
FilterConfig
filterConfig
)
throws
ServletException
{
...
...
core/src/main/java/hudson/security/HudsonPrivateSecurityRealm.java
浏览文件 @
1709ed3a
...
...
@@ -467,6 +467,7 @@ public class HudsonPrivateSecurityRealm extends AbstractPasswordBasedSecurityRea
* Field kept here to load old (pre 1.283) user records,
* but now marked transient so field is no longer saved.
*/
@Deprecated
private
transient
String
password
;
private
Details
(
String
passwordHash
)
{
...
...
core/src/main/java/hudson/security/InvalidatableUserDetails.java
浏览文件 @
1709ed3a
...
...
@@ -54,6 +54,7 @@ import jenkins.security.NonSerializableSecurityContext;
* Starting 1.285, Hudson stops persisting {@link Authentication} altogether
* (see {@link NonSerializableSecurityContext}), so there's no need to use this mechanism.
*/
@Deprecated
public
interface
InvalidatableUserDetails
extends
UserDetails
{
boolean
isInvalid
();
}
core/src/main/java/hudson/security/Permission.java
浏览文件 @
1709ed3a
...
...
@@ -173,6 +173,7 @@ public final class Permission {
* @deprecated as of 1.421
* Use {@link #Permission(PermissionGroup, String, Localizable, Permission, boolean, PermissionScope[])}
*/
@Deprecated
public
Permission
(
@Nonnull
PermissionGroup
group
,
@Nonnull
String
name
,
@CheckForNull
Localizable
description
,
@CheckForNull
Permission
impliedBy
,
boolean
enable
)
{
this
(
group
,
name
,
description
,
impliedBy
,
enable
,
new
PermissionScope
[]{
PermissionScope
.
JENKINS
});
}
...
...
@@ -181,6 +182,7 @@ public final class Permission {
* @deprecated as of 1.421
* Use {@link #Permission(PermissionGroup, String, Localizable, Permission, PermissionScope)}
*/
@Deprecated
public
Permission
(
@Nonnull
PermissionGroup
group
,
@Nonnull
String
name
,
@CheckForNull
Localizable
description
,
@CheckForNull
Permission
impliedBy
)
{
this
(
group
,
name
,
description
,
impliedBy
,
PermissionScope
.
JENKINS
);
}
...
...
@@ -189,6 +191,7 @@ public final class Permission {
* @deprecated since 1.257.
* Use {@link #Permission(PermissionGroup, String, Localizable, Permission)}
*/
@Deprecated
public
Permission
(
@Nonnull
PermissionGroup
group
,
@Nonnull
String
name
,
@CheckForNull
Permission
impliedBy
)
{
this
(
group
,
name
,
null
,
impliedBy
);
}
...
...
@@ -293,6 +296,7 @@ public final class Permission {
* @deprecated since 2009-01-23.
* Access {@link jenkins.model.Jenkins#PERMISSIONS} instead.
*/
@Deprecated
public
static
final
PermissionGroup
HUDSON_PERMISSIONS
=
new
PermissionGroup
(
Hudson
.
class
,
hudson
.
model
.
Messages
.
_Hudson_Permissions_Title
());
/**
* {@link Permission} that represents the God-like access. Equivalent of Unix root.
...
...
@@ -303,6 +307,7 @@ public final class Permission {
* @deprecated since 2009-01-23.
* Access {@link jenkins.model.Jenkins#ADMINISTER} instead.
*/
@Deprecated
public
static
final
Permission
HUDSON_ADMINISTER
=
new
Permission
(
HUDSON_PERMISSIONS
,
"Administer"
,
hudson
.
model
.
Messages
.
_Hudson_AdministerPermission_Description
(),
null
);
//
...
...
@@ -322,6 +327,7 @@ public final class Permission {
* @deprecated since 2009-01-23.
* Use {@link jenkins.model.Jenkins#ADMINISTER}.
*/
@Deprecated
public
static
final
Permission
FULL_CONTROL
=
new
Permission
(
GROUP
,
"FullControl"
,
null
,
HUDSON_ADMINISTER
);
/**
...
...
core/src/main/java/hudson/security/SecurityRealm.java
浏览文件 @
1709ed3a
...
...
@@ -593,6 +593,7 @@ public abstract class SecurityRealm extends AbstractDescribableImpl<SecurityReal
* @deprecated as of 1.286
* Use {@link #all()} for read access, and use {@link Extension} for registration.
*/
@Deprecated
public
static
final
DescriptorList
<
SecurityRealm
>
LIST
=
new
DescriptorList
<
SecurityRealm
>(
SecurityRealm
.
class
);
/**
...
...
core/src/main/java/hudson/slaves/Channels.java
浏览文件 @
1709ed3a
...
...
@@ -62,6 +62,7 @@ public class Channels {
* @deprecated since 2009-04-13.
* Use {@link #forProcess(String, ExecutorService, InputStream, OutputStream, OutputStream, Proc)}
*/
@Deprecated
public
static
Channel
forProcess
(
String
name
,
ExecutorService
execService
,
InputStream
in
,
OutputStream
out
,
Proc
proc
)
throws
IOException
{
return
forProcess
(
name
,
execService
,
in
,
out
,
null
,
proc
);
}
...
...
core/src/main/java/hudson/slaves/Cloud.java
浏览文件 @
1709ed3a
...
...
@@ -165,6 +165,7 @@ public abstract class Cloud extends AbstractModelObject implements ExtensionPoin
* @deprecated as of 1.286
* Use {@link #all()} for read access, and {@link Extension} for registration.
*/
@Deprecated
public
static
final
DescriptorList
<
Cloud
>
ALL
=
new
DescriptorList
<
Cloud
>(
Cloud
.
class
);
/**
...
...
core/src/main/java/hudson/slaves/ComputerLauncher.java
浏览文件 @
1709ed3a
...
...
@@ -93,6 +93,7 @@ public abstract class ComputerLauncher extends AbstractDescribableImpl<ComputerL
* @deprecated as of 1.304
* Use {@link #launch(SlaveComputer, TaskListener)}
*/
@Deprecated
public
void
launch
(
SlaveComputer
computer
,
StreamTaskListener
listener
)
throws
IOException
,
InterruptedException
{
throw
new
UnsupportedOperationException
(
getClass
()+
" must implement the launch method"
);
}
...
...
@@ -117,6 +118,7 @@ public abstract class ComputerLauncher extends AbstractDescribableImpl<ComputerL
* @deprecated as of 1.304
* Use {@link #afterDisconnect(SlaveComputer, TaskListener)}
*/
@Deprecated
public
void
afterDisconnect
(
SlaveComputer
computer
,
StreamTaskListener
listener
)
{
}
...
...
@@ -143,6 +145,7 @@ public abstract class ComputerLauncher extends AbstractDescribableImpl<ComputerL
* @deprecated as of 1.304
* Use {@link #beforeDisconnect(SlaveComputer, TaskListener)}
*/
@Deprecated
public
void
beforeDisconnect
(
SlaveComputer
computer
,
StreamTaskListener
listener
)
{
}
...
...
@@ -159,6 +162,7 @@ public abstract class ComputerLauncher extends AbstractDescribableImpl<ComputerL
* Use {@link Extension} for registration, and use
* {@link jenkins.model.Jenkins#getDescriptorList(Class)} for read access.
*/
@Deprecated
public
static
final
DescriptorList
<
ComputerLauncher
>
LIST
=
new
DescriptorList
<
ComputerLauncher
>(
ComputerLauncher
.
class
);
/**
...
...
core/src/main/java/hudson/slaves/ComputerListener.java
浏览文件 @
1709ed3a
...
...
@@ -132,6 +132,7 @@ public abstract class ComputerListener implements ExtensionPoint {
* @deprecated as of 1.292
* Use {@link #onOnline(Computer, TaskListener)}
*/
@Deprecated
public
void
onOnline
(
Computer
c
)
{}
/**
...
...
@@ -214,6 +215,7 @@ public abstract class ComputerListener implements ExtensionPoint {
* @deprecated as of 1.286
* put {@link Extension} on your class to have it auto-registered.
*/
@Deprecated
public
final
void
register
()
{
all
().
add
(
this
);
}
...
...
core/src/main/java/hudson/slaves/DumbSlave.java
浏览文件 @
1709ed3a
...
...
@@ -44,6 +44,7 @@ public final class DumbSlave extends Slave {
* @deprecated as of 1.286.
* Use {@link #DumbSlave(String, String, String, String, Node.Mode, String, ComputerLauncher, RetentionStrategy, List)}
*/
@Deprecated
public
DumbSlave
(
String
name
,
String
nodeDescription
,
String
remoteFS
,
String
numExecutors
,
Mode
mode
,
String
labelString
,
ComputerLauncher
launcher
,
RetentionStrategy
retentionStrategy
)
throws
FormException
,
IOException
{
this
(
name
,
nodeDescription
,
remoteFS
,
numExecutors
,
mode
,
labelString
,
launcher
,
retentionStrategy
,
new
ArrayList
());
}
...
...
core/src/main/java/hudson/slaves/NodeDescriptor.java
浏览文件 @
1709ed3a
...
...
@@ -120,6 +120,7 @@ public abstract class NodeDescriptor extends Descriptor<Node> {
* @deprecated as of 1.286
* Use {@link #all()} for read access, and {@link Extension} for registration.
*/
@Deprecated
public
static
final
DescriptorList
<
Node
>
ALL
=
new
DescriptorList
<
Node
>(
Node
.
class
);
public
static
List
<
NodeDescriptor
>
allInstantiable
()
{
...
...
core/src/main/java/hudson/slaves/NodeProperty.java
浏览文件 @
1709ed3a
...
...
@@ -97,6 +97,7 @@ public abstract class NodeProperty<N extends Node> implements ReconfigurableDesc
* @deprecated as of 1.413
* Use {@link #canTake(Queue.BuildableItem)}
*/
@Deprecated
public
CauseOfBlockage
canTake
(
Task
task
)
{
return
null
;
}
...
...
core/src/main/java/hudson/slaves/NodeProvisioner.java
浏览文件 @
1709ed3a
...
...
@@ -392,6 +392,7 @@ public class NodeProvisioner {
* The number of items in the queue requiring this {@link #getLabel()}.
* @deprecated use {@link #getSnapshot()}, {@link LoadStatistics.LoadStatisticsSnapshot#getQueueLength()}
*/
@Deprecated
public
int
getQueueLengthSnapshot
()
{
return
snapshot
.
getQueueLength
();
}
...
...
@@ -407,6 +408,7 @@ public class NodeProvisioner {
* The number of idle executors for this {@link #getLabel()}
* @deprecated use {@link #getSnapshot()}, {@link LoadStatistics.LoadStatisticsSnapshot#getAvailableExecutors()}
*/
@Deprecated
public
int
getIdleSnapshot
()
{
return
snapshot
.
getAvailableExecutors
();
}
...
...
@@ -415,6 +417,7 @@ public class NodeProvisioner {
* The total number of executors for this {@link #getLabel()}
* @deprecated use {@link #getSnapshot()}, {@link LoadStatistics.LoadStatisticsSnapshot#getOnlineExecutors()}
*/
@Deprecated
public
int
getTotalSnapshot
()
{
return
snapshot
.
getOnlineExecutors
();
}
...
...
@@ -450,6 +453,7 @@ public class NodeProvisioner {
* The time series average number of idle executors for this {@link #getLabel()}
* @deprecated use {@link #getAvailableExecutorsLatest()}
*/
@Deprecated
public
float
getIdleLatest
()
{
return
getAvailableExecutorsLatest
();
}
...
...
@@ -458,6 +462,7 @@ public class NodeProvisioner {
* The time series average total number of executors for this {@link #getLabel()}
* @deprecated use {@link #getOnlineExecutorsLatest()}
*/
@Deprecated
public
float
getTotalLatest
()
{
return
getOnlineExecutorsLatest
();
}
...
...
core/src/main/java/hudson/slaves/RetentionStrategy.java
浏览文件 @
1709ed3a
...
...
@@ -115,6 +115,7 @@ public abstract class RetentionStrategy<T extends Computer> extends AbstractDesc
* @deprecated as of 1.286
* Use {@link #all()} for read access, and {@link Extension} for registration.
*/
@Deprecated
public
static
final
DescriptorList
<
RetentionStrategy
<?>>
LIST
=
new
DescriptorList
<
RetentionStrategy
<?>>((
Class
)
RetentionStrategy
.
class
);
/**
...
...
core/src/main/java/hudson/slaves/SlaveComputer.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/tasks/ArtifactArchiver.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/tasks/BuildStep.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/tasks/BuildStepCompatibilityLayer.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/tasks/BuildTrigger.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/tasks/BuildWrapper.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/tasks/BuildWrappers.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/tasks/LogRotator.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/tasks/Maven.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/tasks/Shell.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/tasks/UserNameResolver.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/tools/ToolInstallation.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/tools/ToolLocationNodeProperty.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/triggers/SCMTrigger.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/triggers/Trigger.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/triggers/Triggers.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/util/ByteBuffer.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/util/CharSpool.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/util/ChartUtil.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/util/DescribableList.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/util/DescriptorList.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/util/FormFieldValidator.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/util/IOUtils.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/util/LineEndNormalizingWriter.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/util/ListBoxModel.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/util/ProcessTreeKiller.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/util/RunList.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/util/Secret.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/util/StreamTaskListener.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/util/WriterOutputStream.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/util/xstream/MapperDelegate.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/hudson/views/ListViewColumn.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/jenkins/model/Jenkins.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/jenkins/model/JenkinsLocationConfiguration.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/jenkins/security/ApiTokenFilter.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/jenkins/slaves/JnlpSlaveAgentProtocol.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/jenkins/slaves/JnlpSlaveAgentProtocol2.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
core/src/main/java/jenkins/util/AntClassLoader.java
浏览文件 @
1709ed3a
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录