Skip to content

Commit

Permalink
playframework#1405: replace HashMap be ConcurrentHashMap
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandy authored Apr 25, 2022
1 parent ed2622d commit 72e331f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framework/src/play/classloading/ApplicationClasses.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import java.io.FileOutputStream;
import java.lang.annotation.Annotation;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import javassist.ClassPool;
import javassist.CtClass;
Expand All @@ -30,13 +30,13 @@ public class ApplicationClasses {
/**
* Cache of all compiled classes
*/
Map<String, ApplicationClass> classes = new HashMap<>();
Map<String, ApplicationClass> classes = new ConcurrentHashMap<>();

/**
* Clear the classes cache
*/
public void clear() {
classes = new HashMap<>();
classes = new ConcurrentHashMap<>();
}

/**
Expand Down

0 comments on commit 72e331f

Please sign in to comment.