Skip to content

Commit

Permalink
Test use of runtime cast to Serializable for JDK 11.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmnbroad committed Feb 14, 2022
1 parent bcd93af commit 42f8ac9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,10 @@ public FeatureDataSource(final FeatureInput<T> featureInput, final int queryLook

this.currentIterator = null;
this.intervalsForTraversal = null;
this.queryCache = new LocatableCache<>(featureInput.getName(), new DrivingFeatureInputCacheStrategy<>(queryLookaheadBases, this::refillQueryCache));
this.queryCache = new LocatableCache<>(
featureInput.getName(),
new DrivingFeatureInputCacheStrategy<>(queryLookaheadBases,
(Function<Locatable, Iterator<T>> & Serializable) this::refillQueryCache));
}

final void printCacheStats() {
Expand Down

0 comments on commit 42f8ac9

Please sign in to comment.