Skip to content

Commit b8fd33c

Browse files
committed
simplify cast
1 parent e9b1b36 commit b8fd33c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

backend/src/main/java/com/bakdata/conquery/models/query/ManagedQuery.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ public Stream<EntityResult> streamResults(OptionalLong maybeLimit) {
8585
@Override
8686
public synchronized OptionalLong resultRowCount() {
8787
ExecutionManager executionManager = getExecutionManager();
88-
Optional<ExecutionManager.ExecutionInfo> executionInfo = executionManager.tryGetExecutionInfo(getId());
88+
Optional<ExecutionManager.InternalExecutionInfo> executionInfo = executionManager.tryGetExecutionInfo(getId());
8989

90-
return executionInfo.map(ExecutionManager.InternalExecutionInfo.class::cast)
90+
return executionInfo
9191
.map(ExecutionManager.InternalExecutionInfo::getResultCount)
9292
.map(OptionalLong::of)
9393
.orElse(OptionalLong.empty());

0 commit comments

Comments
 (0)