attilapiros commented on issue #24241: [SPARK-27323][CORE][SQL][STREAMING] Use 
Single-Abstract-Method support in Scala 2.12 to simplify code
URL: https://github.com/apache/spark/pull/24241#issuecomment-478695999
 
 
   There are a few more "((" which could be transformed to " { (":
   
   ```
   (pr/24241) $ git diff 06abd06112 | grep "(([^)]" | grep "=>$"
   +    when(resp.encodeRedirectURL(any())).thenAnswer((invocationOnMock: 
InvocationOnMock) =>
   +    when(allocationClientMock.killExecutorsOnHost("hostA")).thenAnswer((_: 
InvocationOnMock) =>
   +    when(allocationClientMock.killExecutorsOnHost("hostA")).thenAnswer((_: 
InvocationOnMock) =>
   +    when(diskBlockManager.getFile(any[BlockId])).thenAnswer((invocation: 
InvocationOnMock) =>
   +      Mockito.doAnswer((invocationOnMock: InvocationOnMock) =>
   +    when(checkpointerMock.checkpoint(anyString)).thenAnswer((_: 
InvocationOnMock) =>
   ``` 
   
   But I am fine to keep them as it is.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to