HHH-13496 Make inner classes 'static' when possible

This commit is contained in:
Sanne Grinovero 2019-07-05 16:03:07 +01:00
parent 881eec83fe
commit f8bd799544
7 changed files with 8 additions and 8 deletions

View File

@ -1356,7 +1356,7 @@ public class InFlightMetadataCollectorImpl implements InFlightMetadataCollector
return xrefEntry == null ? null : xrefEntry.secondaryTableJoinMap; return xrefEntry == null ? null : xrefEntry.secondaryTableJoinMap;
} }
private final class EntityTableXrefImpl implements EntityTableXref { private static final class EntityTableXrefImpl implements EntityTableXref {
private final Identifier primaryTableLogicalName; private final Identifier primaryTableLogicalName;
private final Table primaryTable; private final Table primaryTable;
private EntityTableXrefImpl superEntityTableXref; private EntityTableXrefImpl superEntityTableXref;

View File

@ -4149,7 +4149,7 @@ public class ModelBinder {
} }
} }
private class ManyToOneFkSecondPass extends FkSecondPass { private static class ManyToOneFkSecondPass extends FkSecondPass {
private final MappingDocument mappingDocument; private final MappingDocument mappingDocument;
private final ManyToOne manyToOneBinding; private final ManyToOne manyToOneBinding;
@ -4210,7 +4210,7 @@ public class ModelBinder {
} }
} }
private class NaturalIdUniqueKeyBinderImpl implements NaturalIdUniqueKeyBinder { private static class NaturalIdUniqueKeyBinderImpl implements NaturalIdUniqueKeyBinder {
private final MappingDocument mappingDocument; private final MappingDocument mappingDocument;
private final PersistentClass entityBinding; private final PersistentClass entityBinding;
private final List<Property> attributeBindings = new ArrayList<Property>(); private final List<Property> attributeBindings = new ArrayList<Property>();

View File

@ -541,7 +541,7 @@ public class EnhancerImpl implements Enhancer {
} }
} }
private class EnhancerClassFileLocator extends ClassFileLocator.ForClassLoader { private static class EnhancerClassFileLocator extends ClassFileLocator.ForClassLoader {
// The name of the class to (possibly be) transformed. // The name of the class to (possibly be) transformed.
private String className; private String className;

View File

@ -207,7 +207,7 @@ public class Teradata14Dialect extends TeradataDialect {
} }
private class TeradataIndexExporter extends StandardIndexExporter implements Exporter<Index> { private static class TeradataIndexExporter extends StandardIndexExporter implements Exporter<Index> {
public TeradataIndexExporter(Dialect dialect) { public TeradataIndexExporter(Dialect dialect) {
super(dialect); super(dialect);

View File

@ -170,7 +170,7 @@ public class JpaCompliantLifecycleStrategy implements BeanLifecycleStrategy {
} }
private class NamedBeanImpl<B> implements ContainedBeanImplementor<B> { private static class NamedBeanImpl<B> implements ContainedBeanImplementor<B> {
private final Class<B> beanType; private final Class<B> beanType;
private final String beanName; private final String beanName;

View File

@ -120,7 +120,7 @@ public class ManagedBeanRegistryImpl implements ManagedBeanRegistry, BeanContain
registrations.clear(); registrations.clear();
} }
private class ContainedBeanManagedBeanAdapter<B> implements ManagedBean<B> { private static class ContainedBeanManagedBeanAdapter<B> implements ManagedBean<B> {
private final Class<B> beanClass; private final Class<B> beanClass;
private final ContainedBean<B> containedBean; private final ContainedBean<B> containedBean;

View File

@ -548,7 +548,7 @@ public class SchemaDropperImpl implements SchemaDropper {
} }
} }
private class JdbcContextDelayedDropImpl implements JdbcContext { private static class JdbcContextDelayedDropImpl implements JdbcContext {
private final ServiceRegistry serviceRegistry; private final ServiceRegistry serviceRegistry;
private final JdbcServices jdbcServices; private final JdbcServices jdbcServices;
private final JdbcConnectionAccess jdbcConnectionAccess; private final JdbcConnectionAccess jdbcConnectionAccess;