Skip to content

Commit 176cf74

Browse files
cpovirkGoogle Java Core Libraries
authored andcommitted
Reformat.
RELNOTES=n/a PiperOrigin-RevId: 716870912
1 parent a3d5c96 commit 176cf74

File tree

151 files changed

+966
-348
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+966
-348
lines changed

android/guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,16 @@ protected Collection<E> resetContainer(Collection<E> newContents) {
5353
return collection;
5454
}
5555

56-
/** @see AbstractContainerTester#resetContainer() */
56+
/**
57+
* @see AbstractContainerTester#resetContainer()
58+
*/
5759
protected void resetCollection() {
5860
resetContainer();
5961
}
6062

61-
/** @return an array of the proper size with {@code null} inserted into the middle element. */
63+
/**
64+
* @return an array of the proper size with {@code null} inserted into the middle element.
65+
*/
6266
protected E[] createArrayWithNullElement() {
6367
E[] array = createSamplesArray();
6468
array[getNullLocation()] = null;

android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ protected Collection<Entry<K, V>> actualContents() {
5656
return getMap().entrySet();
5757
}
5858

59-
/** @see AbstractContainerTester#resetContainer() */
59+
/**
60+
* @see AbstractContainerTester#resetContainer()
61+
*/
6062
protected final void resetMap() {
6163
resetContainer();
6264
}
@@ -77,7 +79,9 @@ protected void expectMissingValues(V... elements) {
7779
}
7880
}
7981

