Skip to content

Commit 6daf599

Browse files
author
Dewey Nguyen
committed
Add short type support
1 parent c9fd7c0 commit 6daf599

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS SDK for Java v2",
4+
"contributor": "duy3101",
5+
"description": "Add short type support"
6+
}

codegen/src/main/java/software/amazon/awssdk/codegen/internal/TypeUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public static final class TypeKey {
8383
MARSHALLING_TYPE_MAPPINGS.put("Boolean", "BOOLEAN");
8484
MARSHALLING_TYPE_MAPPINGS.put("BigDecimal", "BIG_DECIMAL");
8585
MARSHALLING_TYPE_MAPPINGS.put("InputStream", "STREAM");
86+
MARSHALLING_TYPE_MAPPINGS.put("Short", "SHORT");
8687
MARSHALLING_TYPE_MAPPINGS.put(null, "NULL");
8788
}
8889

core/sdk-core/src/main/java/software/amazon/awssdk/core/protocol/MarshallingType.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ public interface MarshallingType<T> {
6060

6161
MarshallingType<Map<String, ?>> MAP = newType(Map.class);
6262

63+
MarshallingType<Short> SHORT = newType(Short.class);
64+
6365
Class<? super T> getTargetClass();
6466

6567
static <T> MarshallingType<T> newType(Class<? super T> clzz) {

0 commit comments

Comments
 (0)