mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 14:02:22 +00:00
Correcting some warnings.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16133 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
a9d0558e4e
commit
8fe8a5c0df
3 files changed
+8
-2
No files matched your search
@@ -44,6 +44,8 @@ import hudson.ExtensionPoint;
|
||||
* @see Recorder
|
||||
*/
|
||||
public abstract class Notifier extends Publisher implements ExtensionPoint {
|
||||
@SuppressWarnings("deprecation") // super only @Deprecated to discourage other subclasses
|
||||
protected Notifier() {}
|
||||
public BuildStepDescriptor getDescriptor() {
|
||||
return (BuildStepDescriptor)super.getDescriptor();
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
*/
|
||||
package hudson.tasks;
|
||||
|
||||
import hudson.Launcher;
|
||||
import hudson.DescriptorExtensionList;
|
||||
import hudson.Extension;
|
||||
import hudson.maven.MavenReporter;
|
||||
@@ -32,7 +31,6 @@ import hudson.model.Build;
|
||||
import hudson.model.BuildListener;
|
||||
import hudson.model.Describable;
|
||||
import hudson.model.Project;
|
||||
import hudson.model.AbstractBuild;
|
||||
import hudson.model.Descriptor;
|
||||
import hudson.model.Hudson;
|
||||
|
||||
@@ -77,6 +75,8 @@ public abstract class Publisher extends BuildStepCompatibilityLayer implements B
|
||||
/**
|
||||
* Default implementation that does nothing.
|
||||
*/
|
||||
@Deprecated
|
||||
@Override
|
||||
public boolean prebuild(Build build, BuildListener listener) {
|
||||
return true;
|
||||
}
|
||||
@@ -84,6 +84,8 @@ public abstract class Publisher extends BuildStepCompatibilityLayer implements B
|
||||
/**
|
||||
* Default implementation that does nothing.
|
||||
*/
|
||||
@Deprecated
|
||||
@Override
|
||||
public Action getProjectAction(Project project) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -45,6 +45,8 @@ import hudson.ExtensionPoint;
|
||||
* @see Notifier
|
||||
*/
|
||||
public abstract class Recorder extends Publisher implements ExtensionPoint {
|
||||
@SuppressWarnings("deprecation") // super only @Deprecated to discourage other subclasses
|
||||
protected Recorder() {}
|
||||
public BuildStepDescriptor getDescriptor() {
|
||||
return (BuildStepDescriptor)super.getDescriptor();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user