Make inner classes static

This commit is contained in:
Mahmoud Ben Hassine
2023-07-04 21:03:36 +02:00
parent 167f3c427d
commit 5c8cb7663f
16 changed files with 33 additions and 27 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2006-2021 the original author or authors.
* Copyright 2006-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -61,6 +61,7 @@ import org.springframework.util.ReflectionUtils.MethodCallback;
*
* @author Dave Syer
* @author Jimmy Praet
* @author Mahmoud Ben Hassine
*/
public class JobScopeTestExecutionListener implements TestExecutionListener {
@@ -139,7 +140,7 @@ public class JobScopeTestExecutionListener implements TestExecutionListener {
* Look for a method returning the type provided, preferring one with the name
* provided.
*/
private final class ExtractorMethodCallback implements MethodCallback {
private static final class ExtractorMethodCallback implements MethodCallback {
private String preferredName;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2006-2021 the original author or authors.
* Copyright 2006-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -62,6 +62,7 @@ import org.springframework.util.ReflectionUtils.MethodCallback;
*
* @author Dave Syer
* @author Chris Schaefer
* @author Mahmoud Ben Hassine
*/
public class StepScopeTestExecutionListener implements TestExecutionListener {
@@ -142,7 +143,7 @@ public class StepScopeTestExecutionListener implements TestExecutionListener {
* Look for a method returning the type provided, preferring one with the name
* provided.
*/
private final class ExtractorMethodCallback implements MethodCallback {
private static final class ExtractorMethodCallback implements MethodCallback {
private String preferredName;