Skip to content

Fix the several typos detected by github.com/client9/misspell #653

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changes/2.0.0-preview-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"category": "AWS SDK for Java v2",
"type": "feature",
"description": "Substantial improvments to start up time and cold start latencies"
"description": "Substantial improvements to start up time and cold start latencies"
},
{
"category": "AWS SDK for Java v2",
Expand Down
2 changes: 1 addition & 1 deletion .changes/2.0.0-preview-4.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
{
"category": "AWS SDK for Java v2",
"type": "bugfix",
"description": "Many improvments and fixes to the Netty NIO based transport."
"description": "Many improvements and fixes to the Netty NIO based transport."
},
{
"category": "AWS SDK for Java v2",
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@

- ### Bugfixes
- Fixed a bug in default credential provider chain where it would erroneously abort at the ProfileCredentialsProvider. See [Issue #135](https://github.com/aws/aws-sdk-java-v2/issues/135)
- Many improvments and fixes to the Netty NIO based transport.
- Many improvements and fixes to the Netty NIO based transport.
- Several fixes around S3's endpoint resolution, particularly with advanced options like path style addressing and accelerate mode. See [Issue #130](https://github.com/aws/aws-sdk-java-v2/issues/130)
- Several fixes around serialization and deserialization of immutable objects. See [Issue #122](https://github.com/aws/aws-sdk-java-v2/issues/122)
- Type parameters are now correctly included for [StreamingResponseHandler](https://github.com/aws/aws-sdk-java-v2/blob/master/core/src/main/java/software/amazon/awssdk/sync/StreamingResponseHandler.java) on the client interface.
Expand All @@ -321,7 +321,7 @@
- ### Features
- New pluggable HTTP implementation built on top of Java's HttpUrlConnection. Good choice for simple applications with low throughput requirements. Better cold start latency than the default Apache implementation.
- Simple convenience methods have been added for operations that require no input parameters.
- Substantial improvments to start up time and cold start latencies
- Substantial improvements to start up time and cold start latencies
- The Netty NIO HTTP client now uses a shared event loop group for better resource management. More options for customizing the event loop group are now available.
- Using java.time instead of the legacy java.util.Date in generated model classes.
- Various improvements to the immutability of model POJOs. ByteBuffers are now copied and collections are returned as unmodifiable.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public DocumentationBuilder see(String seeLink, Object... formatArgs) {
}

/**
* Builds the Javadoc string with the current configuraton.
* Builds the Javadoc string with the current configuration.
*
* @return Formatted Javadoc string.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private URI createGenericContainerUrl() {
if (!ALLOWED_HOSTS.contains(uri.getHost())) {

throw SdkClientException.builder()
.message(String.format("The full URI (%s) contained withing environment " +
.message(String.format("The full URI (%s) contained within environment " +
"variable %s has an invalid host. Host can only be one of [%s].",
uri,
SdkSystemSetting.AWS_CONTAINER_CREDENTIALS_FULL_URI
Expand Down Expand Up @@ -178,4 +178,4 @@ public ContainerCredentialsProvider build() {
return new ContainerCredentialsProvider(this);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public int getCurrentDepth() {
* document being parsed.
*
* @param expression
* The psuedo-xpath expression to test.
* The pseudo-xpath expression to test.
* @return True if the expression matches the current document position,
* otherwise false.
*/
Expand All @@ -165,7 +165,7 @@ public boolean testExpression(String expression) {
* specified stack depth.
*
* @param expression
* The psuedo-xpath expression to test.
* The pseudo-xpath expression to test.
* @param startingStackDepth
* The depth in the stack representing where the expression must
* start matching in order for this method to return true.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void setIsRegionalized(boolean regionalized) {
}

/**
* A convienient method that returns true if a service has a partition
* A convenient method that returns true if a service has a partition
* wide endpoint available.
*/
public boolean isPartitionWideEndpointAvailable() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@SdkInternalApi
public final class SdkCborGenerator extends SdkJsonGenerator {

private static final int CBOR_TAG_TIMESTAP = 1;
private static final int CBOR_TAG_TIMESTAMP = 1;

public SdkCborGenerator(JsonFactory factory, String contentType) {
super(factory, contentType);
Expand All @@ -47,7 +47,7 @@ public StructuredJsonGenerator writeValue(Instant instant) {

CBORGenerator generator = (CBORGenerator) getGenerator();
try {
generator.writeTag(CBOR_TAG_TIMESTAP);
generator.writeTag(CBOR_TAG_TIMESTAMP);
generator.writeNumber(instant.toEpochMilli());
} catch (IOException e) {
throw new JsonGenerationException(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ public void testAsNode() throws Exception {
public void testMissingNodes() throws Exception {
Document document = documentFrom(DOCUMENT);
XPath xpath = XpathUtils.xpath();
assertNull(asDouble("non-existant-node/name", document, xpath));
assertNull(asLong("non-existant-node/name", document, xpath));
assertNull(asInteger("non-existant-node/name", document, xpath));
assertNull(asDate("non-existant-node/name", document, xpath));
assertNull(asFloat("non-existant-node/name", document, xpath));
assertNull(asString("non-existant-node/name", document, xpath));
assertNull(asDouble("non-existent-node/name", document, xpath));
assertNull(asLong("non-existent-node/name", document, xpath));
assertNull(asInteger("non-existent-node/name", document, xpath));
assertNull(asDate("non-existent-node/name", document, xpath));
assertNull(asFloat("non-existent-node/name", document, xpath));
assertNull(asString("non-existent-node/name", document, xpath));
}

/**
Expand Down
4 changes: 2 additions & 2 deletions docs/UseOfCompletableFuture.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Operations on the asynchronous clients return [`CompleteableFuture<T>`][1] where `T` is the response type for the operation. This is somewhat curious in that [`CompleteableFuture`][1] is a concrete implementation rather than an interface. The alternative to returning a [`CompleteableFuture`][1] would be to return a [`CompletionStage`][2], an interface intended to allow chaining of asynchronous operations.

The key advantage of [`CompleteableFuture`][1] is that it implements both the [`CompletionStage`][2] and [`Future`][3] interfaces - giving users of the SDK maximum flexibilty when it comes to handling responses from their asynchronous calls.
The key advantage of [`CompleteableFuture`][1] is that it implements both the [`CompletionStage`][2] and [`Future`][3] interfaces - giving users of the SDK maximum flexibility when it comes to handling responses from their asynchronous calls.

Currently [`CompleteableFuture`][1] is the only implementation of [`CompletionStage`][2] that ships with the JDK. Whilst it's possible that future implementations will be added [`CompletionStage`][2] will always be tied to [`CompleteableFuture`][1] via the [`#toCompletableFuture`][4] method. Additionally, [`CompleteableFuture`][1] is not a `final` class and thus could be extended if there was a requirement to do so.

Expand All @@ -15,4 +15,4 @@ Using [`CompleteableFuture`][1] gives users the best bang for their buck without
[1]: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html
[2]: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletionStage.html
[3]: https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Future.html
[4]: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletionStage.html#toCompletableFuture--
[4]: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletionStage.html#toCompletableFuture--
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private EventLoopGroup resolveEventLoopGroup(DefaultBuilder builder) {
.build());
return new NioEventLoopGroup(numThreads, threadFactory);
/*
Need to investigate why epoll is raising channel inactive after succesful response that causes
Need to investigate why epoll is raising channel inactive after successful response that causes
problems with retries.

if (Epoll.isAvailable() && isNotAwsLambda()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1624,7 +1624,7 @@
"members":{
"graphqlApi":{
"shape":"GraphqlApi",
"documentation":"<p>The udpated <code>GraphqlApi</code> object.</p>"
"documentation":"<p>The updated <code>GraphqlApi</code> object.</p>"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, this file is auto generated by the service model provided by the service team and the change will likely be reverted unless the service team fix it on the service model.

}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ public void testInstancesAndProcesses() {


/**
* Tests that we can invoke the notificaiton related operations correctly.
* Tests that we can invoke the notification related operations correctly.
*/

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public void testNullQueryKeyErrorHandling() {
@Test
public void testErrorHandling() throws Exception {

DeleteTableRequest request = DeleteTableRequest.builder().tableName("non-existant-table").build();
DeleteTableRequest request = DeleteTableRequest.builder().tableName("non-existent-table").build();
try {
dynamo.deleteTable(request);
fail("Expected an exception to be thrown");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ final class Problem {
}

/**
* @return Context of where this violation occured.
* @return Context of where this violation occurred.
*/
public ValidationContext getContext() {
return context;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public void testUpdateItemWithConditionExpression() {
// leading to an intentional failure in the update condition
.withString(":zipcode", "98104")
);
fail("Update Should fail as the zip code mentioned in the conditon expression doesn't match");
fail("Update Should fail as the zip code mentioned in the condition expression doesn't match");
} catch (SdkServiceException e) {
assertTrue(e.getMessage().contains("conditional request failed"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public void testBoudaryCases() {
// The request only contains invalid key pairs
List<KeyPair> keyPairs = new LinkedList<KeyPair>();
Class<?> clazz = getUniqueNumericObject().getClass();
keyPairs.add(new KeyPair().withHashKey("non-existant-key"));
keyPairs.add(new KeyPair().withHashKey("non-existent-key"));
itemsToGet.clear();
itemsToGet.put(clazz, keyPairs);
response = mapper.batchLoad(itemsToGet);
Expand Down Expand Up @@ -203,7 +203,7 @@ public BatchGetItemResponse answer(InvocationOnMock invocation) throws Throwable
DynamoDbMapper mapper = new DynamoDbMapper(mockClient);
try {
mapper.batchLoad(objs);
fail("Expecting an expection due to exceed of number of retries.");
fail("Expecting an exception due to exceed of number of retries.");
} catch (Exception e) {
e.printStackTrace();
long endTime = System.currentTimeMillis();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package software.amazon.awssdk.services.dynamodb.datamodeling;

/**
* Generic exception for problems occuring when mapping DynamoDB items to Java
* Generic exception for problems occurring when mapping DynamoDB items to Java
* objects or vice versa. Excludes service exceptions.
*/
public class DynamoDbMappingException extends RuntimeException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* {@link DynamoDbTypeConverted} is created per field/attribute. In the old,
* an new instance of the marshaller was created for each call to
* {@code marshall} and {@code unmarshall}. If your marshaller/converter is not
* thread safe, it is recomended to specify a converter which will instantiate
* thread safe, it is recommended to specify a converter which will instantiate
* a new marshaller per call.</p>
*
* <pre class="brush: java">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* {@link DynamoDbTypeConverted} is created per field/attribute. In the old,
* an new instance of the marshaller was created for each call to
* {@code marshall} and {@code unmarshall}. If your marshaller/converter is not
* thread safe, it is recomended to specify a converter which will instantiate
* thread safe, it is recommended to specify a converter which will instantiate
* a new marshaller per call.</p>
*
* <pre class="brush: java">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
String attributeName() default "";

/**
* The scalar attirbute type.
* The scalar attribute type.
* @see software.amazon.awssdk.services.dynamodb.model.ScalarAttributeType
*/
ScalarAttributeType type();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public <S, T> DynamoDbTypeConverter<S, T> getConverter(Class<S> sourceType, Clas
}

/**
* Delegate factory to allow selected types to be overriden.
* Delegate factory to allow selected types to be overridden.
*/
private static class OverrideFactory extends DelegateFactory {
private final ConverterMap overrides;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@
* <p>If the converter being applied is already a supported data type and
* the conversion is of the same attribute type, for instance,
* {@link java.util.Date} to {@link String} to {@code S},
* the annotation may be omited. The annotation is require for all non-standard
* types or if the attribute type binding is being overriden.</p>
* the annotation may be omitted. The annotation is require for all non-standard
* types or if the attribute type binding is being overridden.</p>
*
* <p><b>{@link software.amazon.awssdk.services.dynamodb.model.AttributeValue}</b></p>
* <p>Direct native conversion is supported by default in all schemas.
* If the attribute is a primary or index key, it must specify either
* {@code B}, {@code N}, or {@code S}, otherwise, it may be omited.</p>
* {@code B}, {@code N}, or {@code S}, otherwise, it may be omitted.</p>
*
* <p><b>{@link Boolean} to {@code BOOL}</b></p>
* <p>The standard V2 conversion schema will by default serialize booleans
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1616,7 +1616,7 @@ public void testPojoWithMixedAnnotations() {
}

/**
* Pojo field assersions.
* Pojo field assertions.
*/
private static enum PojoAsserts {
hashKey(KeyType.HASH, null),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class JsonPolicyReader {

private static final String PRINCIPAL_SCHEMA_SERVICE = "Service";

private static final String PRINICIPAL_SCHEMA_FEDERATED = "Federated";
private static final String PRINCIPAL_SCHEMA_FEDERATED = "Federated";

/**
* Converts the specified JSON string to an AWS policy object.
Expand Down Expand Up @@ -247,12 +247,12 @@ private Principal createPrincipal(String schema, JsonNode principalNode) {
return new Principal(principalNode.asText());
} else if (schema.equalsIgnoreCase(PRINCIPAL_SCHEMA_SERVICE)) {
return new Principal(schema, principalNode.asText());
} else if (schema.equalsIgnoreCase(PRINICIPAL_SCHEMA_FEDERATED)) {
} else if (schema.equalsIgnoreCase(PRINCIPAL_SCHEMA_FEDERATED)) {
if (Principal.WebIdentityProvider.fromString(principalNode.asText()) != null) {
return new Principal(
Principal.WebIdentityProvider.fromString(principalNode.asText()));
} else {
return new Principal(PRINICIPAL_SCHEMA_FEDERATED, principalNode.asText());
return new Principal(PRINCIPAL_SCHEMA_FEDERATED, principalNode.asText());
}
}
throw new IllegalArgumentException("Schema " + schema + " is not a valid value for the principal.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ public abstract class WaiterAcceptor<OutputT, ErrorT extends RuntimeException> {
/**
* Default method definition that matches the response
* state with the expected state defined by the acceptor.
* Overriden by each acceptor definition of matches.
* Overridden by each acceptor definition of matches.
*
* @param output Response got by the execution of the operation
* @return False by default.
* When overriden, returns True if it matches, False
* When overridden, returns True if it matches, False
* otherwise
*/
public boolean matches(OutputT output) {
Expand All @@ -37,11 +37,11 @@ public boolean matches(OutputT output) {
/**
* Default method definition that matches the exception
* with the expected state defined by the acceptor.
* Overriden by each acceptor definition of matches.
* Overridden by each acceptor definition of matches.
*
* @param output Exception thrown by the execution of the operation
* @return False by default.
* When overriden, returns True if it matches, False otherwise
* When overridden, returns True if it matches, False otherwise
*/
public boolean matches(ErrorT output) {
return false;
Expand Down