mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-02 22:55:53 +00:00
Add missing @Override annotations (#5430)
This commit is contained in:
1 parent
8577d3f8d5
commit
f6378676b1
405 files changed
+1377
-1
No files matched your search
@@ -449,6 +449,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
|
||||
this.archive = archive;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDisplayName() {
|
||||
return StringUtils.removeStart(getLongName(), "Jenkins ");
|
||||
}
|
||||
@@ -1073,6 +1074,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
|
||||
/**
|
||||
* Sort by short name.
|
||||
*/
|
||||
@Override
|
||||
public int compareTo(PluginWrapper pw) {
|
||||
return shortName.compareToIgnoreCase(pw.shortName);
|
||||
}
|
||||
@@ -1134,6 +1136,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
|
||||
plugins.put(plugin.shortName, plugin);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isActivated() {
|
||||
return !plugins.isEmpty();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user