Remove extra blank lines

pull/762/head
chen.ma 2 years ago
parent 956bd20d6c
commit ceddf9ade1

@ -129,7 +129,7 @@ public class CollectionUtil {
*/
@SafeVarargs
public static <E> ArrayList<E> newArrayList(E... elements) {
Objects.requireNonNull(elements);// for GWT
Objects.requireNonNull(elements);
// Avoid integer overflow when a large array is passed in
int capacity = computeArrayListCapacity(elements.length);
ArrayList<E> list = new ArrayList<>(capacity);
@ -139,7 +139,6 @@ public class CollectionUtil {
private static int computeArrayListCapacity(int arraySize) {
checkNonnegative(arraySize);
// TODO(kevinb): Figure out the right behavior, and document it
return saturatedCast(5L + arraySize + (arraySize / 10));
}

@ -24,7 +24,6 @@ import java.util.Objects;
/**
* reference google guava
*
*/
public class Joiner {
@ -34,7 +33,9 @@ public class Joiner {
this.separator = Objects.requireNonNull(separator);
}
/** Returns a joiner which automatically places {@code separator} between consecutive elements. */
/**
* Returns a joiner which automatically places {@code separator} between consecutive elements.
*/
public static Joiner on(String separator) {
return new Joiner(separator);
}
@ -42,7 +43,6 @@ public class Joiner {
/**
* Returns a string containing the string representation of each of {@code parts}, using the
* previously configured separator between each.
*
*/
public final String join(Object[] parts) {
return join(Arrays.asList(parts));
@ -55,7 +55,6 @@ public class Joiner {
/**
* Returns a string containing the string representation of each of {@code parts}, using the
* previously configured separator between each.
*
*/
public final String join(Iterator<?> parts) {
return appendTo(new StringBuilder(), parts).toString();
@ -86,5 +85,4 @@ public class Joiner {
Objects.requireNonNull(part);
return (part instanceof CharSequence) ? (CharSequence) part : part.toString();
}
}

@ -130,7 +130,6 @@
<artifactId>caffeine</artifactId>
<version>${caffeine.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>

Loading…
Cancel
Save