Skip to content

Commit b20e1c1

Browse files
authored
Merge pull request #1420 from dsyer/runnable
Cast to Runnable to avoid compiler error
2 parents ae03169 + ed8a59c commit b20e1c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/src/main/java/io/kubernetes/client/informer/SharedInformerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public synchronized void startAllRegisteredInformers() {
287287
informers.forEach(
288288
(informerType, informer) ->
289289
startedInformers.computeIfAbsent(
290-
informerType, key -> informerExecutor.submit(informer::run)));
290+
informerType, key -> informerExecutor.submit((Runnable) informer::run)));
291291
}
292292

293293
/** Stop all registered informers and shut down the thread pool. */

0 commit comments

Comments
 (0)