Make inner classes static
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user