Make inner classes static where possible

Closes gh-22804
This commit is contained in:
Сергей Цыпанов
2019-04-17 17:37:42 +03:00
committed by Sam Brannen
parent 261dcab8ce
commit 18af3892dd
5 changed files with 5 additions and 5 deletions

View File

@@ -263,7 +263,7 @@ final class InstantiationModelAwarePointcutAdvisorImpl
* Note that this is a <i>dynamic</i> pointcut; otherwise it might be optimized out
* if it does not at first match statically.
*/
private final class PerTargetInstantiationModelPointcut extends DynamicMethodMatcherPointcut {
private static final class PerTargetInstantiationModelPointcut extends DynamicMethodMatcherPointcut {
private final AspectJExpressionPointcut declaredPointcut;

View File

@@ -565,7 +565,7 @@ public class CommonAnnotationBeanPostProcessor extends InitDestroyAnnotationBean
* Class representing generic injection information about an annotated field
* or setter method, supporting @Resource and related annotations.
*/
protected abstract class LookupElement extends InjectionMetadata.InjectedElement {
protected abstract static class LookupElement extends InjectionMetadata.InjectedElement {
protected String name = "";

View File

@@ -35,7 +35,7 @@ final class IntegerToEnumConverterFactory implements ConverterFactory<Integer, E
}
private class IntegerToEnum<T extends Enum> implements Converter<Integer, T> {
private static class IntegerToEnum<T extends Enum> implements Converter<Integer, T> {
private final Class<T> enumType;

View File

@@ -35,7 +35,7 @@ final class StringToEnumConverterFactory implements ConverterFactory<String, Enu
}
private class StringToEnum<T extends Enum> implements Converter<String, T> {
private static class StringToEnum<T extends Enum> implements Converter<String, T> {
private final Class<T> enumType;

View File

@@ -617,7 +617,7 @@ public abstract class TransactionAspectSupport implements BeanFactoryAware, Init
* Opaque object used to hold Transaction information. Subclasses
* must pass it back to methods on this class, but not see its internals.
*/
protected final class TransactionInfo {
protected static final class TransactionInfo {
@Nullable
private final PlatformTransactionManager transactionManager;