Apply Checkstyle MethodParamPadCheck module
This commit also fixes its violations. Closes gh-34173
This commit is contained in:
committed by
Sébastien Deleuze
parent
0f38c28e91
commit
6d86b23fbe
@@ -213,8 +213,8 @@ class ApplicationListenerMethodAdapterTests extends AbstractApplicationEventList
|
||||
|
||||
@Test
|
||||
void invokeListenerWithWrongGenericPayload() {
|
||||
Method method = ReflectionUtils.findMethod
|
||||
(SampleEvents.class, "handleGenericStringPayload", EntityWrapper.class);
|
||||
Method method = ReflectionUtils.findMethod(
|
||||
SampleEvents.class, "handleGenericStringPayload", EntityWrapper.class);
|
||||
EntityWrapper<Integer> payload = new EntityWrapper<>(123);
|
||||
invokeListener(method, new PayloadApplicationEvent<>(this, payload));
|
||||
verify(this.sampleEvents, times(0)).handleGenericStringPayload(any());
|
||||
|
||||
@@ -67,7 +67,7 @@ class ConversionServiceFactoryBeanTests {
|
||||
converters.add(new ConverterFactory<String, Bar>() {
|
||||
@Override
|
||||
public <T extends Bar> Converter<String, T> getConverter(Class<T> targetType) {
|
||||
return new Converter<> () {
|
||||
return new Converter<>() {
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public T convert(String source) {
|
||||
|
||||
Reference in New Issue
Block a user