mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-27 03:25:21 +00:00
Consistent indentation with spaces rather than tabs (#6147)
This commit is contained in:
1 parent
0303e31890
commit
02eecd8a49
26 files changed
+420
-417
No files matched your search
@@ -485,17 +485,17 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
|
||||
* @param optionalDependencies a list of optional dependencies
|
||||
*/
|
||||
public PluginWrapper(PluginManager parent, File archive, Manifest manifest, URL baseResourceURL,
|
||||
ClassLoader classLoader, File disableFile,
|
||||
List<Dependency> dependencies, List<Dependency> optionalDependencies) {
|
||||
ClassLoader classLoader, File disableFile,
|
||||
List<Dependency> dependencies, List<Dependency> optionalDependencies) {
|
||||
this.parent = parent;
|
||||
this.manifest = manifest;
|
||||
this.shortName = Util.intern(computeShortName(manifest, archive.getName()));
|
||||
this.baseResourceURL = baseResourceURL;
|
||||
this.classLoader = classLoader;
|
||||
this.disableFile = disableFile;
|
||||
this.active = !disableFile.exists();
|
||||
this.dependencies = dependencies;
|
||||
this.optionalDependencies = optionalDependencies;
|
||||
this.manifest = manifest;
|
||||
this.shortName = Util.intern(computeShortName(manifest, archive.getName()));
|
||||
this.baseResourceURL = baseResourceURL;
|
||||
this.classLoader = classLoader;
|
||||
this.disableFile = disableFile;
|
||||
this.active = !disableFile.exists();
|
||||
this.dependencies = dependencies;
|
||||
this.optionalDependencies = optionalDependencies;
|
||||
for (Dependency d : optionalDependencies) {
|
||||
assert d.optional : d + " included among optionalDependencies of " + shortName + " but was not marked optional";
|
||||
}
|
||||
@@ -608,7 +608,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
|
||||
List<UpdateSite.Plugin> siteMetadataList = getInfoFromAllSites();
|
||||
String firstSiteUrl = null;
|
||||
if (!siteMetadataList.isEmpty()) {
|
||||
firstSiteUrl = siteMetadataList.get(0).wiki;
|
||||
firstSiteUrl = siteMetadataList.get(0).wiki;
|
||||
if (allUrlsMatch(firstSiteUrl, siteMetadataList)) {
|
||||
return firstSiteUrl;
|
||||
}
|
||||
@@ -618,7 +618,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
|
||||
// use manifest (since maven-hpi-plugin 1.30)
|
||||
String url = manifest.getMainAttributes().getValue("Url");
|
||||
if (url != null) {
|
||||
return url;
|
||||
return url;
|
||||
}
|
||||
return firstSiteUrl;
|
||||
}
|
||||
@@ -627,7 +627,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
|
||||
return uiList.stream().allMatch(k -> k.wiki != null && k.wiki.equals(url));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Plugin:" + getShortName();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user