From 03aedd97c5aa57bb3ded3e0539b784572928babd Mon Sep 17 00:00:00 2001 From: Amir Sarabadani Date: Tue, 21 Apr 2026 00:25:15 +0200 Subject: [PATCH] Fix typos It was done by a script I wrote to find typos based on statistical analysis and when I double checked them, I applied the fixes. I know it's not a big change, just fixing some small things. --- .../collect/super/com/google/common/collect/ImmutableList.java | 2 +- .../super/com/google/common/collect/ImmutableSortedMap.java | 2 +- guava/src/com/google/common/net/HttpHeaders.java | 2 +- .../com/google/common/util/concurrent/AbstractFutureState.java | 2 +- .../com/google/common/util/concurrent/InterruptibleTask.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java b/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java index a3176d14a12c..8e7c2756d6a4 100644 --- a/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java +++ b/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java @@ -187,7 +187,7 @@ static ImmutableList unsafeDelegateList(List list) { * *

The array must be internally created. */ - @SuppressWarnings("unchecked") // caller is reponsible for getting this right + @SuppressWarnings("unchecked") // caller is responsible for getting this right static ImmutableList asImmutableList(Object[] elements) { return unsafeDelegateList((List) Arrays.asList(elements)); } diff --git a/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java b/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java index 9c6786733c73..d87200eec614 100644 --- a/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java +++ b/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java @@ -417,7 +417,7 @@ public ImmutableSortedSet keySet() { @Override ImmutableSortedSet createKeySet() { - // the keySet() of the delegate is only a Set and TreeMap.navigatableKeySet + // the keySet() of the delegate is only a Set and TreeMap.navigableKeySet // is not available in GWT yet. To keep the code simple and code size more, // we make a copy here, instead of creating a view of it. // diff --git a/guava/src/com/google/common/net/HttpHeaders.java b/guava/src/com/google/common/net/HttpHeaders.java index 6c654e9d96e6..961c6a342b1a 100644 --- a/guava/src/com/google/common/net/HttpHeaders.java +++ b/guava/src/com/google/common/net/HttpHeaders.java @@ -395,7 +395,7 @@ private ReferrerPolicyValues() {} /** * The HTTP {@code - * No-Vary-Seearch} header field name. + * No-Vary-Search} header field name. * * @since 32.0.0 */ diff --git a/guava/src/com/google/common/util/concurrent/AbstractFutureState.java b/guava/src/com/google/common/util/concurrent/AbstractFutureState.java index c61837f56b25..e158ba7540bb 100644 --- a/guava/src/com/google/common/util/concurrent/AbstractFutureState.java +++ b/guava/src/com/google/common/util/concurrent/AbstractFutureState.java @@ -403,7 +403,7 @@ void unpark() { * * Additionally, it seems that nestmates do not help with runtime reflection under *Android*, even * when we use a newer -source and -target. That doesn't normally matter for AbstractFutureState, - * since Android should normally succed in using UnsafeAtomicHelper and thus never even try the + * since Android should normally succeed in using UnsafeAtomicHelper and thus never even try the * problematic AtomicReferenceFieldUpdaterAtomicHelper code path. However, the same problem *does* * matter with AggregateFutureState, which does not have an Unsafe-based helper. * diff --git a/guava/src/com/google/common/util/concurrent/InterruptibleTask.java b/guava/src/com/google/common/util/concurrent/InterruptibleTask.java index d57326705863..74d36992d816 100644 --- a/guava/src/com/google/common/util/concurrent/InterruptibleTask.java +++ b/guava/src/com/google/common/util/concurrent/InterruptibleTask.java @@ -214,7 +214,7 @@ final void interruptTask() { /** * Using this as the blocker object allows introspection and debugging tools to see that the - * currentRunner thread is blocked on the progress of the interruptor thread, which can help + * currentRunner thread is blocked on the progress of the interrupter thread, which can help * identify deadlocks. */ @VisibleForTesting