Skip to content

Commit

Permalink
Clean up whitespace (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed May 18, 2024
1 parent 82feb3a commit 15b0ffd
Show file tree
Hide file tree
Showing 22 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.commons.fileupload;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.commons.fileupload;

import java.util.Iterator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.commons.fileupload;

/**
Expand Down
1 change: 1 addition & 0 deletions core/src/main/java/org/kohsuke/stapler/AcceptHeader.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ of this software and associated documentation files (the "Software"), to deal
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

package org.kohsuke.stapler;

import edu.umd.cs.findbugs.annotations.Nullable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

package org.kohsuke.stapler;

import java.util.List;
Expand Down
1 change: 1 addition & 0 deletions core/src/main/java/org/kohsuke/stapler/Function.java
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ public Object invoke(StaplerRequest req, StaplerResponse rsp, Object o, Object..
return m.invoke(o, args);
}
}

/**
* Normal instance methods.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

package org.kohsuke.stapler;

import net.sf.json.JSONObject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public interface StaplerResponse extends HttpServletResponse {
* Request to be forwarded.
*/
void forward(Object it, String url, StaplerRequest request) throws ServletException, IOException;

/**
* Redirects the browser to where it came from (the referer.)
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

package org.kohsuke.stapler.event;

import java.util.logging.Level;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

package org.kohsuke.stapler.event;

import java.util.logging.Level;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
* only if the new code is made subject to such option by the copyright
* holder.
*/

package org.kohsuke.stapler.export;

import java.lang.reflect.Array;
Expand Down
2 changes: 2 additions & 0 deletions core/src/main/java/org/kohsuke/stapler/export/XSD.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,10 @@ interface SimpleType extends TypedXmlWriter {
interface Restriction extends TypedXmlWriter {
@XmlAttribute
Restriction base(QName t);

// for simple type
Enumeration enumeration();

// for complex type
ContentModel sequence();
}
Expand Down
3 changes: 2 additions & 1 deletion core/src/main/java/org/kohsuke/stapler/export/XmlChars.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
* http://www.sun.com. For more information on the Apache Software
* Foundation, please see <http://www.apache.org/>.
*/

package org.kohsuke.stapler.export;

/**
Expand All @@ -79,7 +80,7 @@ public static boolean isNameStart(char c) {
*/
public static boolean isNameChar(char c) {
// [4] NameChar ::= Letter | Digit | '.' | '_' | ':'
// | CombiningChar | Extender
// | CombiningChar | Extender

if (isLetter2(c)) {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
* THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

package org.kohsuke.stapler.interceptor;

import java.lang.annotation.ElementType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
* THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

package org.kohsuke.stapler.jsr269;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ private <T> T bind(JSONObject json, T bean) {

public static class RawBinding {
JSONObject x;

JSONArray y;

@DataBoundConstructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

package org.kohsuke.stapler;

import junit.framework.TestCase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

package org.kohsuke.stapler;

import java.io.ByteArrayInputStream;
Expand Down
2 changes: 2 additions & 0 deletions core/src/test/java/org/kohsuke/stapler/export/ModelTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

package org.kohsuke.stapler.export;

import static org.junit.Assert.assertEquals;
Expand Down Expand Up @@ -217,6 +218,7 @@ public String getShouldBeSkipped() {
public String getShouldBeSkippedAsNull() {
return null;
}

// should not get serialized in to JSON as empty map due to skipIfNull is true
@Exported
public NotExportedBean getNotExportedBean() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.kohsuke.stapler.jelly.groovy;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public class AdjunctsInPage {
public static AdjunctsInPage get() {
return get(Stapler.getCurrentRequest());
}

/**
* Obtains the instance associated with the current request of the given {@link StaplerRequest}.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ private AttributesImpl buildAttributes(JellyContext context) {
}
};
}

/**
* Reusable instance.
*/
Expand Down

0 comments on commit 15b0ffd

Please sign in to comment.