We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f99533c commit ebc60c7Copy full SHA for ebc60c7
src/main/java/io/appium/java_client/proxy/Helpers.java
@@ -50,7 +50,7 @@ public class Helpers {
50
// the performance and to avoid extensive memory usage for our case, where
51
// the amount of instrumented proxy classes we create is low in comparison to the amount
52
// of proxy instances.
53
- private static final ConcurrentMap<ProxyClassSignature, Class<?>> CACHED_PROXY_CLASSES = new ConcurrentHashMap<>();
+ private static final Map<ProxyClassSignature, Class<?>> CACHED_PROXY_CLASSES = Collections.synchronizedMap(new WeakHashMap<>());
54
55
private Helpers() {
56
}
0 commit comments