Skip to content

Commit 1f520c9

Browse files
committed
Improved generics for CacheMap
1 parent 712c328 commit 1f520c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/io/engagingspaces/vertx/dataloader/DataLoaderOptions.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package io.engagingspaces.vertx.dataloader;
1818

19-
import io.vertx.core.Future;
2019
import io.vertx.core.json.JsonObject;
2120

2221
import java.util.Objects;
@@ -154,7 +153,7 @@ public Optional<CacheMap> cacheMap() {
154153
* @param cacheMap the cache map instance
155154
* @return the data loader options for fluent coding
156155
*/
157-
public <K, V> DataLoaderOptions setCacheMap(CacheMap<K, Future<V>> cacheMap) {
156+
public DataLoaderOptions setCacheMap(CacheMap cacheMap) {
158157
this.cacheMap = cacheMap;
159158
return this;
160159
}

0 commit comments

Comments
 (0)