Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
hmottestad committed Nov 6, 2024
1 parent 707dac4 commit d1b7d39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ public SimpleBindingSet(Set<String> bindingNamesSet, Binding[] bindings) {
assert bindings.length > 0;
this.bindingNamesSet = bindingNamesSet;
this.bindings = bindings;
if (Arrays.stream(bindings).anyMatch(Objects::isNull)) {
throw new AssertionError();
}
assert Arrays.stream(bindings).anyMatch(Objects::isNull);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -465,15 +465,11 @@ public Stream<StatementsAndMatcher> getRoot(ConnectionsGroup connectionsGroup, R
if (currentStatementMatcher == rootStatementMatcher) {
return null;
} else {
if (prev == null) {
throw new AssertionError();
}
assert prev != null;
if (this.target instanceof SimplePath) {
if (!currentStatementMatcher.hasSubset(rootStatementMatcher) &&
!prev.var.getName().equals(currentStatementMatcher.getSubjectName()) &&
!prev.var.getName().equals(currentStatementMatcher.getObjectName())) {
throw new AssertionError();
}
assert currentStatementMatcher.hasSubset(rootStatementMatcher) ||
prev.var.getName().equals(currentStatementMatcher.getSubjectName()) ||
prev.var.getName().equals(currentStatementMatcher.getObjectName());

return null;
}
Expand Down

0 comments on commit d1b7d39

Please sign in to comment.