Skip to content

Commit

Permalink
Fix Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
arturobernalg authored and ok2c committed Feb 10, 2021
1 parent 744c9d8 commit f2e9ad3
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
Expand Up @@ -48,13 +48,13 @@ public final class HttpAsyncCacheStorageAdaptor implements HttpAsyncCacheStorage
private final HttpCacheStorage cacheStorage;

public HttpAsyncCacheStorageAdaptor(final HttpCacheStorage cacheStorage) {
this.cacheStorage = Args.notNull(cacheStorage, "Cache strorage");
this.cacheStorage = Args.notNull(cacheStorage, "Cache storage");
}

@Override
public Cancellable putEntry(final String key, final HttpCacheEntry entry, final FutureCallback<Boolean> callback) {
Args.notEmpty(key, "Key");
Args.notNull(entry, "Cache ehtry");
Args.notNull(entry, "Cache entry");
Args.notNull(callback, "Callback");
try {
cacheStorage.putEntry(key, entry);
Expand Down
Expand Up @@ -156,11 +156,11 @@ public final Cancellable updateEntry(
Args.notNull(callback, "Callback");
final ComplexCancellable complexCancellable = new ComplexCancellable();
final AtomicInteger count = new AtomicInteger(0);
atemmptUpdateEntry(key, casOperation, complexCancellable, count, callback);
attemptUpdateEntry(key, casOperation, complexCancellable, count, callback);
return complexCancellable;
}

private void atemmptUpdateEntry(
private void attemptUpdateEntry(
final String key,
final HttpCacheCASOperation casOperation,
final ComplexCancellable complexCancellable,
Expand Down Expand Up @@ -195,7 +195,7 @@ public void completed(final Boolean result) {
if (numRetries >= maxUpdateRetries) {
callback.failed(new HttpCacheUpdateException("Cache update failed after " + numRetries + " retries"));
} else {
atemmptUpdateEntry(key, casOperation, complexCancellable, count, callback);
attemptUpdateEntry(key, casOperation, complexCancellable, count, callback);
}
}
}
Expand Down
Expand Up @@ -68,7 +68,7 @@ File getFile() {
public byte[] get() throws ResourceIOException {
final File file = this.fileRef.get();
if (file == null) {
throw new ResourceIOException("Resouce already dispoased");
throw new ResourceIOException("Resource already disposed");
}
try (final InputStream in = new FileInputStream(file)) {
final ByteArrayBuffer buf = new ByteArrayBuffer(1024);
Expand All @@ -93,7 +93,7 @@ public InputStream getInputStream() throws ResourceIOException {
throw new ResourceIOException(ex.getMessage(), ex);
}
}
throw new ResourceIOException("Resouce already dispoased");
throw new ResourceIOException("Resource already disposed");
}

@Override
Expand Down
Expand Up @@ -56,7 +56,7 @@ public byte[] get() throws ResourceIOException {
if (byteArray != null) {
return byteArray;
}
throw new ResourceIOException("Resouce already dispoased");
throw new ResourceIOException("Resource already disposed");
}

@Override
Expand Down
Expand Up @@ -62,7 +62,7 @@

/**
* Request execution handler in the asynchronous request execution chain
* responsbile for handling of request redirects.
* responsible for handling of request redirects.
* <p>
* Further responsibilities such as communication with the opposite
* endpoint is delegated to the next executor in the request execution
Expand Down
Expand Up @@ -558,7 +558,7 @@ public final H2AsyncClientBuilder disableAuthCaching() {
* One MUST explicitly close HttpClient with {@link CloseableHttpAsyncClient#close()}
* in order to stop and release the background thread.
* <p>
* Please note this method has no effect if the instance of HttpClient is configuted to
* Please note this method has no effect if the instance of HttpClient is configured to
* use a shared connection manager.
*
* @param maxIdleTime maximum time persistent connections can stay idle while kept alive
Expand Down
Expand Up @@ -99,7 +99,7 @@ static boolean domainMatch(final String domain, final String host) {
final String normalizedDomain = domain.startsWith(".") ? domain.substring(1) : domain;
if (host.endsWith(normalizedDomain)) {
final int prefix = host.length() - normalizedDomain.length();
// Either a full match or a prefix endidng with a '.'
// Either a full match or a prefix ending with a '.'
if (prefix == 0) {
return true;
}
Expand Down

0 comments on commit f2e9ad3

Please sign in to comment.