Skip to content

Commit

Permalink
Merge pull request #84 from patheloper/fix/pathfinder-concurrency-issue
Browse files Browse the repository at this point in the history
Fix ConcurrentModificationException when frequently pathfinding
  • Loading branch information
Metaphoriker authored Jul 1, 2024
2 parents ba5d669 + dcf6757 commit f942e98
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package org.patheloper.util;

import java.util.HashMap;
import java.util.concurrent.ConcurrentHashMap;

import lombok.Getter;

public class ExpiringHashMap<K, V> extends HashMap<K, ExpiringHashMap.Entry<V>> {
public class ExpiringHashMap<K, V> extends ConcurrentHashMap<K, ExpiringHashMap.Entry<V>> {

private static final long EXPIRATION_TIME = 5 * 60 * 1000;

Expand Down

0 comments on commit f942e98

Please sign in to comment.