提交 007dca59 编写于 作者: J Josh Soref

Drop final for private methods

上级 b7e83565
......@@ -145,7 +145,7 @@ public class WindowsServiceLifecycle extends Lifecycle {
throw new IOException(baos.toString());
}
private static final File getBaseDir() {
private static File getBaseDir() {
File baseDir;
String baseEnv = System.getenv("BASE");
......
......@@ -558,7 +558,7 @@ public abstract class Label extends Actionable implements Comparable<Label>, Mod
* Evaluates whether the current label name is equal to the name parameter.
*
*/
private final boolean matches(String name) {
private boolean matches(String name) {
return this.name.equals(name);
}
......
......@@ -728,7 +728,7 @@ public class User extends AbstractModelObject implements AccessControlled, Descr
AllUsers.clear();
}
private static final File getConfigFileFor(String id) {
private static File getConfigFileFor(String id) {
return new File(getUserFolderFor(id), "config.xml");
}
......
......@@ -266,7 +266,7 @@ public abstract class ParameterizedJobMixIn<JobT extends Job<JobT, RunT> & Param
* Computes the build cause, using RemoteCause or UserCause as appropriate.
*/
@Restricted(NoExternalUse.class)
public static final CauseAction getBuildCause(ParameterizedJob job, StaplerRequest req) {
public static CauseAction getBuildCause(ParameterizedJob job, StaplerRequest req) {
Cause cause;
@SuppressWarnings("deprecation")
hudson.model.BuildAuthorizationToken authToken = job.getAuthToken();
......
......@@ -48,7 +48,7 @@ public abstract class GlobalSettingsProvider extends AbstractDescribableImpl<Glo
* the listener of the current build
* @return the path to the global settings.xml
*/
public static final FilePath getSettingsFilePath(GlobalSettingsProvider settings, AbstractBuild<?, ?> build, TaskListener listener) {
public static FilePath getSettingsFilePath(GlobalSettingsProvider settings, AbstractBuild<?, ?> build, TaskListener listener) {
FilePath settingsPath = null;
if (settings != null) {
settingsPath = settings.supplySettings(build, listener);
......@@ -67,7 +67,7 @@ public abstract class GlobalSettingsProvider extends AbstractDescribableImpl<Glo
* the listener of the current build
* @return the path to the global settings.xml
*/
public static final String getSettingsRemotePath(GlobalSettingsProvider provider, AbstractBuild<?, ?> build, TaskListener listener) {
public static String getSettingsRemotePath(GlobalSettingsProvider provider, AbstractBuild<?, ?> build, TaskListener listener) {
FilePath fp = getSettingsFilePath(provider, build, listener);
return fp == null ? null : fp.getRemote();
}
......
......@@ -47,7 +47,7 @@ public abstract class SettingsProvider extends AbstractDescribableImpl<SettingsP
* the listener of the current build
* @return the path to the settings.xml
*/
public static final FilePath getSettingsFilePath(SettingsProvider settings, AbstractBuild<?, ?> build, TaskListener listener) {
public static FilePath getSettingsFilePath(SettingsProvider settings, AbstractBuild<?, ?> build, TaskListener listener) {
FilePath settingsPath = null;
if (settings != null) {
settingsPath = settings.supplySettings(build, listener);
......@@ -66,7 +66,7 @@ public abstract class SettingsProvider extends AbstractDescribableImpl<SettingsP
* the listener of the current build
* @return the path to the settings.xml
*/
public static final String getSettingsRemotePath(SettingsProvider settings, AbstractBuild<?, ?> build, TaskListener listener) {
public static String getSettingsRemotePath(SettingsProvider settings, AbstractBuild<?, ?> build, TaskListener listener) {
FilePath fp = getSettingsFilePath(settings, build, listener);
return fp == null ? null : fp.getRemote();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册