z3d1k commented on code in PR #85:
URL:
https://github.com/apache/flink-connector-aws/pull/85#discussion_r1247902814
##########
flink-connector-dynamodb/src/main/java/org/apache/flink/connector/dynamodb/table/DynamoDbDynamicSinkFactory.java:
##########
@@ -72,6 +70,10 @@ public String factoryIdentifier() {
@Override
public Set<ConfigOption<?>> requiredOptions() {
- return ImmutableSet.of(TABLE_NAME, AWS_REGION);
+ final Set<ConfigOption<?>> requiredOptions = new HashSet<>();
+ requiredOptions.add(TABLE_NAME);
+ requiredOptions.add(AWS_REGION);
+
+ return requiredOptions;
Review Comment:
~~Is this set available for external modification? If yes -
`Collections.unmodifiableSet(requiredOptions)` can be used to preserve
semantics of immutable collection.~~ not applicable as only available from java
10
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]