diff options
author | 2022-12-13 03:21:58 +0100 | |
---|---|---|
committer | 2022-12-13 12:25:02 +0100 | |
commit | 6ccc179ea305fc27ae121253b1d1f172bad676fd (patch) | |
tree | 8c5bb8dd7bf45157cabb57b19d17ce9af11aca5f /subprojects/language-semantics/src | |
parent | chore(deps): upgrade to yarn canary (diff) | |
download | refinery-6ccc179ea305fc27ae121253b1d1f172bad676fd.tar.gz refinery-6ccc179ea305fc27ae121253b1d1f172bad676fd.tar.zst refinery-6ccc179ea305fc27ae121253b1d1f172bad676fd.zip |
refactor(store): simplify return types
Prefers sealed non-generic interfaces over wildcard types to avoid
confusion about method return types, especially in collections
(see SonarQube rule java:S1452).
Diffstat (limited to 'subprojects/language-semantics/src')
-rw-r--r-- | subprojects/language-semantics/src/main/java/tools/refinery/language/semantics/model/internal/DecisionTreeCursor.java | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/subprojects/language-semantics/src/main/java/tools/refinery/language/semantics/model/internal/DecisionTreeCursor.java b/subprojects/language-semantics/src/main/java/tools/refinery/language/semantics/model/internal/DecisionTreeCursor.java index 727a9528..a1fdc73d 100644 --- a/subprojects/language-semantics/src/main/java/tools/refinery/language/semantics/model/internal/DecisionTreeCursor.java +++ b/subprojects/language-semantics/src/main/java/tools/refinery/language/semantics/model/internal/DecisionTreeCursor.java | |||
@@ -1,13 +1,11 @@ | |||
1 | package tools.refinery.language.semantics.model.internal; | 1 | package tools.refinery.language.semantics.model.internal; |
2 | 2 | ||
3 | import tools.refinery.store.map.Cursor; | 3 | import tools.refinery.store.map.Cursor; |
4 | import tools.refinery.store.map.VersionedMap; | ||
5 | import tools.refinery.store.tuple.Tuple; | ||
6 | import tools.refinery.store.model.representation.TruthValue; | 4 | import tools.refinery.store.model.representation.TruthValue; |
5 | import tools.refinery.store.tuple.Tuple; | ||
7 | 6 | ||
8 | import java.util.ArrayDeque; | 7 | import java.util.ArrayDeque; |
9 | import java.util.Deque; | 8 | import java.util.Deque; |
10 | import java.util.List; | ||
11 | 9 | ||
12 | class DecisionTreeCursor implements Cursor<Tuple, TruthValue> { | 10 | class DecisionTreeCursor implements Cursor<Tuple, TruthValue> { |
13 | static final int STATE_FINISH = Integer.MAX_VALUE; | 11 | static final int STATE_FINISH = Integer.MAX_VALUE; |
@@ -81,14 +79,4 @@ class DecisionTreeCursor implements Cursor<Tuple, TruthValue> { | |||
81 | key = Tuple.of(rawTuple); | 79 | key = Tuple.of(rawTuple); |
82 | return true; | 80 | return true; |
83 | } | 81 | } |
84 | |||
85 | @Override | ||
86 | public boolean isDirty() { | ||
87 | return false; | ||
88 | } | ||
89 | |||
90 | @Override | ||
91 | public List<VersionedMap<?, ?>> getDependingMaps() { | ||
92 | return List.of(); | ||
93 | } | ||
94 | } | 82 | } |