Remove unnecessary lambda blocks
Remove lambda blocks that aren't needed and replace instead with a simple expression. Issue gh-8945
This commit is contained in:
+2
-3
@@ -94,9 +94,8 @@ public class PayloadInterceptorRSocketTests {
|
||||
public void constructorWhenNullDelegateThenException() {
|
||||
this.delegate = null;
|
||||
List<PayloadInterceptor> interceptors = Arrays.asList(this.interceptor);
|
||||
assertThatCode(() -> {
|
||||
new PayloadInterceptorRSocket(this.delegate, interceptors, this.metadataMimeType, this.dataMimeType);
|
||||
}).isInstanceOf(IllegalArgumentException.class);
|
||||
assertThatCode(() -> new PayloadInterceptorRSocket(this.delegate, interceptors, this.metadataMimeType,
|
||||
this.dataMimeType)).isInstanceOf(IllegalArgumentException.class);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user