80-
/** @return an array of the proper size with {@code null} as the key of the middle element. */
82+
/**
83+
* @return an array of the proper size with {@code null} as the key of the middle element.
84+
*/
8185
protected Entry<K, V>[] createArrayWithNullKey() {
8286
Entry<K, V>[] array = createSamplesArray();
8387
int nullKeyLocation = getNullLocation();
@@ -102,7 +106,9 @@ private Entry<K, V> getEntryNullReplaces() {
102106
return entries.next();
103107
}
104108

105-
/** @return an array of the proper size with {@code null} as the value of the middle element. */
109+
/**
110+
* @return an array of the proper size with {@code null} as the value of the middle element.
111+
*/
106112
protected Entry<K, V>[] createArrayWithNullValue() {
107113
Entry<K, V>[] array = createSamplesArray();
108114
int nullValueLocation = getNullLocation();

android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ public void testNulls(Class<?> cls) {
203203
}
204204

205205
void doTestNulls(Class<?> cls, Visibility visibility)
206-
throws ParameterNotInstantiableException, IllegalAccessException, InvocationTargetException,
206+
throws ParameterNotInstantiableException,
207+
IllegalAccessException,
208+
InvocationTargetException,
207209
FactoryMethodReturnsNullException {
208210
if (!Modifier.isAbstract(cls.getModifiers())) {
209211
nullPointerTester.testConstructors(cls, visibility);
@@ -295,8 +297,11 @@ public void testEquals(Class<?> cls) {
295297
}
296298

297299
void doTestEquals(Class<?> cls)
298-
throws ParameterNotInstantiableException, ParameterHasNoDistinctValueException,
299-
IllegalAccessException, InvocationTargetException, FactoryMethodReturnsNullException {
300+
throws ParameterNotInstantiableException,
301+
ParameterHasNoDistinctValueException,
302+
IllegalAccessException,
303+
InvocationTargetException,
304+
FactoryMethodReturnsNullException {
300305
if (cls.isEnum()) {
301306
return;
302307
}
@@ -566,8 +571,11 @@ public FactoryMethodReturnValueTester testEqualsAndSerializable() throws Excepti
566571
}
567572

568573
private void testEqualsUsing(final Invokable<?, ?> factory)
569-
throws ParameterNotInstantiableException, ParameterHasNoDistinctValueException,
570-
IllegalAccessException, InvocationTargetException, FactoryMethodReturnsNullException {
574+
throws ParameterNotInstantiableException,
575+
ParameterHasNoDistinctValueException,
576+
IllegalAccessException,
577+
InvocationTargetException,
578+
FactoryMethodReturnsNullException {
571579
List<Parameter> params = factory.getParameters();
572580
List<FreshValueGenerator> argGenerators = Lists.newArrayListWithCapacity(params.size());
573581
List<@Nullable Object> args = Lists.newArrayListWithCapacity(params.size());
@@ -617,8 +625,10 @@ String reportItem(Item<?> item) {
617625
*/
618626
private List<Object> generateEqualFactoryArguments(
619627
Invokable<?, ?> factory, List<Parameter> params, List<Object> args)
620-
throws ParameterNotInstantiableException, FactoryMethodReturnsNullException,
621-
InvocationTargetException, IllegalAccessException {
628+
throws ParameterNotInstantiableException,
629+
FactoryMethodReturnsNullException,
630+
InvocationTargetException,
631+
IllegalAccessException {
622632
List<Object> equalArgs = Lists.newArrayList(args);
623633
for (int i = 0; i < args.size(); i++) {
624634
Parameter param = params.get(i);

android/guava-tests/benchmark/com/google/common/base/SplitterBenchmark.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public class SplitterBenchmark {
3232
// overall size of string
3333
@Param({"1", "10", "100", "1000"})
3434
int length;
35+
3536
// Number of matching strings
3637
@Param({"xxxx", "xxXx", "xXxX", "XXXX"})
3738
String text;

android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ interface ExecutionListWrapper {
5252
void add(Runnable runnable, Executor executor);
5353

5454
void execute();
55+
5556
/** Returns the underlying implementation, useful for the Footprint benchmark. */
5657
Object getImpl();
5758
}

android/guava-tests/benchmark/com/google/common/util/concurrent/FuturesGetCheckedBenchmark.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ private enum ExceptionType {
102102
@Param Validator validator;
103103
@Param Result result;
104104
@Param ExceptionType exceptionType;
105+
105106
/**
106107
* The number of other exception types in the cache of known-good exceptions and the number of
107108
* other {@code ClassValue} entries for the exception type to be tested. This lets us evaluate

android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,13 @@ public class MonitorBasedArrayBlockingQueue<E> extends AbstractQueue<E>
6262

6363
/** The queued items */
6464
final E[] items;
65+
6566
/** items index for next take, poll or remove */
6667
int takeIndex;
68+
6769
/** items index for next put, offer, or add. */
6870
int putIndex;
71+
6972
/** Number of items in the queue */
7073
private int count;
7174

android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ public void testComplexBuilder() {
389389

390390
public void testBuilderAddHandlesNullsCorrectly() {
391391
{
392-
ImmutableSet.Builder<String> builder = this.<String>builder();
392+
ImmutableSet.Builder<String> builder = this.<String>builder();
393393
assertThrows(NullPointerException.class, () -> builder.add((String) null));
394394
}
395395

@@ -421,7 +421,7 @@ public void testBuilderAddHandlesNullsCorrectly() {
421421

422422
public void testBuilderAddAllHandlesNullsCorrectly() {
423423
{
424-
ImmutableSet.Builder<String> builder = this.<String>builder();
424+
ImmutableSet.Builder<String> builder = this.<String>builder();
425425
assertThrows(NullPointerException.class, () -> builder.addAll((Iterable<String>) null));
426426
}
427427

@@ -432,13 +432,13 @@ public void testBuilderAddAllHandlesNullsCorrectly() {
432432

433433
{
434434
ImmutableSet.Builder<String> builder = this.<String>builder();
435-
List<@Nullable String> listWithNulls = asList("a", null, "b");
435+
List<@Nullable String> listWithNulls = asList("a", null, "b");
436436
assertThrows(NullPointerException.class, () -> builder.addAll((List<String>) listWithNulls));
437437
}
438438

439439
{
440440
ImmutableSet.Builder<String> builder = this.<String>builder();
441-
Iterable<@Nullable String> iterableWithNulls = MinimalIterable.of("a", null, "b");
441+
Iterable<@Nullable String> iterableWithNulls = MinimalIterable.of("a", null, "b");
442442
assertThrows(
443443
NullPointerException.class, () -> builder.addAll((Iterable<String>) iterableWithNulls));
444444
}

android/guava-tests/test/com/google/common/collect/FilteredMapTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.common.collect;
1818

19-
2019
import com.google.common.annotations.GwtCompatible;
2120
import java.util.Map;
2221
import org.jspecify.annotations.NullMarked;

android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ public void testBuilderAddHandlesNullsCorrectly() {
567567

568568
public void testBuilderAddAllHandlesNullsCorrectly() {
569569
{
570-
ImmutableList.Builder<String> builder = ImmutableList.builder();
570+
ImmutableList.Builder<String> builder = ImmutableList.builder();
571571
assertThrows(NullPointerException.class, () -> builder.addAll((Iterable<String>) null));
572572
}
573573

@@ -578,21 +578,21 @@ public void testBuilderAddAllHandlesNullsCorrectly() {
578578

579579
{
580580
ImmutableList.Builder<String> builder = ImmutableList.builder();
581-
List<@Nullable String> listWithNulls = asList("a", null, "b");
581+
List<@Nullable String> listWithNulls = asList("a", null, "b");
582582
assertThrows(NullPointerException.class, () -> builder.addAll((List<String>) listWithNulls));
583583
}
584584

585585
{
586586
ImmutableList.Builder<String> builder = ImmutableList.builder();
587-
Iterator<@Nullable String> iteratorWithNulls =
588-
Arrays.<@Nullable String>asList("a", null, "b").iterator();
587+
Iterator<@Nullable String> iteratorWithNulls =
588+
Arrays.<@Nullable String>asList("a", null, "b").iterator();
589589
assertThrows(
590590
NullPointerException.class, () -> builder.addAll((Iterator<String>) iteratorWithNulls));
591591
}
592592

593593
{
594594
ImmutableList.Builder<String> builder = ImmutableList.builder();
595-
Iterable<@Nullable String> iterableWithNulls = MinimalIterable.of("a", null, "b");
595+
Iterable<@Nullable String> iterableWithNulls = MinimalIterable.of("a", null, "b");
596596
assertThrows(
597597
NullPointerException.class, () -> builder.addAll((Iterable<String>) iterableWithNulls));
598598
}

0 commit comments

Comments
 (0)