[infinispan-issues] [JBoss JIRA] (ISPN-10312) Evaluate locations that use CompletableFuture#join

Tristan Tarrant (Jira) issues at jboss.org
Mon Oct 7 04:30:01 EDT 2019


    [ https://issues.jboss.org/browse/ISPN-10312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13795298#comment-13795298 ] 

Tristan Tarrant commented on ISPN-10312:
----------------------------------------

Maybe a checkstyle rule to detect this in src/main (it is fine if we do this in src/test)

> Evaluate locations that use CompletableFuture#join
> --------------------------------------------------
>
>                 Key: ISPN-10312
>                 URL: https://issues.jboss.org/browse/ISPN-10312
>             Project: Infinispan
>          Issue Type: Sub-task
>            Reporter: Will Burns
>            Assignee: Will Burns
>            Priority: Major
>
> Invoking join or get on a CompletableFuture is a code stink and should be evaluated if it can be refactored to something else. Quite possibly this JIRA may be to just create other JIRAs but any simple refactorings can be done here.
> Invocations to watch for {code}CompletionStages.join(){code}, {code}CompletableFuture.join(){code}, {code}CompletableFuture.get(){code}, {code}CompletableFuture.get(int, TimeUnit){code}



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list