diff options
author | 2023-04-20 20:12:12 +0200 | |
---|---|---|
committer | 2023-04-21 02:31:09 +0200 | |
commit | fdce348d1b00f2e62d93deda56e3cef7d6560c02 (patch) | |
tree | d0679d990d3b40fa59a2e2212509b7013e3cc688 | |
parent | refactor: lambda-based Dnf and Query factory (diff) | |
download | refinery-fdce348d1b00f2e62d93deda56e3cef7d6560c02.tar.gz refinery-fdce348d1b00f2e62d93deda56e3cef7d6560c02.tar.zst refinery-fdce348d1b00f2e62d93deda56e3cef7d6560c02.zip |
refactor: remove useless DataVariable overload
-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(), |