DATACMNS-1755 - Declare each variable in its own statement.

Update classes so that each member is declared on its own line. This
help to make them slightly easier to see when not using an IDE.

Original pull request: #448.
This commit is contained in:
Phillip Webb
2020-06-09 11:26:33 -07:00
committed by Mark Paluch
parent 67442077b7
commit 86bda64daa
9 changed files with 22 additions and 10 deletions

View File

@@ -108,8 +108,10 @@ public class MappingAuditableBeanWrapperFactory extends DefaultAuditableBeanWrap
private static final Predicate<? super PersistentProperty<?>> HAS_COLLECTION_PROPERTY = it -> it.isCollectionLike()
|| it.isMap();
private final PersistentPropertyPaths<?, ? extends PersistentProperty<?>> createdByPaths, createdDatePaths,
lastModifiedByPaths, lastModifiedDatePaths;
private final PersistentPropertyPaths<?, ? extends PersistentProperty<?>> createdByPaths;
private final PersistentPropertyPaths<?, ? extends PersistentProperty<?>> createdDatePaths;
private final PersistentPropertyPaths<?, ? extends PersistentProperty<?>> lastModifiedByPaths;
private final PersistentPropertyPaths<?, ? extends PersistentProperty<?>> lastModifiedDatePaths;
private final Lazy<Boolean> isAuditable;

View File

@@ -60,7 +60,8 @@ public abstract class SpringDataJaxb {
@XmlAccessorType(XmlAccessType.FIELD)
public static class PageRequestDto {
@XmlAttribute int page, size;
@XmlAttribute int page;
@XmlAttribute int size;
@XmlElement(name = "order", namespace = NAMESPACE) List<OrderDto> orders = new ArrayList<>();
}

View File

@@ -285,7 +285,8 @@ public class AccessOptions {
private static final SetOptions DEFAULT = new SetOptions();
private final SetNulls nullHandling;
private final Propagation collectionPropagation, mapPropagation;
private final Propagation collectionPropagation;
private final Propagation mapPropagation;
private SetOptions() {

View File

@@ -623,7 +623,8 @@ public abstract class AbstractMappingContext<E extends MutablePersistentEntity<?
*/
static class PropertyMatch {
private final @Nullable String namePattern, typeName;
private final @Nullable String namePattern;
private final @Nullable String typeName;
/**
* Creates a new {@link PropertyMatch} for the given name pattern and type name. At least one of the parameters

View File

@@ -39,7 +39,9 @@ public class InvalidPersistentPropertyPath extends MappingException {
private static final long serialVersionUID = 2805815643641094488L;
private static final String DEFAULT_MESSAGE = "No property '%s' found on %s! Did you mean: %s?";
private final String source, unresolvableSegment, resolvedPath;
private final String source;
private final String unresolvableSegment;
private final String resolvedPath;
private final TypeInformation<?> type;
/**

View File

@@ -67,7 +67,9 @@ public class QuerydslBindings {
private final Map<String, PathAndBinding<?, ?>> pathSpecs;
private final Map<Class<?>, PathAndBinding<?, ?>> typeSpecs;
private final Set<String> allowList, denyList, aliases;
private final Set<String> allowList;
private final Set<String> denyList;
private final Set<String> aliases;
private boolean excludeUnlistedProperties;

View File

@@ -33,7 +33,8 @@ import org.springframework.util.ObjectUtils;
*/
public final class RepositoryFragmentConfiguration {
private final String interfaceName, className;
private final String interfaceName;
private final String className;
private final Optional<AbstractBeanDefinition> beanDefinition;
/**

View File

@@ -108,7 +108,8 @@ interface MethodLookups {
private static final String DOMAIN_TYPE_NAME = PARAMETERS[0].getName();
private static final String ID_TYPE_NAME = PARAMETERS[1].getName();
private final ResolvableType entityType, idType;
private final ResolvableType entityType;
private final ResolvableType idType;
private final Class<?> repositoryInterface;
/**

View File

@@ -331,7 +331,8 @@ public abstract class ReturnedType {
private static final class CacheKey {
private final Class<?> returnedType, domainType;
private final Class<?> returnedType;
private final Class<?> domainType;
private final int projectionFactoryHashCode;
private CacheKey(Class<?> returnedType, Class<?> domainType, int projectionFactoryHashCode) {