Replace anonymous Runnables with lambdas in WatchService #370
Labels
good first issue
Good for newcomers
help wanted
Extra attention is needed
java
Pull requests that update Java code
Description
I see that we have some places in code where we're still using anonymous classes. Since we're already on Java 8, we can easily refactor these to make use of lambdas. For example, I noticed these in WatchService:
https://github.com/eclipse/jkube/blob/8ca3f342372128fe12ea1572db1e37d033406a94/jkube-kit/build/service/docker/src/main/java/org/eclipse/jkube/kit/build/service/docker/WatchService.java#L141-L156
https://github.com/eclipse/jkube/blob/8ca3f342372128fe12ea1572db1e37d033406a94/jkube-kit/build/service/docker/src/main/java/org/eclipse/jkube/kit/build/service/docker/WatchService.java#L179-L201
https://github.com/eclipse/jkube/blob/8ca3f342372128fe12ea1572db1e37d033406a94/jkube-kit/build/service/docker/src/main/java/org/eclipse/jkube/kit/build/service/docker/WatchService.java#L211-L223
The text was updated successfully, but these errors were encountered: