Skip to content

Commit

Permalink
Remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideD committed Feb 14, 2025
1 parent 57c7b4d commit 6375403
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,16 @@
import org.hibernate.reactive.engine.impl.ReactiveCallbackImpl;
import org.hibernate.reactive.sql.exec.internal.StandardReactiveSelectExecutor;
import org.hibernate.reactive.sql.results.spi.ReactiveListResultsConsumer;
import org.hibernate.reactive.util.impl.CompletionStages;
import org.hibernate.resource.jdbc.spi.LogicalConnectionImplementor;
import org.hibernate.sql.ast.tree.select.SelectStatement;
import org.hibernate.sql.exec.internal.JdbcParameterBindingsImpl;
import org.hibernate.sql.exec.spi.Callback;
import org.hibernate.sql.exec.spi.ExecutionContext;
import org.hibernate.sql.exec.spi.JdbcParameterBindings;
import org.hibernate.sql.exec.spi.JdbcParametersList;
import org.hibernate.sql.results.internal.RowTransformerStandardImpl;
import org.hibernate.sql.results.spi.RowTransformer;

import static org.hibernate.reactive.util.impl.CompletionStages.nullFuture;
import static org.hibernate.reactive.util.impl.CompletionStages.voidFuture;

public class ReactiveSingleIdLoadPlan<T> extends SingleIdLoadPlan<CompletionStage<T>> {

Expand Down Expand Up @@ -87,7 +84,7 @@ public CompletionStage<T> load(Object restrictedValue, Object entityInstance, Bo
private RowTransformer<T> rowTransformer() {
// At the moment, I'm not sure how to refactor the code so that getRowTransformer()
// returns RowTransformer<T> instead of RowTransformer<CompletionStage<T>>.
return (RowTransformer<T>) getRowTransformer()
return (RowTransformer<T>) getRowTransformer();
}

private CompletionStage<T> invokeAfterLoadActions(ReactiveCallbackImpl callback, SharedSessionContractImplementor session, T entity) {
Expand Down Expand Up @@ -168,7 +165,7 @@ public CollectionKey getCollectionKey() {

@Override
public QueryParameterBindings getQueryParameterBindings() {
return QueryParameterBindings.NO_PARAM_BINDINGS;
return QueryParameterBindings.empty();
}

@Override
Expand Down

0 comments on commit 6375403

Please sign in to comment.