IntelliJ Themes: fixed ModifyCollectionInEnhancedForLoop Error Prone error

This commit is contained in:
Karl Tauber
2023-08-04 16:29:21 +02:00
parent 5ffb23c37f
commit bb636bac3f

View File

@@ -272,7 +272,7 @@ public class IntelliJTheme
// override UI defaults with theme specific wildcard replacements
if( !wildcards.isEmpty() ) {
for( Object key : defaults.keySet() ) {
for( Object key : defaults.keySet().toArray() ) {
int dot;
if( !(key instanceof String) ||
(dot = ((String)key).lastIndexOf( '.' )) < 0 )