Fix formatting
Prefix the opening brace with a single space in some classes. Replace tab character with space in javadoc of AttributeAccessor. Also fix some other trivial formatting errors. Closes gh-1979
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -28,7 +28,7 @@ import org.springframework.lang.Nullable;
|
||||
public interface AttributeAccessor {
|
||||
|
||||
/**
|
||||
* Set the attribute defined by {@code name} to the supplied {@code value}.
|
||||
* Set the attribute defined by {@code name} to the supplied {@code value}.
|
||||
* If {@code value} is {@code null}, the attribute is {@link #removeAttribute removed}.
|
||||
* <p>In general, users should take care to prevent overlaps with other
|
||||
* metadata attributes by using fully-qualified names, perhaps using
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -251,7 +251,7 @@ public abstract class ObjectUtils {
|
||||
* @param obj the object to append
|
||||
* @return the new array (of the same component type; never {@code null})
|
||||
*/
|
||||
public static <A, O extends A> A[] addObjectToArray(@Nullable A[] array, @Nullable O obj) {
|
||||
public static <A, O extends A> A[] addObjectToArray(@Nullable A[] array, @Nullable O obj) {
|
||||
Class<?> compType = Object.class;
|
||||
if (array != null) {
|
||||
compType = array.getClass().getComponentType();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -38,7 +38,7 @@ abstract class UpdateMessageDigestInputStream extends InputStream {
|
||||
*/
|
||||
public void updateMessageDigest(MessageDigest messageDigest) throws IOException {
|
||||
int data;
|
||||
while ((data = read()) != -1){
|
||||
while ((data = read()) != -1) {
|
||||
messageDigest.update((byte) data);
|
||||
}
|
||||
}
|
||||
@@ -54,7 +54,7 @@ abstract class UpdateMessageDigestInputStream extends InputStream {
|
||||
public void updateMessageDigest(MessageDigest messageDigest, int len) throws IOException {
|
||||
int data;
|
||||
int bytesRead = 0;
|
||||
while (bytesRead < len && (data = read()) != -1){
|
||||
while (bytesRead < len && (data = read()) != -1) {
|
||||
messageDigest.update((byte) data);
|
||||
bytesRead++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user