Skip to content

Commit e82df67

Browse files
committed
ConcurrentHashMap#contains mimics containsValue not expected containsKey
1 parent b7c7598 commit e82df67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

API/src/main/java/org/ohnlp/backbone/api/components/xlang/python/PythonBridge.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public T getPythonEntryPoint() {
8787
private void extractPythonResourcesIfNotExists() {
8888
CompletableFuture<PythonEnvironment> env = new CompletableFuture<>();
8989
synchronized (JVM_ENVIRONMENTS_BY_BUNDLE_ID) {
90-
if (JVM_ENVIRONMENTS_BY_BUNDLE_ID.contains(this.bundleIdentifier)) {
90+
if (JVM_ENVIRONMENTS_BY_BUNDLE_ID.containsKey(this.bundleIdentifier)) {
9191
try {
9292
// Environment already exists and/or is initializing, just wait for completion and return
9393
JVM_ENVIRONMENTS_BY_BUNDLE_ID.get(this.bundleIdentifier).get();

0 commit comments

Comments
 (0)