There was an error while loading. Please reload this page.
1 parent 3a32462 commit 8f6aa51Copy full SHA for 8f6aa51
1 file changed
src/main/java/io/beautifier/core/Options.java
@@ -29,6 +29,7 @@ The MIT License (MIT)
29
package io.beautifier.core;
30
31
import java.util.EnumSet;
32
+import java.util.Iterator;
33
34
import org.eclipse.jdt.annotation.NonNullByDefault;
35
import org.eclipse.jdt.annotation.Nullable;
@@ -169,7 +170,9 @@ public io.beautifier.html.HTMLOptions.Builder html() {
169
170
}
171
172
public void apply(JSONObject data) {
- for (String key : data.keySet()) {
173
+ final Iterator<String> it = data.keys();
174
+ while (it.hasNext()) {
175
+ final String key = it.next();
176
if (!apply(key, data)) {
177
throw new IllegalArgumentException("Unsupported options key: " + key);
178
0 commit comments