diff options
Diffstat (limited to 'subprojects/store-query/src/main/java/tools/refinery/store/query/term/DataVariable.java')
-rw-r--r-- | subprojects/store-query/src/main/java/tools/refinery/store/query/term/DataVariable.java | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/subprojects/store-query/src/main/java/tools/refinery/store/query/term/DataVariable.java b/subprojects/store-query/src/main/java/tools/refinery/store/query/term/DataVariable.java index 50ef745c..db160f68 100644 --- a/subprojects/store-query/src/main/java/tools/refinery/store/query/term/DataVariable.java +++ b/subprojects/store-query/src/main/java/tools/refinery/store/query/term/DataVariable.java | |||
@@ -42,11 +42,6 @@ public final class DataVariable<T> extends AnyDataVariable implements Term<T> { | |||
42 | } | 42 | } |
43 | 43 | ||
44 | @Override | 44 | @Override |
45 | public NodeVariable asNodeVariable() { | ||
46 | throw new IllegalStateException("%s is a data variable".formatted(this)); | ||
47 | } | ||
48 | |||
49 | @Override | ||
50 | public <U> DataVariable<U> asDataVariable(Class<U> newType) { | 45 | public <U> DataVariable<U> asDataVariable(Class<U> newType) { |
51 | if (!getType().equals(newType)) { | 46 | if (!getType().equals(newType)) { |
52 | throw new IllegalStateException("%s is not of type %s but of type %s".formatted(this, newType.getName(), | 47 | throw new IllegalStateException("%s is not of type %s but of type %s".formatted(this, newType.getName(), |