Skip to content

Commit

Permalink
[MINOR] Remove deprecated method calling in Driver
Browse files Browse the repository at this point in the history
  • Loading branch information
ILuffZhe committed Dec 24, 2024
1 parent a88b1e8 commit 37b62b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/apache/calcite/jdbc/Driver.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public Driver() {

/** Creates a Driver with a factory for {@code CalcitePrepare} objects;
* if the factory is null, the driver will call
* {@link #createPrepareFactory()}. */
* {@link CalcitePrepare#DEFAULT_FACTORY}. */
protected Driver(@Nullable Supplier<CalcitePrepare> prepareFactory) {
this.prepareFactory = prepareFactory;
}
Expand Down Expand Up @@ -101,7 +101,7 @@ public CalcitePrepare createPrepare() {
if (prepareFactory != null) {
return prepareFactory.get();
}
return createPrepareFactory().apply();
return CalcitePrepare.DEFAULT_FACTORY.apply();
}

/** Returns a factory with which to create a {@link CalcitePrepare}.
Expand Down

0 comments on commit 37b62b4

Please sign in to comment.