diff options
Diffstat (limited to 'subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/internal/apiimpl/ViatraQueryEngineImpl.java')
-rw-r--r-- | subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/internal/apiimpl/ViatraQueryEngineImpl.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/internal/apiimpl/ViatraQueryEngineImpl.java b/subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/internal/apiimpl/ViatraQueryEngineImpl.java index 5317a79e..84ac8f7d 100644 --- a/subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/internal/apiimpl/ViatraQueryEngineImpl.java +++ b/subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/internal/apiimpl/ViatraQueryEngineImpl.java | |||
@@ -74,7 +74,7 @@ public final class ViatraQueryEngineImpl extends AdvancedViatraQueryEngine | |||
74 | /** | 74 | /** |
75 | * The context of the engine, provided by the scope. | 75 | * The context of the engine, provided by the scope. |
76 | */ | 76 | */ |
77 | private IEngineContext engineContext; | 77 | private final IEngineContext engineContext; |
78 | 78 | ||
79 | /** | 79 | /** |
80 | * Initialized matchers for each query | 80 | * Initialized matchers for each query |
@@ -85,7 +85,7 @@ public final class ViatraQueryEngineImpl extends AdvancedViatraQueryEngine | |||
85 | /** | 85 | /** |
86 | * The RETE and other pattern matcher implementations of the VIATRA Query Engine. | 86 | * The RETE and other pattern matcher implementations of the VIATRA Query Engine. |
87 | */ | 87 | */ |
88 | private volatile Map<IQueryBackendFactory, IQueryBackend> queryBackends = new HashMap<>(); | 88 | private final Map<IQueryBackendFactory, IQueryBackend> queryBackends = Collections.synchronizedMap(new HashMap<>()); |
89 | 89 | ||
90 | /** | 90 | /** |
91 | * The current engine default hints | 91 | * The current engine default hints |