- Mockito.doAnswer(new Answer<Object>() {
- @Override
- public Object answer(final InvocationOnMock invocation) throws Throwable {
- if (((ByteBuf) invocation.getArguments()[1]).readableBytes() == 0) {
- return null;
- }
- return EROSubobjectListParserTest.this.subObj;
+ Mockito.doAnswer(invocation -> {
+ if (((ByteBuf) invocation.getArguments()[1]).readableBytes() == 0) {
+ return null;