Skip to content

Commit

Permalink
Fix typos in various recently changed files
Browse files Browse the repository at this point in the history
These have been flagged by the internal Google spell checker.
  • Loading branch information
hoisie committed Dec 2, 2024
1 parent d0e70a3 commit d6e4b72
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Class<? extends Application> application() default
/**
* Qualifiers specifying device configuration for this test, such as "fr-normal-port-hdpi".
*
* <p>If the string is prefixed with '+', the qualifiers that follow are overlayed on any more
* <p>If the string is prefixed with '+', the qualifiers that follow are overlaid on any more
* broadly-scoped qualifiers.
*
* @see <a href="http://robolectric.org/device-configuration">Device Configuration</a> for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.junit.runner.RunWith;
import org.robolectric.integration.axt.R;

/** Test file for Espresso with scrolling logics. */
/** Test file for Espresso with scrolling logic. */
@RunWith(AndroidJUnit4.class)
public class EspressoScrollingTest {
@Rule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ public void getAccountsByTypeForPackage() {
@Config(minSdk = LOLLIPOP_MR1)
public void removeAccountExplicitly() {
assertThat(
am.removeAccountExplicitly(new Account("non_existant_account@gmail.com", "gmail.com")))
am.removeAccountExplicitly(new Account("non_existent_account@gmail.com", "gmail.com")))
.isFalse();
assertThat(am.removeAccountExplicitly(null)).isFalse();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ public static void reset() {

private static class ContentObserverEntry {
public final Uri uri;
public final boolean notifyForDescendents;
public final boolean notifyForDescendants;
public final ContentObserver observer;

private ContentObserverEntry(Uri uri, boolean notifyForDescendents, ContentObserver observer) {
private ContentObserverEntry(Uri uri, boolean notifyForDescendants, ContentObserver observer) {
this.uri = uri;
this.notifyForDescendents = notifyForDescendents;
this.notifyForDescendants = notifyForDescendants;
this.observer = observer;

if (uri == null || observer == null) {
Expand All @@ -139,7 +139,7 @@ public boolean matches(Uri test) {
String testPath = test.getPath();

return Objects.equals(uriPath, testPath)
|| (notifyForDescendents && testPath != null && testPath.startsWith(uriPath));
|| (notifyForDescendants && testPath != null && testPath.startsWith(uriPath));
}
}

Expand Down Expand Up @@ -925,20 +925,20 @@ public void clearRegisterContentProviderException(Uri uri) {

@Implementation
protected void registerContentObserver(
Uri uri, boolean notifyForDescendents, ContentObserver observer) {
Uri uri, boolean notifyForDescendants, ContentObserver observer) {
if (uri == null || observer == null) {
throw new NullPointerException();
}
if (registerContentProviderExceptions.containsKey(uri)) {
throw registerContentProviderExceptions.get(uri);
}
contentObservers.add(new ContentObserverEntry(uri, notifyForDescendents, observer));
contentObservers.add(new ContentObserverEntry(uri, notifyForDescendants, observer));
}

@Implementation
protected void registerContentObserver(
Uri uri, boolean notifyForDescendents, ContentObserver observer, int userHandle) {
registerContentObserver(uri, notifyForDescendents, observer);
Uri uri, boolean notifyForDescendants, ContentObserver observer, int userHandle) {
registerContentObserver(uri, notifyForDescendants, observer);
}

@Implementation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public class ShadowContextImpl {

/**
* Returns the handle to a system-level service by name. If the service is not available in
* Roboletric, or it is set to unavailable in {@link ShadowServiceManager#setServiceAvailability},
* {@code null} will be returned.
* Robolectric, or it is set to unavailable in {@link
* ShadowServiceManager#setServiceAvailability}, {@code null} will be returned.
*/
@Implementation
@Nullable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ protected int getRatingType() {
}

/**
* Saves the sessionActivty to control the return value of {@link
* Saves the sessionActivity to control the return value of {@link
* MediaController#getSessionActivity()}.
*/
public void setSessionActivity(PendingIntent sessionActivity) {
Expand Down

0 comments on commit d6e4b72

Please sign in to comment.