Skip to content

Commit d72067e

Browse files
seratchzoewangg
authored andcommitted
Fix the several typos detected by github.com/client9/misspell
Signed-off-by: Kazuhiro Sera <[email protected]>
1 parent 34a6884 commit d72067e

File tree

26 files changed

+44
-44
lines changed

26 files changed

+44
-44
lines changed

.changes/2.0.0-preview-2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"category": "AWS SDK for Java v2",
77
"type": "feature",
8-
"description": "Substantial improvments to start up time and cold start latencies"
8+
"description": "Substantial improvements to start up time and cold start latencies"
99
},
1010
{
1111
"category": "AWS SDK for Java v2",

.changes/2.0.0-preview-4.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
{
3636
"category": "AWS SDK for Java v2",
3737
"type": "bugfix",
38-
"description": "Many improvments and fixes to the Netty NIO based transport."
38+
"description": "Many improvements and fixes to the Netty NIO based transport."
3939
},
4040
{
4141
"category": "AWS SDK for Java v2",

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@
306306

307307
- ### Bugfixes
308308
- 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)
309-
- Many improvments and fixes to the Netty NIO based transport.
309+
- Many improvements and fixes to the Netty NIO based transport.
310310
- 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)
311311
- Several fixes around serialization and deserialization of immutable objects. See [Issue #122](https://github.com/aws/aws-sdk-java-v2/issues/122)
312312
- 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.
@@ -321,7 +321,7 @@
321321
- ### Features
322322
- 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.
323323
- Simple convenience methods have been added for operations that require no input parameters.
324-
- Substantial improvments to start up time and cold start latencies
324+
- Substantial improvements to start up time and cold start latencies
325325
- 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.
326326
- Using java.time instead of the legacy java.util.Date in generated model classes.
327327
- Various improvements to the immutability of model POJOs. ByteBuffers are now copied and collections are returned as unmodifiable.

codegen/src/main/java/software/amazon/awssdk/codegen/docs/DocumentationBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public DocumentationBuilder see(String seeLink, Object... formatArgs) {
208208
}
209209

210210
/**
211-
* Builds the Javadoc string with the current configuraton.
211+
* Builds the Javadoc string with the current configuration.
212212
*
213213
* @return Formatted Javadoc string.
214214
*/

core/auth/src/main/java/software/amazon/awssdk/auth/credentials/ContainerCredentialsProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private URI createGenericContainerUrl() {
134134
if (!ALLOWED_HOSTS.contains(uri.getHost())) {
135135

136136
throw SdkClientException.builder()
137-
.message(String.format("The full URI (%s) contained withing environment " +
137+
.message(String.format("The full URI (%s) contained within environment " +
138138
"variable %s has an invalid host. Host can only be one of [%s].",
139139
uri,
140140
SdkSystemSetting.AWS_CONTAINER_CREDENTIALS_FULL_URI
@@ -178,4 +178,4 @@ public ContainerCredentialsProvider build() {
178178
return new ContainerCredentialsProvider(this);
179179
}
180180
}
181-
}
181+
}

core/aws-core/src/main/java/software/amazon/awssdk/awscore/protocol/xml/StaxUnmarshallerContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public int getCurrentDepth() {
148148
* document being parsed.
149149
*
150150
* @param expression
151-
* The psuedo-xpath expression to test.
151+
* The pseudo-xpath expression to test.
152152
* @return True if the expression matches the current document position,
153153
* otherwise false.
154154
*/
@@ -165,7 +165,7 @@ public boolean testExpression(String expression) {
165165
* specified stack depth.
166166
*
167167
* @param expression
168-
* The psuedo-xpath expression to test.
168+
* The pseudo-xpath expression to test.
169169
* @param startingStackDepth
170170
* The depth in the stack representing where the expression must
171171
* start matching in order for this method to return true.

core/regions/src/main/java/software/amazon/awssdk/regions/internal/model/Service.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public void setIsRegionalized(boolean regionalized) {
112112
}
113113

114114
/**
115-
* A convienient method that returns true if a service has a partition
115+
* A convenient method that returns true if a service has a partition
116116
* wide endpoint available.
117117
*/
118118
public boolean isPartitionWideEndpointAvailable() {

core/sdk-core/src/main/java/software/amazon/awssdk/core/internal/protocol/json/SdkCborGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
@SdkInternalApi
2929
public final class SdkCborGenerator extends SdkJsonGenerator {
3030

31-
private static final int CBOR_TAG_TIMESTAP = 1;
31+
private static final int CBOR_TAG_TIMESTAMP = 1;
3232

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

4848
CBORGenerator generator = (CBORGenerator) getGenerator();
4949
try {
50-
generator.writeTag(CBOR_TAG_TIMESTAP);
50+
generator.writeTag(CBOR_TAG_TIMESTAMP);
5151
generator.writeNumber(instant.toEpochMilli());
5252
} catch (IOException e) {
5353
throw new JsonGenerationException(e);

core/sdk-core/src/test/java/software/amazon/awssdk/core/util/XpathUtilsTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,12 @@ public void testAsNode() throws Exception {
202202
public void testMissingNodes() throws Exception {
203203
Document document = documentFrom(DOCUMENT);
204204
XPath xpath = XpathUtils.xpath();
205-
assertNull(asDouble("non-existant-node/name", document, xpath));
206-
assertNull(asLong("non-existant-node/name", document, xpath));
207-
assertNull(asInteger("non-existant-node/name", document, xpath));
208-
assertNull(asDate("non-existant-node/name", document, xpath));
209-
assertNull(asFloat("non-existant-node/name", document, xpath));
210-
assertNull(asString("non-existant-node/name", document, xpath));
205+
assertNull(asDouble("non-existent-node/name", document, xpath));
206+
assertNull(asLong("non-existent-node/name", document, xpath));
207+
assertNull(asInteger("non-existent-node/name", document, xpath));
208+
assertNull(asDate("non-existent-node/name", document, xpath));
209+
assertNull(asFloat("non-existent-node/name", document, xpath));
210+
assertNull(asString("non-existent-node/name", document, xpath));
211211
}
212212

213213
/**

docs/UseOfCompletableFuture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
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.
44

5-
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.
5+
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.
66

77
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.
88

@@ -15,4 +15,4 @@ Using [`CompleteableFuture`][1] gives users the best bang for their buck without
1515
[1]: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html
1616
[2]: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletionStage.html
1717
[3]: https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Future.html
18-
[4]: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletionStage.html#toCompletableFuture--
18+
[4]: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletionStage.html#toCompletableFuture--

http-clients/netty-nio-client/src/main/java/software/amazon/awssdk/http/nio/netty/SdkEventLoopGroup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private EventLoopGroup resolveEventLoopGroup(DefaultBuilder builder) {
118118
.build());
119119
return new NioEventLoopGroup(numThreads, threadFactory);
120120
/*
121-
Need to investigate why epoll is raising channel inactive after succesful response that causes
121+
Need to investigate why epoll is raising channel inactive after successful response that causes
122122
problems with retries.
123123
124124
if (Epoll.isAvailable() && isNotAwsLambda()) {

services/appsync/src/main/resources/codegen-resources/service-2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1624,7 +1624,7 @@
16241624
"members":{
16251625
"graphqlApi":{
16261626
"shape":"GraphqlApi",
1627-
"documentation":"<p>The udpated <code>GraphqlApi</code> object.</p>"
1627+
"documentation":"<p>The updated <code>GraphqlApi</code> object.</p>"
16281628
}
16291629
}
16301630
},

services/autoscaling/src/it/java/software/amazon/awssdk/services/autoscaling/AutoScalingIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ public void testInstancesAndProcesses() {
502502

503503

504504
/**
505-
* Tests that we can invoke the notificaiton related operations correctly.
505+
* Tests that we can invoke the notification related operations correctly.
506506
*/
507507

508508
@Test

services/dynamodb/src/it/java/software/amazon/awssdk/services/dynamodb/DynamoServiceIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public void testNullQueryKeyErrorHandling() {
148148
@Test
149149
public void testErrorHandling() throws Exception {
150150

151-
DeleteTableRequest request = DeleteTableRequest.builder().tableName("non-existant-table").build();
151+
DeleteTableRequest request = DeleteTableRequest.builder().tableName("non-existent-table").build();
152152
try {
153153
dynamo.deleteTable(request);
154154
fail("Expected an exception to be thrown");

services/stepfunctions/src/main/java/software/amazon/awssdk/services/stepfunctions/builder/internal/validation/Problem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class Problem {
3232
}
3333

3434
/**
35-
* @return Context of where this violation occured.
35+
* @return Context of where this violation occurred.
3636
*/
3737
public ValidationContext getContext() {
3838
return context;

test/dynamodbdocument-v1/src/it/java/software/amazon/awssdk/services/dynamodb/document/UpdateItemIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ public void testUpdateItemWithConditionExpression() {
266266
// leading to an intentional failure in the update condition
267267
.withString(":zipcode", "98104")
268268
);
269-
fail("Update Should fail as the zip code mentioned in the conditon expression doesn't match");
269+
fail("Update Should fail as the zip code mentioned in the condition expression doesn't match");
270270
} catch (SdkServiceException e) {
271271
assertTrue(e.getMessage().contains("conditional request failed"));
272272
}

test/dynamodbmapper-v1/src/it/java/software/amazon/awssdk/services/dynamodb/datamodeling/BatchLoadIntegrationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public void testBoudaryCases() {
162162
// The request only contains invalid key pairs
163163
List<KeyPair> keyPairs = new LinkedList<KeyPair>();
164164
Class<?> clazz = getUniqueNumericObject().getClass();
165-
keyPairs.add(new KeyPair().withHashKey("non-existant-key"));
165+
keyPairs.add(new KeyPair().withHashKey("non-existent-key"));
166166
itemsToGet.clear();
167167
itemsToGet.put(clazz, keyPairs);
168168
response = mapper.batchLoad(itemsToGet);
@@ -203,7 +203,7 @@ public BatchGetItemResponse answer(InvocationOnMock invocation) throws Throwable
203203
DynamoDbMapper mapper = new DynamoDbMapper(mockClient);
204204
try {
205205
mapper.batchLoad(objs);
206-
fail("Expecting an expection due to exceed of number of retries.");
206+
fail("Expecting an exception due to exceed of number of retries.");
207207
} catch (Exception e) {
208208
e.printStackTrace();
209209
long endTime = System.currentTimeMillis();

test/dynamodbmapper-v1/src/test/java/software/amazon/awssdk/services/dynamodb/datamodeling/DynamoDbMappingException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
package software.amazon.awssdk.services.dynamodb.datamodeling;
1717

1818
/**
19-
* Generic exception for problems occuring when mapping DynamoDB items to Java
19+
* Generic exception for problems occurring when mapping DynamoDB items to Java
2020
* objects or vice versa. Excludes service exceptions.
2121
*/
2222
public class DynamoDbMappingException extends RuntimeException {

test/dynamodbmapper-v1/src/test/java/software/amazon/awssdk/services/dynamodb/datamodeling/DynamoDbMarshaller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* {@link DynamoDbTypeConverted} is created per field/attribute. In the old,
2929
* an new instance of the marshaller was created for each call to
3030
* {@code marshall} and {@code unmarshall}. If your marshaller/converter is not
31-
* thread safe, it is recomended to specify a converter which will instantiate
31+
* thread safe, it is recommended to specify a converter which will instantiate
3232
* a new marshaller per call.</p>
3333
*
3434
* <pre class="brush: java">

test/dynamodbmapper-v1/src/test/java/software/amazon/awssdk/services/dynamodb/datamodeling/DynamoDbMarshalling.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* {@link DynamoDbTypeConverted} is created per field/attribute. In the old,
4343
* an new instance of the marshaller was created for each call to
4444
* {@code marshall} and {@code unmarshall}. If your marshaller/converter is not
45-
* thread safe, it is recomended to specify a converter which will instantiate
45+
* thread safe, it is recommended to specify a converter which will instantiate
4646
* a new marshaller per call.</p>
4747
*
4848
* <pre class="brush: java">

test/dynamodbmapper-v1/src/test/java/software/amazon/awssdk/services/dynamodb/datamodeling/DynamoDbScalarAttribute.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
String attributeName() default "";
3838

3939
/**
40-
* The scalar attirbute type.
40+
* The scalar attribute type.
4141
* @see software.amazon.awssdk.services.dynamodb.model.ScalarAttributeType
4242
*/
4343
ScalarAttributeType type();

test/dynamodbmapper-v1/src/test/java/software/amazon/awssdk/services/dynamodb/datamodeling/DynamoDbTypeConverterFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public <S, T> DynamoDbTypeConverter<S, T> getConverter(Class<S> sourceType, Clas
109109
}
110110

111111
/**
112-
* Delegate factory to allow selected types to be overriden.
112+
* Delegate factory to allow selected types to be overridden.
113113
*/
114114
private static class OverrideFactory extends DelegateFactory {
115115
private final ConverterMap overrides;

test/dynamodbmapper-v1/src/test/java/software/amazon/awssdk/services/dynamodb/datamodeling/DynamoDbTyped.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@
7878
* <p>If the converter being applied is already a supported data type and
7979
* the conversion is of the same attribute type, for instance,
8080
* {@link java.util.Date} to {@link String} to {@code S},
81-
* the annotation may be omited. The annotation is require for all non-standard
82-
* types or if the attribute type binding is being overriden.</p>
81+
* the annotation may be omitted. The annotation is require for all non-standard
82+
* types or if the attribute type binding is being overridden.</p>
8383
*
8484
* <p><b>{@link software.amazon.awssdk.services.dynamodb.model.AttributeValue}</b></p>
8585
* <p>Direct native conversion is supported by default in all schemas.
8686
* If the attribute is a primary or index key, it must specify either
87-
* {@code B}, {@code N}, or {@code S}, otherwise, it may be omited.</p>
87+
* {@code B}, {@code N}, or {@code S}, otherwise, it may be omitted.</p>
8888
*
8989
* <p><b>{@link Boolean} to {@code BOOL}</b></p>
9090
* <p>The standard V2 conversion schema will by default serialize booleans

test/dynamodbmapper-v1/src/test/java/software/amazon/awssdk/services/dynamodb/datamodeling/StandardModelFactoriesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1616,7 +1616,7 @@ public void testPojoWithMixedAnnotations() {
16161616
}
16171617

16181618
/**
1619-
* Pojo field assersions.
1619+
* Pojo field assertions.
16201620
*/
16211621
private static enum PojoAsserts {
16221622
hashKey(KeyType.HASH, null),

test/test-utils/src/main/java/software/amazon/awssdk/core/auth/policy/internal/JsonPolicyReader.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class JsonPolicyReader {
3737

3838
private static final String PRINCIPAL_SCHEMA_SERVICE = "Service";
3939

40-
private static final String PRINICIPAL_SCHEMA_FEDERATED = "Federated";
40+
private static final String PRINCIPAL_SCHEMA_FEDERATED = "Federated";
4141

4242
/**
4343
* Converts the specified JSON string to an AWS policy object.
@@ -247,12 +247,12 @@ private Principal createPrincipal(String schema, JsonNode principalNode) {
247247
return new Principal(principalNode.asText());
248248
} else if (schema.equalsIgnoreCase(PRINCIPAL_SCHEMA_SERVICE)) {
249249
return new Principal(schema, principalNode.asText());
250-
} else if (schema.equalsIgnoreCase(PRINICIPAL_SCHEMA_FEDERATED)) {
250+
} else if (schema.equalsIgnoreCase(PRINCIPAL_SCHEMA_FEDERATED)) {
251251
if (Principal.WebIdentityProvider.fromString(principalNode.asText()) != null) {
252252
return new Principal(
253253
Principal.WebIdentityProvider.fromString(principalNode.asText()));
254254
} else {
255-
return new Principal(PRINICIPAL_SCHEMA_FEDERATED, principalNode.asText());
255+
return new Principal(PRINCIPAL_SCHEMA_FEDERATED, principalNode.asText());
256256
}
257257
}
258258
throw new IllegalArgumentException("Schema " + schema + " is not a valid value for the principal.");

test/test-utils/src/main/java/software/amazon/awssdk/core/waiters/WaiterAcceptor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ public abstract class WaiterAcceptor<OutputT, ErrorT extends RuntimeException> {
2323
/**
2424
* Default method definition that matches the response
2525
* state with the expected state defined by the acceptor.
26-
* Overriden by each acceptor definition of matches.
26+
* Overridden by each acceptor definition of matches.
2727
*
2828
* @param output Response got by the execution of the operation
2929
* @return False by default.
30-
* When overriden, returns True if it matches, False
30+
* When overridden, returns True if it matches, False
3131
* otherwise
3232
*/
3333
public boolean matches(OutputT output) {
@@ -37,11 +37,11 @@ public boolean matches(OutputT output) {
3737
/**
3838
* Default method definition that matches the exception
3939
* with the expected state defined by the acceptor.
40-
* Overriden by each acceptor definition of matches.
40+
* Overridden by each acceptor definition of matches.
4141
*
4242
* @param output Exception thrown by the execution of the operation
4343
* @return False by default.
44-
* When overriden, returns True if it matches, False otherwise
44+
* When overridden, returns True if it matches, False otherwise
4545
*/
4646
public boolean matches(ErrorT output) {
4747
return false;

0 commit comments

Comments
 (0)