Remove trailing whitespace (#6138)

This commit is contained in:
Basil Crow authored and GitHub committed 2021-12-31 07:54:03 -08:00
1 parent 30bde02e7c
commit b25b45bc90
235 files changed
+2798 -2797

No files matched your search

+16 -16
View File
@@ -1,19 +1,19 @@
/*
* The MIT License
*
*
* Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi,
* Yahoo! Inc., Erik Ramfelt, Tom Huybrechts
*
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -168,7 +168,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
* The snapshot of {@code disableFile.exists()} as of the start up.
*/
private final boolean active;
private boolean hasCycleDependency = false;
private final List<Dependency> dependencies;
@@ -384,11 +384,11 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
/**
* Inject the specified jar file(s) to the plugins classpath.
* <p><strong>Warning:</strong> This is advanced usage that you should not be needed in 99.9% of all cases, any jar insertion
* should happen early into the plugins lifecycle to prevent classloading issues in dependent plugins.
* should happen early into the plugins lifecycle to prevent classloading issues in dependent plugins.
* </p><p>
* Rather than use this functionality it is to have co-operative behaviour between any consumer of the libraries and load the classes in a separate {@link ClassLoader}.
* you can expose third-party libraries from a dynamic location in various ways, such as:
*
*
* <ul>
* <li>You could split your plugin into two modules:
* <ul>
@@ -409,7 +409,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
* For a concrete example see the <a href=
* "https://github.com/jenkinsci/database-plugin/blob/117.va2009e38b882/src/main/java/org/jenkinsci/plugins/database/GenericDatabase.java#L129-L142">database
* plugin</a>. *
*
*
* @throws Exception if the File could not be inserted into the classpath for some reason.
* @since 2.313
*/
@@ -467,7 +467,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
@Override
public String toString() {
return shortName + " (" + version + ")" + (optional ? " optional" : "");
}
}
}
/**
@@ -484,8 +484,8 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
* @param dependencies a list of mandatory dependencies
* @param optionalDependencies a list of optional dependencies
*/
public PluginWrapper(PluginManager parent, File archive, Manifest manifest, URL baseResourceURL,
ClassLoader classLoader, File disableFile,
public PluginWrapper(PluginManager parent, File archive, Manifest manifest, URL baseResourceURL,
ClassLoader classLoader, File disableFile,
List<Dependency> dependencies, List<Dependency> optionalDependencies) {
this.parent = parent;
this.manifest = manifest;
@@ -718,7 +718,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
return getVersionNumber().compareTo(v) < 0;
} catch (IllegalArgumentException e) {
// if we can't figure out our current version, it probably means it's very old,
// since the version information is missing only from the very old plugins
// since the version information is missing only from the very old plugins
return true;
}
}
@@ -889,7 +889,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
public boolean isActive() {
return active && !hasCycleDependency();
}
public boolean hasCycleDependency(){
return hasCycleDependency;
}
@@ -1056,7 +1056,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
if(p!=null && p.isNewerThan(getVersion())) return p;
return null;
}
/**
* returns the {@link hudson.model.UpdateSite.Plugin} object, or null.
*/
@@ -1083,7 +1083,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
public boolean hasUpdate() {
return getUpdateInfo()!=null;
}
@Exported
@Deprecated // See https://groups.google.com/d/msg/jenkinsci-dev/kRobm-cxFw8/6V66uhibAwAJ
public boolean isPinned() {
@@ -1376,7 +1376,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
@RequirePOST
public HttpResponse doDoUninstall() throws IOException {
Jenkins jenkins = Jenkins.get();
jenkins.checkPermission(Jenkins.ADMINISTER);
Files.deleteIfExists(Util.fileToPath(archive));