|
@@ -41,7 +41,6 @@ import java.awt.event.ActionEvent;
|
41
|
41
|
import java.awt.event.ActionListener;
|
42
|
42
|
import java.net.URI;
|
43
|
43
|
import java.net.URISyntaxException;
|
44
|
|
-import java.util.Collection;
|
45
|
44
|
import java.util.HashMap;
|
46
|
45
|
import java.util.Map;
|
47
|
46
|
import java.util.Map.Entry;
|
|
@@ -191,9 +190,7 @@ public class URLConfigPanel extends JPanel implements
|
191
|
190
|
@Override
|
192
|
191
|
public void save() {
|
193
|
192
|
valueChanged(null);
|
194
|
|
- final Collection<URLHandlerHolder> elements = model.elements();
|
195
|
|
- final Map<URI, String> handlers = new HashMap<>();
|
196
|
|
- elements.stream()
|
|
193
|
+ final Map<URI, String> handlers = model.elements().stream()
|
197
|
194
|
.collect(Collectors.toMap(URLHandlerHolder::getUri, URLHandlerHolder::getHandler));
|
198
|
195
|
final Set<String> protocols = globalConfig.getOptions("protocol").keySet();
|
199
|
196
|
for (final String protocol : protocols) {
|