diff options
Diffstat (limited to 'model-data/src/main/java/org/eclipse/viatra/solver/data/query/view/RelationView.java')
-rw-r--r-- | model-data/src/main/java/org/eclipse/viatra/solver/data/query/view/RelationView.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/model-data/src/main/java/org/eclipse/viatra/solver/data/query/view/RelationView.java b/model-data/src/main/java/org/eclipse/viatra/solver/data/query/view/RelationView.java index efd8e990..18d2692d 100644 --- a/model-data/src/main/java/org/eclipse/viatra/solver/data/query/view/RelationView.java +++ b/model-data/src/main/java/org/eclipse/viatra/solver/data/query/view/RelationView.java | |||
@@ -15,11 +15,12 @@ import org.eclipse.viatra.solver.data.query.internal.RelationViewKey; | |||
15 | public abstract class RelationView<D>{ | 15 | public abstract class RelationView<D>{ |
16 | protected final Model model; | 16 | protected final Model model; |
17 | protected final Relation<D> representation; | 17 | protected final Relation<D> representation; |
18 | RelationViewKey<D> key = new RelationViewKey<>(this, getArity()); | 18 | private final RelationViewKey<D> key; |
19 | 19 | ||
20 | protected RelationView(Model model, Relation<D> representation) { | 20 | protected RelationView(Model model, Relation<D> representation) { |
21 | this.model = model; | 21 | this.model = model; |
22 | this.representation = representation; | 22 | this.representation = representation; |
23 | key = new RelationViewKey<>(this, getArity()); | ||
23 | } | 24 | } |
24 | 25 | ||
25 | public Model getModel() { | 26 | public Model getModel() { |