Skip to content

Commit 9627073

Browse files
the fix!
1 parent be7319a commit 9627073

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wrapper/src/main/java/software/amazon/jdbc/PropertyDefinition.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import java.lang.reflect.Modifier;
2020
import java.util.Arrays;
2121
import java.util.Collection;
22+
import java.util.HashSet;
2223
import java.util.Map;
2324
import java.util.Properties;
2425
import java.util.Set;
@@ -103,7 +104,7 @@ public static void removeAll(final Properties props) {
103104

104105
public static void removeAllExcept(final Properties props, String... propNames) {
105106
LOGGER.finest(() -> "Known properties: " + PROPS_BY_NAME.keySet());
106-
Set<String> propsToDelete = PROPS_BY_NAME.keySet();
107+
Set<String> propsToDelete = new HashSet<>(PROPS_BY_NAME.keySet());
107108
Arrays.asList(propNames).forEach(propsToDelete::remove);
108109
propsToDelete.forEach(props::remove);
109110

0 commit comments

Comments
 (0)