diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/access/FileFilterDefinitionElement.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/access/FileFilterDefinitionElement.java index cfc93447ead26087d28e41016fdc4a33ffcee76c..cbeedac7eb86b9b963f32c589ae090667e2469f8 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/access/FileFilterDefinitionElement.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/access/FileFilterDefinitionElement.java @@ -37,10 +37,10 @@ class FileFilterDefinitionElement extends FilterDefinitionElement { return; if (file.lastModified() <= lastLoading) { synchronized (lastLoaded) { - lastLoaded.forEach((hash,tracker) -> { - if (!map.containsKey(hash)) - map.put(hash, tracker); - }); + for (Map.Entry<Hash, DestTracker> entry : lastLoaded.entrySet()) { + if (!map.containsKey(entry.getKey())) + map.put(entry.getKey(),entry.getValue()); + } } return; }