File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
wrapper/src/main/java/software/amazon/jdbc Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1919import java .lang .reflect .Modifier ;
2020import java .util .Arrays ;
2121import java .util .Collection ;
22+ import java .util .HashSet ;
2223import java .util .Map ;
2324import java .util .Properties ;
2425import 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
You can’t perform that action at this time.
0 commit comments