Tibor17 edited a comment on pull request #445:
URL: https://github.com/apache/maven-surefire/pull/445#issuecomment-1021454917


   If you read the name of method like a news 
`autoDetectOneWellKnownProvider()` it says that one should be detected.
   We use to return `List<ProviderInfo>`. I know why it is. It simplifies the 
caller but it is not alright. If we have returned `Optional<ProviderInfo>` the 
method would be called easily `.map(singletonList()).orElse(emptyList())` with 
Java 8.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to