From 51e7e1b7f5c9f0161b5b4e1903ea1567d2f260af Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Mon, 1 Jan 2018 08:59:42 +0100 Subject: [PATCH] DATACMNS-1240 - Update copyright years to 2018. Also, remove some trailing whitespaces and align outdated license header format. --- .../data/annotation/AccessType.java | 6 +- .../data/annotation/CreatedBy.java | 4 +- .../data/annotation/CreatedDate.java | 4 +- .../springframework/data/annotation/Id.java | 4 +- .../data/annotation/LastModifiedBy.java | 4 +- .../data/annotation/LastModifiedDate.java | 4 +- .../annotation/PersistenceConstructor.java | 5 +- .../data/annotation/Persistent.java | 4 +- .../data/annotation/QueryAnnotation.java | 4 +- .../data/annotation/ReadOnlyProperty.java | 4 +- .../data/annotation/Reference.java | 4 +- .../data/annotation/TypeAlias.java | 8 +- .../data/annotation/Version.java | 4 +- .../auditing/AnnotationAuditingMetadata.java | 10 +-- .../data/auditing/AuditableBeanWrapper.java | 14 +-- .../auditing/AuditableBeanWrapperFactory.java | 6 +- .../data/auditing/AuditingHandler.java | 24 +++--- .../auditing/CurrentDateTimeProvider.java | 6 +- .../data/auditing/DateTimeProvider.java | 6 +- .../DefaultAuditableBeanWrapperFactory.java | 42 ++++----- .../auditing/IsNewAwareAuditingHandler.java | 10 +-- .../MappingAuditableBeanWrapperFactory.java | 2 +- .../AnnotationAuditingConfiguration.java | 12 +-- ...uditingBeanDefinitionRegistrarSupport.java | 20 ++--- .../config/AuditingConfiguration.java | 12 +-- .../AuditingHandlerBeanDefinitionParser.java | 16 ++-- ...reAuditingHandlerBeanDefinitionParser.java | 8 +- .../data/authentication/UserCredentials.java | 18 ++-- .../BeanComponentDefinitionBuilder.java | 14 +-- .../data/config/ConfigurationUtils.java | 12 +-- .../data/config/ParsingUtils.java | 16 ++-- .../data/config/TypeFilterParser.java | 20 ++--- .../ClassGeneratingEntityInstantiator.java | 4 +- .../ConfigurableTypeInformationMapper.java | 2 +- .../data/convert/ConverterBuilder.java | 18 ++-- .../data/convert/CustomConversions.java | 2 +- .../data/convert/DefaultConverterBuilder.java | 16 ++-- .../data/convert/DefaultTypeMapper.java | 2 +- .../data/convert/EntityConverter.java | 8 +- .../data/convert/EntityInstantiator.java | 6 +- .../data/convert/EntityInstantiators.java | 2 +- .../data/convert/EntityReader.java | 8 +- .../data/convert/EntityWriter.java | 6 +- .../data/convert/JodaTimeConverters.java | 2 +- .../data/convert/Jsr310Converters.java | 6 +- ...tlinClassGeneratingEntityInstantiator.java | 2 +- .../MappingContextTypeInformationMapper.java | 2 +- .../data/convert/ReadingConverter.java | 4 +- .../convert/ReflectionEntityInstantiator.java | 2 +- .../convert/SimpleTypeInformationMapper.java | 2 +- .../convert/ThreeTenBackPortConverters.java | 8 +- .../data/convert/TypeAliasAccessor.java | 8 +- .../data/convert/TypeInformationMapper.java | 2 +- .../data/convert/TypeMapper.java | 2 +- .../data/convert/WritingConverter.java | 4 +- .../data/crossstore/ChangeSet.java | 4 +- .../data/crossstore/ChangeSetBacked.java | 4 +- ...geSetBackedTransactionSynchronization.java | 2 +- .../data/crossstore/ChangeSetPersister.java | 8 +- .../data/domain/AbstractAggregateRoot.java | 10 +-- .../data/domain/AbstractPageRequest.java | 26 +++--- .../domain/AfterDomainEventPublication.java | 4 +- .../data/domain/Auditable.java | 20 ++--- .../data/domain/AuditorAware.java | 6 +- .../springframework/data/domain/Chunk.java | 10 +-- .../data/domain/DomainEvents.java | 4 +- .../springframework/data/domain/Example.java | 2 +- .../data/domain/ExampleMatcher.java | 2 +- .../org/springframework/data/domain/Page.java | 14 +-- .../springframework/data/domain/PageImpl.java | 14 +-- .../data/domain/PageRequest.java | 2 +- .../springframework/data/domain/Pageable.java | 30 +++---- .../data/domain/Persistable.java | 8 +- .../springframework/data/domain/Range.java | 46 +++++----- .../springframework/data/domain/Slice.java | 32 +++---- .../data/domain/SliceImpl.java | 10 +-- .../org/springframework/data/domain/Sort.java | 86 +++++++++---------- .../springframework/data/domain/Unpaged.java | 6 +- .../data/domain/jaxb/OrderAdapter.java | 8 +- .../data/domain/jaxb/PageAdapter.java | 8 +- .../data/domain/jaxb/PageableAdapter.java | 4 +- .../data/domain/jaxb/SortAdapter.java | 4 +- .../data/domain/jaxb/SpringDataJaxb.java | 16 ++-- .../org/springframework/data/geo/Box.java | 12 +-- .../org/springframework/data/geo/Circle.java | 14 +-- .../data/geo/CustomMetric.java | 12 +-- .../springframework/data/geo/Distance.java | 24 +++--- .../springframework/data/geo/GeoModule.java | 4 +- .../org/springframework/data/geo/GeoPage.java | 12 +-- .../springframework/data/geo/GeoResult.java | 4 +- .../springframework/data/geo/GeoResults.java | 14 +-- .../org/springframework/data/geo/Metric.java | 8 +- .../org/springframework/data/geo/Metrics.java | 8 +- .../org/springframework/data/geo/Point.java | 12 +-- .../org/springframework/data/geo/Polygon.java | 10 +-- .../org/springframework/data/geo/Shape.java | 4 +- .../data/geo/format/DistanceFormatter.java | 10 +-- .../data/geo/format/PointFormatter.java | 6 +- .../history/AnnotationRevisionMetadata.java | 2 +- .../data/history/Revision.java | 16 ++-- .../data/history/RevisionMetadata.java | 4 +- .../data/history/RevisionSort.java | 12 +-- .../data/history/Revisions.java | 20 ++--- .../springframework/data/mapping/Alias.java | 4 +- .../data/mapping/Association.java | 2 +- .../data/mapping/AssociationHandler.java | 2 +- .../data/mapping/IdentifierAccessor.java | 2 +- .../data/mapping/MappingException.java | 2 +- .../data/mapping/PersistentEntity.java | 2 +- .../data/mapping/PersistentProperty.java | 2 +- .../mapping/PersistentPropertyAccessor.java | 2 +- .../data/mapping/PreferredConstructor.java | 2 +- .../data/mapping/PropertyHandler.java | 6 +- .../data/mapping/PropertyPath.java | 6 +- .../mapping/PropertyReferenceException.java | 20 ++--- .../mapping/SimpleAssociationHandler.java | 6 +- .../data/mapping/SimplePropertyHandler.java | 6 +- .../TargetAwareIdentifierAccessor.java | 2 +- .../context/AbstractMappingContext.java | 4 +- .../DefaultPersistentPropertyPath.java | 32 +++---- .../InvalidPersistentPropertyPath.java | 14 +-- .../data/mapping/context/MappingContext.java | 2 +- .../mapping/context/MappingContextEvent.java | 10 +-- .../MappingContextIsNewStrategyFactory.java | 2 +- .../mapping/context/PersistentEntities.java | 14 +-- .../context/PersistentPropertyPath.java | 26 +++--- .../model/AbstractPersistentProperty.java | 2 +- .../AnnotationBasedPersistentProperty.java | 2 +- .../mapping/model/BasicPersistentEntity.java | 4 +- .../data/mapping/model/BeanWrapper.java | 4 +- .../BeanWrapperPropertyAccessorFactory.java | 8 +- ...elCaseAbbreviatingFieldNamingStrategy.java | 2 +- ...CamelCaseSplittingFieldNamingStrategy.java | 8 +- ...lassGeneratingPropertyAccessorFactory.java | 2 +- .../model/ConvertingPropertyAccessor.java | 2 +- .../model/DefaultSpELExpressionEvaluator.java | 2 +- .../mapping/model/FieldNamingStrategy.java | 2 +- .../model/IdPropertyIdentifierAccessor.java | 2 +- .../model/MappingInstantiationException.java | 2 +- .../model/MutablePersistentEntity.java | 2 +- .../mapping/model/ParameterValueProvider.java | 4 +- ...ersistentEntityParameterValueProvider.java | 2 +- .../PersistentPropertyAccessorFactory.java | 2 +- .../model/PreferredConstructorDiscoverer.java | 4 +- .../data/mapping/model/Property.java | 8 +- .../PropertyNameFieldNamingStrategy.java | 2 +- .../mapping/model/PropertyValueProvider.java | 2 +- .../data/mapping/model/SimpleTypeHolder.java | 4 +- .../model/SnakeCaseFieldNamingStrategy.java | 4 +- .../data/mapping/model/SpELContext.java | 12 +-- .../model/SpELExpressionEvaluator.java | 6 +- .../SpELExpressionParameterValueProvider.java | 2 +- .../data/projection/Accessor.java | 10 +-- ...efaultMethodInvokingMethodInterceptor.java | 2 +- .../DefaultProjectionInformation.java | 2 +- .../MapAccessingMethodInterceptor.java | 4 +- .../projection/MethodInterceptorFactory.java | 8 +- .../ProjectingMethodInterceptor.java | 14 +-- .../data/projection/ProjectionFactory.java | 12 +-- .../projection/ProjectionInformation.java | 10 +-- .../PropertyAccessingMethodInterceptor.java | 8 +- .../projection/ProxyProjectionFactory.java | 34 ++++---- .../SpelAwareProxyProjectionFactory.java | 10 +-- .../SpelEvaluatingMethodInterceptor.java | 12 +-- .../data/projection/TargetAware.java | 10 +-- .../data/querydsl/EntityPathResolver.java | 4 +- .../data/querydsl/QPageRequest.java | 18 ++-- .../springframework/data/querydsl/QSort.java | 20 ++--- .../querydsl/QuerydslPredicateExecutor.java | 2 +- .../QuerydslRepositoryInvokerAdapter.java | 16 ++-- .../data/querydsl/QuerydslUtils.java | 8 +- .../querydsl/SimpleEntityPathResolver.java | 12 +-- .../querydsl/binding/MultiValueBinding.java | 6 +- .../binding/OptionalValueBinding.java | 6 +- .../querydsl/binding/PathInformation.java | 16 ++-- .../binding/PropertyPathInformation.java | 8 +- .../binding/QuerydslBinderCustomizer.java | 6 +- .../querydsl/binding/QuerydslBindings.java | 4 +- .../binding/QuerydslBindingsFactory.java | 22 ++--- .../binding/QuerydslDefaultBinding.java | 4 +- .../binding/QuerydslPathInformation.java | 16 ++-- .../querydsl/binding/QuerydslPredicate.java | 8 +- .../binding/QuerydslPredicateBuilder.java | 18 ++-- .../querydsl/binding/SingleValueBinding.java | 6 +- .../data/repository/CrudRepository.java | 24 +++--- .../data/repository/NoRepositoryBean.java | 4 +- .../PagingAndSortingRepository.java | 8 +- .../data/repository/RepositoryDefinition.java | 8 +- .../repository/cdi/CdiRepositoryBean.java | 24 +++--- .../cdi/CdiRepositoryConfiguration.java | 2 +- .../cdi/CdiRepositoryExtensionSupport.java | 14 +-- .../data/repository/cdi/Eager.java | 4 +- ...notationRepositoryConfigurationSource.java | 26 +++--- ...ustomRepositoryImplementationDetector.java | 2 +- .../config/DefaultRepositoryBaseClass.java | 4 +- .../DefaultRepositoryConfiguration.java | 16 ++-- .../NamedQueriesBeanDefinitionBuilder.java | 10 +-- .../NamedQueriesBeanDefinitionParser.java | 12 +-- .../RepositoryBeanDefinitionBuilder.java | 12 +-- .../RepositoryBeanDefinitionParser.java | 8 +- ...ositoryBeanDefinitionRegistrarSupport.java | 12 +-- .../config/RepositoryBeanNameGenerator.java | 2 +- .../config/RepositoryComponentProvider.java | 20 ++--- .../config/RepositoryConfiguration.java | 2 +- .../RepositoryConfigurationDelegate.java | 10 +-- .../RepositoryConfigurationExtension.java | 22 ++--- ...positoryConfigurationExtensionSupport.java | 28 +++--- .../config/RepositoryConfigurationSource.java | 20 ++--- .../RepositoryConfigurationSourceSupport.java | 4 +- .../config/RepositoryConfigurationUtils.java | 6 +- .../RepositoryFragmentConfiguration.java | 2 +- .../config/RepositoryNameSpaceHandler.java | 6 +- ...positoryPopulatorBeanDefinitionParser.java | 12 +-- .../data/repository/config/SelectionSet.java | 2 +- ...SpringDataAnnotationBeanNameGenerator.java | 4 +- .../XmlRepositoryConfigurationSource.java | 30 +++---- .../data/repository/core/CrudMethods.java | 20 ++--- .../repository/core/EntityInformation.java | 2 +- .../data/repository/core/EntityMetadata.java | 6 +- .../data/repository/core/NamedQueries.java | 8 +- .../core/RepositoryInformation.java | 18 ++-- .../repository/core/RepositoryMetadata.java | 20 ++--- .../support/AbstractEntityInformation.java | 2 +- .../support/AbstractRepositoryMetadata.java | 20 ++--- .../support/AnnotationRepositoryMetadata.java | 10 +-- .../core/support/DefaultCrudMethods.java | 32 +++---- .../support/DefaultRepositoryInformation.java | 2 +- .../support/DefaultRepositoryMetadata.java | 6 +- .../support/DelegatingEntityInformation.java | 2 +- ...ublishingRepositoryProxyPostProcessor.java | 20 ++--- .../core/support/ExampleMatcherAccessor.java | 2 +- .../support/MethodInvocationValidator.java | 2 +- .../repository/core/support/MethodLookup.java | 2 +- .../core/support/MethodLookups.java | 4 +- .../support/PersistableEntityInformation.java | 2 +- ...anslationRepositoryProxyPostProcessor.java | 6 +- .../support/PersistentEntityInformation.java | 2 +- .../support/PropertiesBasedNamedQueries.java | 4 +- .../core/support/QueryCreationListener.java | 6 +- .../support/QueryExecutionResultHandler.java | 6 +- .../ReactiveRepositoryFactorySupport.java | 6 +- .../ReactiveRepositoryInformation.java | 2 +- .../support/ReflectionEntityInformation.java | 2 +- .../core/support/RepositoryComposition.java | 2 +- .../support/RepositoryFactoryBeanSupport.java | 2 +- .../support/RepositoryFactoryInformation.java | 12 +-- .../support/RepositoryFactorySupport.java | 4 +- .../core/support/RepositoryFragment.java | 2 +- .../RepositoryFragmentsFactoryBean.java | 2 +- .../support/RepositoryProxyPostProcessor.java | 6 +- ...gTransactionDetectorMethodInterceptor.java | 8 +- ...sactionalRepositoryFactoryBeanSupport.java | 14 +-- ...sactionalRepositoryProxyPostProcessor.java | 28 +++--- .../history/RevisionRepository.java | 12 +-- .../support/RevisionEntityInformation.java | 4 +- ...bstractRepositoryPopulatorFactoryBean.java | 14 +-- ...ackson2RepositoryPopulatorFactoryBean.java | 6 +- .../init/Jackson2ResourceReader.java | 2 +- .../init/RepositoriesPopulatedEvent.java | 14 +-- .../repository/init/RepositoryPopulator.java | 4 +- .../data/repository/init/ResourceReader.java | 2 +- .../ResourceReaderRepositoryPopulator.java | 2 +- ...shallerRepositoryPopulatorFactoryBean.java | 8 +- .../init/UnmarshallingResourceReader.java | 2 +- .../DefaultEvaluationContextProvider.java | 4 +- .../repository/query/DefaultParameters.java | 10 +-- ...EvaluationContextExtensionInformation.java | 26 +++--- .../query/EvaluationContextProvider.java | 6 +- ...tensionAwareEvaluationContextProvider.java | 34 ++++---- .../data/repository/query/Functions.java | 2 +- .../data/repository/query/Param.java | 4 +- .../data/repository/query/Parameter.java | 32 +++---- .../repository/query/ParameterAccessor.java | 16 ++-- .../query/ParameterOutOfBoundsException.java | 6 +- .../data/repository/query/Parameters.java | 40 ++++----- .../query/ParametersParameterAccessor.java | 18 ++-- .../query/QueryByExampleExecutor.java | 2 +- .../query/QueryCreationException.java | 12 +-- .../repository/query/QueryLookupStrategy.java | 8 +- .../data/repository/query/QueryMethod.java | 2 +- .../query/ReactiveQueryByExampleExecutor.java | 2 +- .../repository/query/RepositoryQuery.java | 2 +- .../repository/query/ResultProcessor.java | 28 +++--- .../data/repository/query/ReturnedType.java | 2 +- .../query/parser/AbstractQueryCreator.java | 2 +- .../query/parser/OrderBySource.java | 2 +- .../data/repository/query/parser/Part.java | 28 +++--- .../repository/query/parser/PartTree.java | 2 +- .../query/spi/EvaluationContextExtension.java | 12 +-- .../EvaluationContextExtensionSupport.java | 6 +- .../data/repository/query/spi/Function.java | 16 ++-- .../reactive/ReactiveCrudRepository.java | 2 +- .../reactive/ReactiveSortingRepository.java | 2 +- .../reactive/RxJava2CrudRepository.java | 2 +- .../reactive/RxJava2SortingRepository.java | 2 +- .../support/AnnotationAttribute.java | 14 +-- .../support/CrudRepositoryInvoker.java | 10 +-- .../DefaultRepositoryInvokerFactory.java | 12 +-- .../support/DomainClassConverter.java | 10 +-- .../repository/support/MethodParameters.java | 22 ++--- .../support/PageableExecutionUtils.java | 2 +- .../PagingAndSortingRepositoryInvoker.java | 6 +- ...eryMethodParameterConversionException.java | 12 +-- .../support/ReflectionRepositoryInvoker.java | 20 ++--- .../data/repository/support/Repositories.java | 28 +++--- .../RepositoryInvocationInformation.java | 12 +-- .../repository/support/RepositoryInvoker.java | 16 ++-- .../support/RepositoryInvokerFactory.java | 6 +- .../data/repository/util/ClassUtils.java | 20 ++--- .../repository/util/JavaslangCollections.java | 10 +-- .../data/repository/util/NullableWrapper.java | 10 +-- .../util/QueryExecutionConverters.java | 62 ++++++------- .../util/ReactiveWrapperConverters.java | 12 +-- .../repository/util/ReactiveWrappers.java | 18 ++-- .../data/repository/util/TxUtils.java | 4 +- .../data/repository/util/VavrCollections.java | 12 +-- .../support/CachingIsNewStrategyFactory.java | 6 +- .../data/support/ExampleMatcherAccessor.java | 6 +- .../data/support/IsNewStrategy.java | 6 +- .../data/support/IsNewStrategyFactory.java | 6 +- .../support/IsNewStrategyFactorySupport.java | 8 +- .../support/PersistableIsNewStrategy.java | 6 +- .../ChainedTransactionManager.java | 8 +- .../transaction/MultiTransactionStatus.java | 8 +- ...ringTransactionSynchronizationManager.java | 4 +- .../transaction/SynchronizationManager.java | 4 +- .../data/util/AnnotatedTypeScanner.java | 16 ++-- .../AnnotationDetectionFieldCallback.java | 16 ++-- .../AnnotationDetectionMethodCallback.java | 14 +-- .../springframework/data/util/CastUtils.java | 2 +- .../data/util/ClassTypeInformation.java | 18 ++-- .../data/util/CloseableIterator.java | 4 +- .../DirectFieldAccessFallbackBeanWrapper.java | 8 +- .../util/GenericArrayTypeInformation.java | 2 +- .../org/springframework/data/util/Lazy.java | 8 +- .../data/util/LazyStreamable.java | 6 +- .../data/util/MultiValueMapCollector.java | 2 +- .../data/util/NullableUtils.java | 2 +- .../springframework/data/util/Optionals.java | 4 +- .../org/springframework/data/util/Pair.java | 10 +-- .../util/ParameterizedTypeInformation.java | 8 +- .../util/ParentTypeAwareTypeInformation.java | 12 +-- .../data/util/ParsingUtils.java | 10 +-- .../data/util/ReflectionUtils.java | 4 +- .../data/util/StreamUtils.java | 12 +-- .../springframework/data/util/Streamable.java | 18 ++-- .../data/util/TypeDiscoverer.java | 2 +- .../data/util/TypeInformation.java | 2 +- .../util/TypeVariableTypeInformation.java | 6 +- .../springframework/data/util/Version.java | 18 ++-- ...PageableHandlerMethodArgumentResolver.java | 8 +- ...eoasSortHandlerMethodArgumentResolver.java | 6 +- .../springframework/data/web/JsonPath.java | 6 +- ...sonProjectingMethodInterceptorFactory.java | 16 ++-- .../data/web/MapDataBinder.java | 26 +++--- ...ParameterAwarePagedResourcesAssembler.java | 8 +- .../data/web/PageableArgumentResolver.java | 2 +- .../data/web/PageableDefault.java | 10 +-- ...PageableHandlerMethodArgumentResolver.java | 36 ++++---- .../data/web/PagedResourcesAssembler.java | 30 +++---- ...gedResourcesAssemblerArgumentResolver.java | 14 +-- .../data/web/ProjectedPayload.java | 4 +- ...rojectingJackson2HttpMessageConverter.java | 18 ++-- ...ProxyingHandlerMethodArgumentResolver.java | 18 ++-- .../data/web/SortArgumentResolver.java | 4 +- .../springframework/data/web/SortDefault.java | 14 +-- .../SortHandlerMethodArgumentResolver.java | 36 ++++---- .../data/web/SpringDataAnnotationUtils.java | 14 +-- .../data/web/XmlBeamHttpMessageConverter.java | 10 +-- .../config/EnableSpringDataWebSupport.java | 12 +-- ...ateoasAwareSpringDataWebConfiguration.java | 6 +- ...ndlerMethodArgumentResolverCustomizer.java | 2 +- .../ProjectingArgumentResolverRegistrar.java | 16 ++-- .../web/config/QuerydslWebConfiguration.java | 8 +- ...ndlerMethodArgumentResolverCustomizer.java | 2 +- .../SpringDataJacksonConfiguration.java | 4 +- .../web/config/SpringDataJacksonModules.java | 2 +- .../config/SpringDataWebConfiguration.java | 6 +- .../QuerydslPredicateArgumentResolver.java | 8 +- src/test/java/SampleInterface.java | 2 +- src/test/java/TypeInDefaultPackage.java | 4 +- .../springframework/data/DependencyTests.java | 2 +- .../data/annotation/TypeAliasUnitTests.java | 4 +- .../AnnotationAuditingMetadataUnitTests.java | 4 +- .../data/auditing/AuditedUser.java | 4 +- .../auditing/AuditingHandlerUnitTests.java | 4 +- ...tAuditableBeanWrapperFactoryUnitTests.java | 4 +- .../data/auditing/EnableAuditing.java | 4 +- .../IsNewAwareAuditingHandlerUnitTests.java | 4 +- .../auditing/Jsr310ThreeTenBpAuditedUser.java | 2 +- ...gAuditableBeanWrapperFactoryUnitTests.java | 4 +- ...eflectionAuditingBeanWrapperUnitTests.java | 4 +- ...anDefinitionRegistrarSupportUnitTests.java | 6 +- .../UserCredentialsUnitTests.java | 6 +- .../classloadersupport/HidingClassLoader.java | 4 +- .../ShadowingClassLoader.java | 12 +-- .../config/TypeFilterParserUnitTests.java | 4 +- ...GeneratingEntityInstantiatorUnitTests.java | 2 +- ...gurableTypeInformationMapperUnitTests.java | 2 +- .../convert/ConverterBuilderUnitTests.java | 4 +- .../convert/CustomConversionsUnitTests.java | 2 +- .../convert/DefaultTypeMapperUnitTests.java | 2 +- .../convert/EntityInstantiatorsUnitTests.java | 4 +- .../convert/Jsr310ConvertersUnitTests.java | 2 +- ...ContextTypeInformationMapperUnitTests.java | 2 +- ...ReflectionEntityInstantiatorUnitTests.java | 2 +- .../SimpleTypeInformationMapperUnitTests.java | 2 +- .../ThreeTenBackPortConvertersUnitTests.java | 4 +- .../AbstractAggregateRootUnitTests.java | 4 +- .../domain/AbstractPageRequestUnitTests.java | 2 +- .../data/domain/ExampleMatcherUnitTests.java | 2 +- .../data/domain/ExampleUnitTests.java | 2 +- .../data/domain/PageImplUnitTests.java | 4 +- .../data/domain/PageRequestUnitTests.java | 12 +-- .../data/domain/RangeUnitTests.java | 2 +- .../data/domain/SortUnitTests.java | 14 +-- .../domain/jaxb/SpringDataJaxbUnitTests.java | 4 +- .../data/geo/BoxUnitTests.java | 4 +- .../data/geo/CircleUnitTests.java | 4 +- .../data/geo/DistanceUnitTests.java | 4 +- .../data/geo/GeoModuleIntegrationTests.java | 4 +- .../data/geo/GeoResultUnitTests.java | 4 +- .../data/geo/GeoResultsUnitTests.java | 4 +- .../data/geo/PointUnitTests.java | 4 +- .../data/geo/PolygonUnitTests.java | 4 +- .../format/DistanceFormatterUnitTests.java | 4 +- .../geo/format/PointFormatterUnitTests.java | 4 +- .../AnnotationRevisionMetadataUnitTests.java | 4 +- .../data/history/RevisionUnitTests.java | 4 +- .../data/history/RevisionsUnitTests.java | 4 +- .../springframework/data/mapping/Child.java | 5 +- .../data/mapping/Document.java | 5 +- .../data/mapping/MappingMetadataTests.java | 2 +- .../data/mapping/ParameterUnitTests.java | 2 +- .../data/mapping/PersistentEntitySpec.java | 6 +- .../springframework/data/mapping/Person.java | 5 +- .../data/mapping/PersonDocument.java | 5 +- .../data/mapping/PersonNoId.java | 5 +- .../data/mapping/PersonPersistent.java | 5 +- .../data/mapping/PersonWithChildren.java | 5 +- .../data/mapping/PersonWithId.java | 5 +- ...eferredConstructorDiscovererUnitTests.java | 4 +- .../data/mapping/PropertyPathUnitTests.java | 4 +- .../PropertyReferenceExceptionUnitTests.java | 2 +- .../mapping/SimpleTypeHolderUnitTests.java | 4 +- ...argetAwareIdentifierAccessorUnitTests.java | 2 +- ...bstractMappingContextIntegrationTests.java | 6 +- .../AbstractMappingContextUnitTests.java | 2 +- ...DefaultPersistenPropertyPathUnitTests.java | 4 +- .../context/MappingContextEventUnitTests.java | 4 +- ...gContextIsNewStrategyFactoryUnitTests.java | 4 +- .../context/PersistentEntitiesUnitTests.java | 4 +- .../context/PropertyMatchUnitTests.java | 4 +- .../context/SamplePersistentProperty.java | 2 +- .../AbstractPersistentPropertyUnitTests.java | 2 +- ...ationBasedPersistentPropertyUnitTests.java | 2 +- .../model/BasicPersistentEntityUnitTests.java | 2 +- ...reviatingFieldNamingStrategyUnitTests.java | 4 +- ...gPropertyAccessorFactoryDatatypeTests.java | 2 +- ...ropertyAccessorFactoryEntityTypeTests.java | 2 +- ...eneratingPropertyAccessorFactoryTests.java | 2 +- ...ingPropertyAccessorPackageDefaultType.java | 2 +- ...sGeneratingPropertyAccessorPublicType.java | 2 +- .../ConvertingPropertyAccessorUnitTests.java | 2 +- ...IdPropertyIdentifierAccessorUnitTests.java | 2 +- ...EntityParameterValueProviderUnitTests.java | 2 +- ...SnakeCaseFieldNamingStrategyUnitTests.java | 4 +- ...lExpressionParameterProviderUnitTests.java | 2 +- .../model/subpackage/TypeInOtherPackage.java | 2 +- ...DefaultProjectionInformationUnitTests.java | 4 +- ...apAccessingMethodInterceptorUnitTests.java | 4 +- .../ProjectingMethodInterceptorUnitTests.java | 6 +- .../ProjectionIntegrationTests.java | 4 +- ...tyAccessingMethodInterceptorUnitTests.java | 4 +- .../ProxyProjectionFactoryUnitTests.java | 4 +- ...lAwareProxyProjectionFactoryUnitTests.java | 4 +- ...lEvaluatingMethodInterceptorUnitTests.java | 4 +- .../data/querydsl/Address.java | 2 +- .../data/querydsl/QPageRequestUnitTests.java | 4 +- .../data/querydsl/QSortUnitTests.java | 4 +- ...ydslRepositoryInvokerAdapterUnitTests.java | 4 +- .../data/querydsl/QuerydslUtilsUnitTests.java | 2 +- .../SimpleEntityPathResolverUnitTests.java | 4 +- .../springframework/data/querydsl/User.java | 2 +- .../springframework/data/querydsl/Users.java | 2 +- .../QuerydslBindingsFactoryUnitTests.java | 4 +- .../binding/QuerydslBindingsUnitTests.java | 4 +- .../QuerydslDefaultBindingUnitTests.java | 2 +- .../QuerydslPredicateBuilderUnitTests.java | 4 +- .../repository/cdi/AnotherRepository.java | 2 +- .../cdi/AnotherRepositoryCustom.java | 2 +- .../repository/cdi/AnotherRepositoryImpl.java | 2 +- .../cdi/CdiRepositoryBeanUnitTests.java | 4 +- ...itoryExtensionSupportIntegrationTests.java | 4 +- .../repository/cdi/DummyCdiExtension.java | 4 +- .../data/repository/cdi/RepositoryClient.java | 4 +- .../data/repository/cdi/SampleRepository.java | 4 +- .../repository/cdi/StereotypeAnnotation.java | 2 +- ...itoryExtensionSupportIntegrationTests.java | 2 +- ...epositoryConfigurationSourceUnitTests.java | 2 +- .../repository/config/ComposedRepository.java | 2 +- ...sitoryImplementationDetectorUnitTests.java | 2 +- ...faultRepositoryConfigurationUnitTests.java | 4 +- .../repository/config/EnableRepositories.java | 2 +- .../repository/config/ExcludedRepository.java | 2 +- .../config/ExcludedRepositoryImpl.java | 2 +- .../data/repository/config/Mixin.java | 2 +- .../data/repository/config/MixinImpl.java | 2 +- .../repository/config/MyOtherRepository.java | 2 +- .../config/MyOtherRepositoryExtensions.java | 2 +- .../config/MyOtherRepositoryImpl.java | 2 +- .../data/repository/config/MyRepository.java | 2 +- .../repository/config/ProfileRepository.java | 2 +- ...itionRegistrarSupportIntegrationTests.java | 2 +- ...anDefinitionRegistrarSupportUnitTests.java | 2 +- .../RepositoryBeanNameGeneratorUnitTests.java | 4 +- .../RepositoryComponentProviderUnitTests.java | 8 +- ...ositoryConfigurationDelegateUnitTests.java | 4 +- ...onfigurationExtensionSupportUnitTests.java | 4 +- .../RepositoryWithFragmentExclusion.java | 2 +- ...rBeanDefinitionParserIntegrationTests.java | 4 +- .../config/SampleConfiguration.java | 2 +- .../config/SelectionSetUnitTests.java | 2 +- ...epositoryConfigurationSourceUnitTests.java | 4 +- .../config/basepackage/FragmentImpl.java | 2 +- .../config/basepackage/repo/Fragment.java | 2 +- .../basepackage/repo/PersonRepository.java | 2 +- .../excluded/MyOtherRepositoryImpl.java | 2 +- .../AbstractEntityInformationUnitTests.java | 2 +- .../AbstractRepositoryMetadataUnitTests.java | 4 +- ...AnnotationRepositoryMetadataUnitTests.java | 4 +- ...onTransactionAttributeSourceUnitTests.java | 10 +-- .../support/DefaultCrudMethodsUnitTests.java | 2 +- ...DefaultRepositoryInformationUnitTests.java | 2 +- .../DefaultRepositoryMetadataUnitTests.java | 10 +-- .../core/support/DummyEntityInformation.java | 2 +- .../core/support/DummyRepositoryFactory.java | 6 +- .../support/DummyRepositoryFactoryBean.java | 4 +- .../support/DummyRepositoryInformation.java | 2 +- ...RepositoryProxyPostProcessorUnitTests.java | 4 +- ...ExampleSpecificationAccessorUnitTests.java | 4 +- ...PersistableEntityInformationUnitTests.java | 2 +- ...RepositoryProxyPostProcessorUnitTests.java | 10 +-- .../PersistentEntityInformationUnitTests.java | 2 +- .../QueryExecutionResultHandlerUnitTests.java | 2 +- ...eryExecutorMethodInterceptorUnitTests.java | 4 +- ...eactiveRepositoryInformationUnitTests.java | 2 +- ...pperRepositoryFactorySupportUnitTests.java | 2 +- .../ReflectionEntityInformationUnitTests.java | 4 +- .../RepositoryCompositionUnitTests.java | 2 +- ...RepositoryFactoryBeanSupportUnitTests.java | 4 +- .../RepositoryFactorySupportUnitTests.java | 2 +- ...ionDetectorMethodInterceptorUnitTests.java | 4 +- ...RepositoryFactoryBeanSupportUnitTests.java | 4 +- ...RepositoryProxyPostProcessorUnitTests.java | 10 +-- ...ackson2ResourceReaderIntegrationTests.java | 4 +- .../data/repository/init/Person.java | 2 +- ...eReaderRepositoryInitializerUnitTests.java | 4 +- ...nContextExtensionInformationUnitTests.java | 4 +- ...areEvaluationContextProviderUnitTests.java | 8 +- .../repository/query/ParameterUnitTests.java | 2 +- .../ParametersParameterAccessorUnitTests.java | 4 +- .../repository/query/ParametersUnitTests.java | 10 +-- .../query/QueryMethodUnitTests.java | 4 +- .../query/ResultProcessorUnitTests.java | 4 +- .../query/ReturnedTypeUnitTests.java | 4 +- .../SimpleParameterAccessorUnitTests.java | 4 +- .../query/parser/OrderBySourceUnitTests.java | 4 +- .../query/parser/PartTreeUnitTests.java | 4 +- .../sample/SampleAnnotatedRepository.java | 4 +- .../support/AnnotationAttributeUnitTests.java | 4 +- .../CrudRepositoryInvokerUnitTests.java | 4 +- ...ositoryInvokerFactoryIntegrationTests.java | 4 +- .../DomainClassConverterIntegrationTests.java | 4 +- .../DomainClassConverterUnitTests.java | 4 +- .../support/MethodParametersUnitTests.java | 4 +- .../PageableExecutionUtilsUnitTests.java | 4 +- ...nAndSortingRepositoryInvokerUnitTests.java | 4 +- .../ReflectionRepositoryInvokerUnitTests.java | 4 +- .../support/RepositoriesIntegrationTests.java | 4 +- .../support/RepositoriesUnitTests.java | 8 +- .../RepositoryInvocationTestUtils.java | 6 +- .../repository/util/ClassUtilsUnitTests.java | 4 +- .../QueryExecutionConvertersUnitTests.java | 4 +- .../ReactiveWrapperConvertersUnitTests.java | 4 +- .../util/ReactiveWrappersUnitTests.java | 8 +- .../CachingIsNewStrategyFactoryUnitTests.java | 4 +- .../PersistableIsNewStrategyUnitTests.java | 4 +- .../ChainedTransactionManagerTests.java | 4 +- .../util/AnnotatedTypeScannerUnitTests.java | 4 +- ...tationDetectionFieldCallbackUnitTests.java | 4 +- ...ationDetectionMethodCallbackUnitTests.java | 4 +- .../util/ClassTypeInformationUnitTests.java | 2 +- .../data/util/DataCmns511Tests.java | 2 +- ...eldAccessFallbackBeanWrapperUnitTests.java | 4 +- .../data/util/LazyUnitTests.java | 2 +- .../data/util/NullableUtilsUnitTests.java | 2 +- .../data/util/PairUnitTests.java | 4 +- ...ParameterizedTypeInformationUnitTests.java | 2 +- .../data/util/ParsingUtilsUnitTests.java | 6 +- .../data/util/ReflectionUtilsUnitTests.java | 6 +- .../data/util/StreamUtilsTests.java | 4 +- .../data/util/TypeDiscovererUnitTests.java | 2 +- .../data/util/VersionUnitTests.java | 4 +- .../util/nonnull/NullableAnnotatedType.java | 2 +- .../packagelevel/NonNullOnPackage.java | 2 +- .../nonnull/type/CustomAnnotatedType.java | 2 +- .../nonnull/type/CustomNonNullAnnotation.java | 2 +- .../type/Jsr305NonnullAnnotatedType.java | 2 +- .../util/nonnull/type/NonAnnotatedType.java | 2 +- .../nonnull/type/NonNullableParameters.java | 2 +- ...andlerMethodArgumentResolverUnitTests.java | 4 +- ...andlerMethodArgumentResolverUnitTests.java | 4 +- ...tingMethodInterceptorFactoryUnitTests.java | 4 +- .../data/web/MapDataBinderUnitTests.java | 4 +- .../data/web/PageableDefaultUnitTests.java | 4 +- ...andlerMethodArgumentResolverUnitTests.java | 4 +- ...cesAssemblerArgumentResolverUnitTests.java | 4 +- .../web/PagedResourcesAssemblerUnitTests.java | 6 +- ...Jackson2HttpMessageConverterUnitTests.java | 4 +- ...andlerMethodArgumentResolverUnitTests.java | 4 +- .../data/web/SortDefaultUnitTests.java | 4 +- ...andlerMethodArgumentResolverUnitTests.java | 4 +- .../springframework/data/web/TestUtils.java | 4 +- .../data/web/WebTestUtils.java | 2 +- .../XmlBeamHttpMessageConverterUnitTests.java | 4 +- ...eSpringDataWebSupportIntegrationTests.java | 2 +- ...bleResourcesAssemblerIntegrationTests.java | 4 +- .../data/web/config/SampleController.java | 2 +- .../data/web/config/SampleMixin.java | 2 +- ...gDataWebConfigurationIntegrationTests.java | 2 +- ...dslPredicateArgumentResolverUnitTests.java | 4 +- 632 files changed, 2269 insertions(+), 2278 deletions(-) diff --git a/src/main/java/org/springframework/data/annotation/AccessType.java b/src/main/java/org/springframework/data/annotation/AccessType.java index f73619913..5c3f1306c 100644 --- a/src/main/java/org/springframework/data/annotation/AccessType.java +++ b/src/main/java/org/springframework/data/annotation/AccessType.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 the original author or authors. + * Copyright 2014-2018 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. @@ -24,7 +24,7 @@ import java.lang.annotation.Target; /** * Annotation to define how Spring Data shall access values of persistent properties. Can either be {@link Type#FIELD} * or {@link Type#PROPERTY}. Default is field access. - * + * * @author Oliver Gierke */ @Documented @@ -34,7 +34,7 @@ public @interface AccessType { /** * The access type to be used. - * + * * @return */ Type value(); diff --git a/src/main/java/org/springframework/data/annotation/CreatedBy.java b/src/main/java/org/springframework/data/annotation/CreatedBy.java index 31cac3bd5..4507eb05e 100644 --- a/src/main/java/org/springframework/data/annotation/CreatedBy.java +++ b/src/main/java/org/springframework/data/annotation/CreatedBy.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2013 the original author or authors. + * Copyright 2012-2018 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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * Declares a field as the one representing the principal that created the entity containing the field. - * + * * @author Ranie Jade Ramiso * @author Oliver Gierke * @since 1.5 diff --git a/src/main/java/org/springframework/data/annotation/CreatedDate.java b/src/main/java/org/springframework/data/annotation/CreatedDate.java index c4a0e3ba4..d34cb1054 100644 --- a/src/main/java/org/springframework/data/annotation/CreatedDate.java +++ b/src/main/java/org/springframework/data/annotation/CreatedDate.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2013 the original author or authors. + * Copyright 2012-2018 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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * Declares a field as the one representing the date the entity containing the field was created. - * + * * @author Ranie Jade Ramiso * @author Oliver Gierke * @since 1.5 diff --git a/src/main/java/org/springframework/data/annotation/Id.java b/src/main/java/org/springframework/data/annotation/Id.java index f804a2e4f..819750b56 100644 --- a/src/main/java/org/springframework/data/annotation/Id.java +++ b/src/main/java/org/springframework/data/annotation/Id.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2013 the original author or authors. + * Copyright 2011-2018 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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * Demarcates an identifier. - * + * * @author Jon Brisbin * @author Oliver Gierke */ diff --git a/src/main/java/org/springframework/data/annotation/LastModifiedBy.java b/src/main/java/org/springframework/data/annotation/LastModifiedBy.java index 2a07d874f..0aee17b4c 100644 --- a/src/main/java/org/springframework/data/annotation/LastModifiedBy.java +++ b/src/main/java/org/springframework/data/annotation/LastModifiedBy.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2013 the original author or authors. + * Copyright 2012-2018 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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * Declares a field as the one representing the principal that recently modified the entity containing the field. - * + * * @author Ranie Jade Ramiso * @author Oliver Gierke * @since 1.5 diff --git a/src/main/java/org/springframework/data/annotation/LastModifiedDate.java b/src/main/java/org/springframework/data/annotation/LastModifiedDate.java index 11c7410a3..0651cc71d 100644 --- a/src/main/java/org/springframework/data/annotation/LastModifiedDate.java +++ b/src/main/java/org/springframework/data/annotation/LastModifiedDate.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2013 the original author or authors. + * Copyright 2012-2018 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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * Declares a field as the one representing the date the entity containing the field was recently modified. - * + * * @author Ranie Jade Ramiso * @author Oliver Gierke * @since 1.5 diff --git a/src/main/java/org/springframework/data/annotation/PersistenceConstructor.java b/src/main/java/org/springframework/data/annotation/PersistenceConstructor.java index d50acd0d2..50266088e 100644 --- a/src/main/java/org/springframework/data/annotation/PersistenceConstructor.java +++ b/src/main/java/org/springframework/data/annotation/PersistenceConstructor.java @@ -1,11 +1,11 @@ /* - * Copyright (c) 2011 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.springframework.data.annotation; import java.lang.annotation.ElementType; diff --git a/src/main/java/org/springframework/data/annotation/Persistent.java b/src/main/java/org/springframework/data/annotation/Persistent.java index c14dbb865..6c0ad046c 100644 --- a/src/main/java/org/springframework/data/annotation/Persistent.java +++ b/src/main/java/org/springframework/data/annotation/Persistent.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -24,7 +24,7 @@ import org.springframework.stereotype.Indexed; /** * Annotation to generally identify persistent types, fields and parameters. - * + * * @author Jon Brisbin * @author Oliver Gierke */ diff --git a/src/main/java/org/springframework/data/annotation/QueryAnnotation.java b/src/main/java/org/springframework/data/annotation/QueryAnnotation.java index 8f4d48157..1aa0bba75 100644 --- a/src/main/java/org/springframework/data/annotation/QueryAnnotation.java +++ b/src/main/java/org/springframework/data/annotation/QueryAnnotation.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 the original author or authors. + * Copyright 2013-2018 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. @@ -25,7 +25,7 @@ import org.springframework.data.repository.Repository; /** * Meta-Annotation to mark a store specific annotation as a query annotation. This allows generic special handing of * finder methods on {@link Repository} interfaces. - * + * * @author Thomas Darimont */ @Retention(RetentionPolicy.RUNTIME) diff --git a/src/main/java/org/springframework/data/annotation/ReadOnlyProperty.java b/src/main/java/org/springframework/data/annotation/ReadOnlyProperty.java index 8d971c1bf..2ce44b6f3 100644 --- a/src/main/java/org/springframework/data/annotation/ReadOnlyProperty.java +++ b/src/main/java/org/springframework/data/annotation/ReadOnlyProperty.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 the original author or authors. + * Copyright 2014-2018 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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * Marks a field to be {@literal read-only} for the mapping framework and therefore will not be persisted. - * + * * @author Christoph Strobl * @since 1.9 */ diff --git a/src/main/java/org/springframework/data/annotation/Reference.java b/src/main/java/org/springframework/data/annotation/Reference.java index 2d2deffbd..0b2bfd3be 100644 --- a/src/main/java/org/springframework/data/annotation/Reference.java +++ b/src/main/java/org/springframework/data/annotation/Reference.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2013 the original author or authors. + * Copyright 2011-2018 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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * Meta-annotation to be used to annotate annotations that mark references to other objects. - * + * * @author Oliver Gierke * @author Jon Brisbin */ diff --git a/src/main/java/org/springframework/data/annotation/TypeAlias.java b/src/main/java/org/springframework/data/annotation/TypeAlias.java index 4cd558715..c36179894 100644 --- a/src/main/java/org/springframework/data/annotation/TypeAlias.java +++ b/src/main/java/org/springframework/data/annotation/TypeAlias.java @@ -1,11 +1,11 @@ /* - * Copyright 2011-2014 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -27,7 +27,7 @@ import org.springframework.data.mapping.PersistentEntity; /** * Annotation to allow {@link String} based type aliases to be used when writing type information for * {@link PersistentEntity}s. - * + * * @author Oliver Gierke */ @Documented @@ -39,7 +39,7 @@ public @interface TypeAlias { /** * The type alias to be used when persisting - * + * * @return */ String value(); diff --git a/src/main/java/org/springframework/data/annotation/Version.java b/src/main/java/org/springframework/data/annotation/Version.java index 1da3d73dd..d701c0577 100644 --- a/src/main/java/org/springframework/data/annotation/Version.java +++ b/src/main/java/org/springframework/data/annotation/Version.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2013 the original author or authors. + * Copyright 2012-2018 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. @@ -24,7 +24,7 @@ import java.lang.annotation.Target; /** * Demarcates a property to be used as version field to implement optimistic locking on entities. - * + * * @since 1.5 * @author Patryk Wasik * @author Oliver Gierke diff --git a/src/main/java/org/springframework/data/auditing/AnnotationAuditingMetadata.java b/src/main/java/org/springframework/data/auditing/AnnotationAuditingMetadata.java index 7c61eea87..12f48f9b6 100644 --- a/src/main/java/org/springframework/data/auditing/AnnotationAuditingMetadata.java +++ b/src/main/java/org/springframework/data/auditing/AnnotationAuditingMetadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -38,7 +38,7 @@ import org.springframework.util.Assert; /** * Inspects the given {@link Class} for fields annotated by {@link CreatedBy}, {@link CreatedDate}, * {@link LastModifiedBy} , and {@link LastModifiedDate}. Only one field per annotation is stored. - * + * * @author Ranie Jade Ramiso * @author Oliver Gierke * @author Christoph Strobl @@ -78,7 +78,7 @@ final class AnnotationAuditingMetadata { /** * Creates a new {@link AnnotationAuditingMetadata} instance for the given type. - * + * * @param type must not be {@literal null}. */ private AnnotationAuditingMetadata(Class type) { @@ -96,7 +96,7 @@ final class AnnotationAuditingMetadata { /** * Checks whether the given field has a type that is a supported date type. - * + * * @param field */ private void assertValidDateFieldType(Optional field) { @@ -121,7 +121,7 @@ final class AnnotationAuditingMetadata { /** * Return a {@link AnnotationAuditingMetadata} for the given {@link Class}. - * + * * @param type the type to inspect, must not be {@literal null}. */ public static AnnotationAuditingMetadata getMetadata(Class type) { diff --git a/src/main/java/org/springframework/data/auditing/AuditableBeanWrapper.java b/src/main/java/org/springframework/data/auditing/AuditableBeanWrapper.java index 6cd77895a..9b91a6dbd 100644 --- a/src/main/java/org/springframework/data/auditing/AuditableBeanWrapper.java +++ b/src/main/java/org/springframework/data/auditing/AuditableBeanWrapper.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2018 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. @@ -20,7 +20,7 @@ import java.util.Optional; /** * Interface to abstract the ways setting the auditing information can be implemented. - * + * * @author Oliver Gierke * @since 1.5 */ @@ -28,28 +28,28 @@ public interface AuditableBeanWrapper { /** * Set the creator of the object. - * + * * @param value */ Object setCreatedBy(Object value); /** * Set the date the object was created. - * + * * @param value */ TemporalAccessor setCreatedDate(TemporalAccessor value); /** * Set the last modifier of the object. - * + * * @param value */ Object setLastModifiedBy(Object value); /** * Returns the date of the last modification date of the backing bean. - * + * * @return the date of the last modification. * @since 1.10 */ @@ -57,7 +57,7 @@ public interface AuditableBeanWrapper { /** * Set the last modification date. - * + * * @param value */ TemporalAccessor setLastModifiedDate(TemporalAccessor value); diff --git a/src/main/java/org/springframework/data/auditing/AuditableBeanWrapperFactory.java b/src/main/java/org/springframework/data/auditing/AuditableBeanWrapperFactory.java index 9f52456a4..60478f97e 100644 --- a/src/main/java/org/springframework/data/auditing/AuditableBeanWrapperFactory.java +++ b/src/main/java/org/springframework/data/auditing/AuditableBeanWrapperFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -19,7 +19,7 @@ import java.util.Optional; /** * A factory to lookup {@link AuditableBeanWrapper}s. - * + * * @author Oliver Gierke * @since 1.10 */ @@ -27,7 +27,7 @@ public interface AuditableBeanWrapperFactory { /** * Returns the {@link AuditableBeanWrapper} for the given source object if it's eligible for auditing. - * + * * @param source must not be {@literal null}. * @return the {@link AuditableBeanWrapper} for the given source object if it's eligible for auditing. */ diff --git a/src/main/java/org/springframework/data/auditing/AuditingHandler.java b/src/main/java/org/springframework/data/auditing/AuditingHandler.java index 011472794..b40a49f96 100644 --- a/src/main/java/org/springframework/data/auditing/AuditingHandler.java +++ b/src/main/java/org/springframework/data/auditing/AuditingHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -34,7 +34,7 @@ import org.springframework.util.Assert; /** * Auditing handler to mark entity objects created and modified. - * + * * @author Oliver Gierke * @author Christoph Strobl * @since 1.5 @@ -53,7 +53,7 @@ public class AuditingHandler implements InitializingBean { /** * Creates a new {@link AuditableBeanWrapper} using the given {@link MappingContext} when looking up auditing metadata * via reflection. - * + * * @param mappingContext must not be {@literal null}. * @since 1.8 * @deprecated use {@link AuditingHandler(PersistentEntities)} instead. @@ -67,7 +67,7 @@ public class AuditingHandler implements InitializingBean { /** * Creates a new {@link AuditableBeanWrapper} using the given {@link PersistentEntities} when looking up auditing * metadata via reflection. - * + * * @param entities must not be {@literal null}. * @since 1.10 */ @@ -81,7 +81,7 @@ public class AuditingHandler implements InitializingBean { /** * Setter to inject a {@code AuditorAware} component to retrieve the current auditor. - * + * * @param auditorAware must not be {@literal null}. */ public void setAuditorAware(AuditorAware auditorAware) { @@ -94,7 +94,7 @@ public class AuditingHandler implements InitializingBean { * Setter do determine if {@link Auditable#setCreatedDate(DateTime)} and * {@link Auditable#setLastModifiedDate(DateTime)} shall be filled with the current Java time. Defaults to * {@code true}. One might set this to {@code false} to use database features to set entity time. - * + * * @param dateTimeForNow the dateTimeForNow to set */ public void setDateTimeForNow(boolean dateTimeForNow) { @@ -104,7 +104,7 @@ public class AuditingHandler implements InitializingBean { /** * Set this to false if you want to treat entity creation as modification and thus set the current date as * modification date, too. Defaults to {@code true}. - * + * * @param modifyOnCreation if modification information shall be set on creation, too */ public void setModifyOnCreation(boolean modifyOnCreation) { @@ -113,7 +113,7 @@ public class AuditingHandler implements InitializingBean { /** * Sets the {@link DateTimeProvider} to be used to determine the dates to be set. - * + * * @param dateTimeProvider */ public void setDateTimeProvider(DateTimeProvider dateTimeProvider) { @@ -122,7 +122,7 @@ public class AuditingHandler implements InitializingBean { /** * Marks the given object as created. - * + * * @param source */ public void markCreated(Object source) { @@ -134,7 +134,7 @@ public class AuditingHandler implements InitializingBean { /** * Marks the given object as modified. - * + * * @param source */ public void markModified(Object source) { @@ -177,7 +177,7 @@ public class AuditingHandler implements InitializingBean { /** * Sets modifying and creating auditor. Creating auditor is only set on new auditables. - * + * * @param auditable * @return */ @@ -202,7 +202,7 @@ public class AuditingHandler implements InitializingBean { /** * Touches the auditable regarding modification and creation date. Creation date is only set on new auditables. - * + * * @param wrapper * @return */ diff --git a/src/main/java/org/springframework/data/auditing/CurrentDateTimeProvider.java b/src/main/java/org/springframework/data/auditing/CurrentDateTimeProvider.java index d31575806..622264463 100644 --- a/src/main/java/org/springframework/data/auditing/CurrentDateTimeProvider.java +++ b/src/main/java/org/springframework/data/auditing/CurrentDateTimeProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -23,7 +23,7 @@ import org.joda.time.DateTime; /** * Default {@link DateTimeProvider} simply creating new {@link DateTime} instances for each method call. - * + * * @author Oliver Gierke * @author Christoph Strobl * @since 1.5 @@ -32,7 +32,7 @@ public enum CurrentDateTimeProvider implements DateTimeProvider { INSTANCE; - /* + /* * (non-Javadoc) * @see org.springframework.data.auditing.DateTimeProvider#getNow() */ diff --git a/src/main/java/org/springframework/data/auditing/DateTimeProvider.java b/src/main/java/org/springframework/data/auditing/DateTimeProvider.java index 28cad107c..3938d6c35 100644 --- a/src/main/java/org/springframework/data/auditing/DateTimeProvider.java +++ b/src/main/java/org/springframework/data/auditing/DateTimeProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2014 the original author or authors. + * Copyright 2012-2018 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. @@ -20,7 +20,7 @@ import java.util.Optional; /** * SPI to calculate the current time to be used when auditing. - * + * * @author Oliver Gierke * @since 1.5 */ @@ -28,7 +28,7 @@ public interface DateTimeProvider { /** * Returns the current time to be used as modification or creation date. - * + * * @return */ Optional getNow(); diff --git a/src/main/java/org/springframework/data/auditing/DefaultAuditableBeanWrapperFactory.java b/src/main/java/org/springframework/data/auditing/DefaultAuditableBeanWrapperFactory.java index 2035f569d..ad58e5828 100644 --- a/src/main/java/org/springframework/data/auditing/DefaultAuditableBeanWrapperFactory.java +++ b/src/main/java/org/springframework/data/auditing/DefaultAuditableBeanWrapperFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -39,7 +39,7 @@ import org.springframework.util.Assert; /** * A factory class to {@link AuditableBeanWrapper} instances. - * + * * @author Oliver Gierke * @author Christoph Strobl * @since 1.5 @@ -48,7 +48,7 @@ class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory /** * Returns an {@link AuditableBeanWrapper} if the given object is capable of being equipped with auditing information. - * + * * @param source the auditing candidate. * @return */ @@ -75,7 +75,7 @@ class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory /** * An {@link AuditableBeanWrapper} that works with objects implementing - * + * * @author Oliver Gierke */ @RequiredArgsConstructor @@ -92,7 +92,7 @@ class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory .getGeneric(2).resolve(TemporalAccessor.class); } - /* + /* * (non-Javadoc) * @see org.springframework.data.auditing.AuditableBeanWrapper#setCreatedBy(java.util.Optional) */ @@ -103,7 +103,7 @@ class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory return value; } - /* + /* * (non-Javadoc) * @see org.springframework.data.auditing.AuditableBeanWrapper#setCreatedDate(java.util.Optional) */ @@ -116,7 +116,7 @@ class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory return value; } - /* + /* * (non-Javadoc) * @see org.springframework.data.auditing.DefaultAuditableBeanWrapperFactory.AuditableInterfaceBeanWrapper#setLastModifiedBy(java.util.Optional) */ @@ -128,7 +128,7 @@ class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory return value; } - /* + /* * (non-Javadoc) * @see org.springframework.data.auditing.AuditableBeanWrapper#getLastModifiedDate() */ @@ -137,7 +137,7 @@ class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory return getAsTemporalAccessor(auditable.getLastModifiedDate(), TemporalAccessor.class); } - /* + /* * (non-Javadoc) * @see org.springframework.data.auditing.AuditableBeanWrapper#setLastModifiedDate(java.util.Optional) */ @@ -154,7 +154,7 @@ class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory /** * Base class for {@link AuditableBeanWrapper} implementations that might need to convert {@link Calendar} values into * compatible types when setting date/time information. - * + * * @author Oliver Gierke * @since 1.8 */ @@ -178,7 +178,7 @@ class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory /** * Returns the {@link Calendar} in a type, compatible to the given field. - * + * * @param value can be {@literal null}. * @param targetType must not be {@literal null}. * @param source must not be {@literal null}. @@ -213,7 +213,7 @@ class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory /** * Returns the given object as {@link Calendar}. - * + * * @param source can be {@literal null}. * @param target must not be {@literal null}. * @return @@ -243,7 +243,7 @@ class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory /** * An {@link AuditableBeanWrapper} implementation that sets values on the target object using reflection. - * + * * @author Oliver Gierke */ static class ReflectionAuditingBeanWrapper extends DateConvertingAuditableBeanWrapper { @@ -253,7 +253,7 @@ class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory /** * Creates a new {@link ReflectionAuditingBeanWrapper} to set auditing data on the given target object. - * + * * @param target must not be {@literal null}. */ public ReflectionAuditingBeanWrapper(Object target) { @@ -264,7 +264,7 @@ class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory this.target = target; } - /* + /* * (non-Javadoc) * @see org.springframework.data.auditing.AuditableBeanWrapper#setCreatedBy(java.util.Optional) */ @@ -273,7 +273,7 @@ class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory return setField(metadata.getCreatedByField(), value); } - /* + /* * (non-Javadoc) * @see org.springframework.data.auditing.AuditableBeanWrapper#setCreatedDate(java.util.Optional) */ @@ -283,7 +283,7 @@ class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory return setDateField(metadata.getCreatedDateField(), value); } - /* + /* * (non-Javadoc) * @see org.springframework.data.auditing.AuditableBeanWrapper#setLastModifiedBy(java.util.Optional) */ @@ -292,7 +292,7 @@ class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory return setField(metadata.getLastModifiedByField(), value); } - /* + /* * (non-Javadoc) * @see org.springframework.data.auditing.AuditableBeanWrapper#getLastModifiedDate() */ @@ -307,7 +307,7 @@ class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory }), TemporalAccessor.class); } - /* + /* * (non-Javadoc) * @see org.springframework.data.auditing.AuditableBeanWrapper#setLastModifiedDate(java.util.Optional) */ @@ -318,7 +318,7 @@ class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory /** * Sets the given field to the given value if present. - * + * * @param field * @param value */ @@ -331,7 +331,7 @@ class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory /** * Sets the given field to the given value if the field is not {@literal null}. - * + * * @param field * @param value */ diff --git a/src/main/java/org/springframework/data/auditing/IsNewAwareAuditingHandler.java b/src/main/java/org/springframework/data/auditing/IsNewAwareAuditingHandler.java index 4c2565859..b124420d9 100644 --- a/src/main/java/org/springframework/data/auditing/IsNewAwareAuditingHandler.java +++ b/src/main/java/org/springframework/data/auditing/IsNewAwareAuditingHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -31,7 +31,7 @@ import org.springframework.util.Assert; * {@link AuditingHandler} extension that uses an {@link IsNewStrategyFactory} to expose a generic * {@link #markAudited(Optional)} method that will route calls to {@link #markCreated(Optional)} or * {@link #markModified(Optional)} based on the {@link IsNewStrategy} determined from the factory. - * + * * @author Oliver Gierke * @author Christoph Strobl * @since 1.5 @@ -42,7 +42,7 @@ public class IsNewAwareAuditingHandler extends AuditingHandler { /** * Creates a new {@link IsNewAwareAuditingHandler} for the given {@link MappingContext}. - * + * * @param mappingContext must not be {@literal null}. * @since 1.8 * @deprecated use {@link IsNewAwareAuditingHandler(PersistentEntities)} instead. @@ -55,7 +55,7 @@ public class IsNewAwareAuditingHandler extends AuditingHandler { /** * Creates a new {@link IsNewAwareAuditingHandler} for the given {@link MappingContext}. - * + * * @param entities must not be {@literal null}. * @since 1.10 */ @@ -70,7 +70,7 @@ public class IsNewAwareAuditingHandler extends AuditingHandler { * Marks the given object created or modified based on the {@link IsNewStrategy} returned by the * {@link IsNewStrategyFactory} configured. Will rout the calls to {@link #markCreated(Optional)} and * {@link #markModified(Optional)} accordingly. - * + * * @param object */ public void markAudited(Object object) { diff --git a/src/main/java/org/springframework/data/auditing/MappingAuditableBeanWrapperFactory.java b/src/main/java/org/springframework/data/auditing/MappingAuditableBeanWrapperFactory.java index ed200215b..28f201eb5 100644 --- a/src/main/java/org/springframework/data/auditing/MappingAuditableBeanWrapperFactory.java +++ b/src/main/java/org/springframework/data/auditing/MappingAuditableBeanWrapperFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. diff --git a/src/main/java/org/springframework/data/auditing/config/AnnotationAuditingConfiguration.java b/src/main/java/org/springframework/data/auditing/config/AnnotationAuditingConfiguration.java index 9e4ac109c..192228b6b 100644 --- a/src/main/java/org/springframework/data/auditing/config/AnnotationAuditingConfiguration.java +++ b/src/main/java/org/springframework/data/auditing/config/AnnotationAuditingConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2014 the original author or authors. + * Copyright 2013-2018 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. @@ -24,7 +24,7 @@ import org.springframework.util.Assert; /** * Default implementation for {@link AuditingConfiguration}. - * + * * @author Ranie Jade Ramiso * @author Thomas Darimont * @author Oliver Gierke @@ -38,7 +38,7 @@ public class AnnotationAuditingConfiguration implements AuditingConfiguration { /** * Creates a new instance of {@link AnnotationAuditingConfiguration} for the given {@link AnnotationMetadata} and * annotation type. - * + * * @param metadata must not be {@literal null}. * @param annotation must not be {@literal null}. */ @@ -65,7 +65,7 @@ public class AnnotationAuditingConfiguration implements AuditingConfiguration { return attributes.getString("auditorAwareRef"); } - /* + /* * (non-Javadoc) * @see org.springframework.data.auditing.config.AuditingConfiguration#isSetDates() */ @@ -74,7 +74,7 @@ public class AnnotationAuditingConfiguration implements AuditingConfiguration { return attributes.getBoolean("setDates"); } - /* + /* * (non-Javadoc) * @see org.springframework.data.auditing.config.AuditingConfiguration#getDateTimeProviderRef() */ @@ -83,7 +83,7 @@ public class AnnotationAuditingConfiguration implements AuditingConfiguration { return attributes.getString("dateTimeProviderRef"); } - /* + /* * (non-Javadoc) * @see org.springframework.data.auditing.config.AuditingConfiguration#isModifyOnCreate() */ diff --git a/src/main/java/org/springframework/data/auditing/config/AuditingBeanDefinitionRegistrarSupport.java b/src/main/java/org/springframework/data/auditing/config/AuditingBeanDefinitionRegistrarSupport.java index 9dda8e044..54fe7b898 100644 --- a/src/main/java/org/springframework/data/auditing/config/AuditingBeanDefinitionRegistrarSupport.java +++ b/src/main/java/org/springframework/data/auditing/config/AuditingBeanDefinitionRegistrarSupport.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2014 the original author or authors. + * Copyright 2013-2018 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. @@ -37,7 +37,7 @@ import org.springframework.util.StringUtils; * A {@link ImportBeanDefinitionRegistrar} that serves as a base class for store specific implementations for * configuring audit support. Registers a {@link AuditingHandler} based on the provided configuration( * {@link AuditingConfiguration}). - * + * * @author Ranie Jade Ramiso * @author Thomas Darimont * @author Oliver Gierke @@ -65,7 +65,7 @@ public abstract class AuditingBeanDefinitionRegistrarSupport implements ImportBe /** * Registers an appropriate BeanDefinition for an {@link AuditingHandler}. - * + * * @param registry must not be {@literal null}. * @param configuration must not be {@literal null}. * @return @@ -84,7 +84,7 @@ public abstract class AuditingBeanDefinitionRegistrarSupport implements ImportBe /** * Creates a {@link BeanDefinitionBuilder} to ease the definition of store specific {@link AuditingHandler} * implementations. - * + * * @param configuration must not be {@literal null}. * @return */ @@ -99,7 +99,7 @@ public abstract class AuditingBeanDefinitionRegistrarSupport implements ImportBe /** * Configures the given {@link BeanDefinitionBuilder} with the default attributes from the given * {@link AuditingConfiguration}. - * + * * @param configuration must not be {@literal null}. * @param builder must not be {@literal null}. * @return the builder with the audit attributes configured. @@ -130,7 +130,7 @@ public abstract class AuditingBeanDefinitionRegistrarSupport implements ImportBe /** * Retrieve auditing configuration from the given {@link AnnotationMetadata}. - * + * * @param annotationMetadata will never be {@literal null}. * @return */ @@ -140,14 +140,14 @@ public abstract class AuditingBeanDefinitionRegistrarSupport implements ImportBe /** * Return the annotation type to lookup configuration values from. - * + * * @return must not be {@literal null}. */ protected abstract Class getAnnotation(); /** * Register the listener to eventually trigger the {@link AuditingHandler}. - * + * * @param auditingHandlerDefinition will never be {@literal null}. * @param registry will never be {@literal null}. */ @@ -156,14 +156,14 @@ public abstract class AuditingBeanDefinitionRegistrarSupport implements ImportBe /** * Return the name to be used to register the {@link AuditingHandler} under. - * + * * @return */ protected abstract String getAuditingHandlerBeanName(); /** * Registers the given {@link AbstractBeanDefinition} as infrastructure bean under the given id. - * + * * @param definition must not be {@literal null}. * @param id must not be {@literal null} or empty. * @param registry must not be {@literal null}. diff --git a/src/main/java/org/springframework/data/auditing/config/AuditingConfiguration.java b/src/main/java/org/springframework/data/auditing/config/AuditingConfiguration.java index d751b1811..10196face 100644 --- a/src/main/java/org/springframework/data/auditing/config/AuditingConfiguration.java +++ b/src/main/java/org/springframework/data/auditing/config/AuditingConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 the original author or authors. + * Copyright 2013-2018 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. @@ -20,7 +20,7 @@ import org.springframework.data.domain.AuditorAware; /** * Configuration information for auditing. - * + * * @author Ranie Jade Ramiso * @author Thomas Darimont * @author Oliver Gierke @@ -29,28 +29,28 @@ public interface AuditingConfiguration { /** * Returns the bean name of the {@link AuditorAware} instance to be used.. - * + * * @return */ String getAuditorAwareRef(); /** * Returns whether the creation and modification dates shall be set. Defaults to {@literal true}. - * + * * @return */ boolean isSetDates(); /** * Returns whether the entity shall be marked as modified on creation. Defaults to {@literal true}. - * + * * @return */ boolean isModifyOnCreate(); /** * Returns the bean name of the {@link DateTimeProvider} to be used. - * + * * @return */ String getDateTimeProviderRef(); diff --git a/src/main/java/org/springframework/data/auditing/config/AuditingHandlerBeanDefinitionParser.java b/src/main/java/org/springframework/data/auditing/config/AuditingHandlerBeanDefinitionParser.java index e39cffd86..d35ecf6b0 100644 --- a/src/main/java/org/springframework/data/auditing/config/AuditingHandlerBeanDefinitionParser.java +++ b/src/main/java/org/springframework/data/auditing/config/AuditingHandlerBeanDefinitionParser.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2014 the original author or authors. + * Copyright 2012-2018 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. @@ -36,7 +36,7 @@ import org.w3c.dom.Element; /** * {@link BeanDefinitionParser} that parses an {@link AuditingHandler} {@link BeanDefinition} - * + * * @author Oliver Gierke * @since 1.5 */ @@ -50,7 +50,7 @@ public class AuditingHandlerBeanDefinitionParser extends AbstractSingleBeanDefin /** * Creates a new {@link AuditingHandlerBeanDefinitionParser} to point to a {@link MappingContext} with the given bean * name. - * + * * @param mappingContextBeanName must not be {@literal null} or empty. */ @SuppressWarnings("null") @@ -62,14 +62,14 @@ public class AuditingHandlerBeanDefinitionParser extends AbstractSingleBeanDefin /** * Returns the name of the bean definition the {@link AuditingHandler} was registered under. - * + * * @return the resolvedBeanName */ public String getResolvedBeanName() { return resolvedBeanName; } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser#getBeanClass(org.w3c.dom.Element) */ @@ -79,7 +79,7 @@ public class AuditingHandlerBeanDefinitionParser extends AbstractSingleBeanDefin return AuditingHandler.class; } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.xml.AbstractBeanDefinitionParser#shouldGenerateId() */ @@ -88,7 +88,7 @@ public class AuditingHandlerBeanDefinitionParser extends AbstractSingleBeanDefin return true; } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser#doParse(org.w3c.dom.Element, org.springframework.beans.factory.support.BeanDefinitionBuilder) */ @@ -108,7 +108,7 @@ public class AuditingHandlerBeanDefinitionParser extends AbstractSingleBeanDefin ParsingUtils.setPropertyValue(builder, element, "modify-on-creation", "modifyOnCreation"); } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.xml.AbstractBeanDefinitionParser#resolveId(org.w3c.dom.Element, org.springframework.beans.factory.support.AbstractBeanDefinition, org.springframework.beans.factory.xml.ParserContext) */ diff --git a/src/main/java/org/springframework/data/auditing/config/IsNewAwareAuditingHandlerBeanDefinitionParser.java b/src/main/java/org/springframework/data/auditing/config/IsNewAwareAuditingHandlerBeanDefinitionParser.java index fc7c55a21..05986fed8 100644 --- a/src/main/java/org/springframework/data/auditing/config/IsNewAwareAuditingHandlerBeanDefinitionParser.java +++ b/src/main/java/org/springframework/data/auditing/config/IsNewAwareAuditingHandlerBeanDefinitionParser.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2014 the original author or authors. + * Copyright 2012-2018 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. @@ -22,7 +22,7 @@ import org.w3c.dom.Element; /** * {@link AuditingHandlerBeanDefinitionParser} that will register am {@link IsNewAwareAuditingHandler}. Needs to get the * bean id of the {@link MappingContext} it shall refer to. - * + * * @author Oliver Gierke * @since 1.5 */ @@ -30,14 +30,14 @@ public class IsNewAwareAuditingHandlerBeanDefinitionParser extends AuditingHandl /** * Creates a new {@link IsNewAwareAuditingHandlerBeanDefinitionParser}. - * + * * @param mappingContextBeanName must not be {@literal null} or empty. */ public IsNewAwareAuditingHandlerBeanDefinitionParser(String mappingContextBeanName) { super(mappingContextBeanName); } - /* + /* * (non-Javadoc) * @see org.springframework.data.config.AuditingHandlerBeanDefinitionParser#getBeanClass(org.w3c.dom.Element) */ diff --git a/src/main/java/org/springframework/data/authentication/UserCredentials.java b/src/main/java/org/springframework/data/authentication/UserCredentials.java index 9d70f7f39..f1c969a44 100644 --- a/src/main/java/org/springframework/data/authentication/UserCredentials.java +++ b/src/main/java/org/springframework/data/authentication/UserCredentials.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2012 the original author or authors. + * Copyright 2011-2018 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. @@ -21,7 +21,7 @@ import org.springframework.util.StringUtils; /** * Class used to provide credentials for username/password authentication - * + * * @author Thomas Risberg * @author Oliver Gierke */ @@ -34,7 +34,7 @@ public class UserCredentials { /** * Creates a new {@link UserCredentials} instance from the given username and password. Empty {@link String}s provided * will be treated like no username or password set. - * + * * @param username * @param password */ @@ -45,7 +45,7 @@ public class UserCredentials { /** * Get the username to use for authentication. - * + * * @return the username */ @Nullable @@ -55,7 +55,7 @@ public class UserCredentials { /** * Get the password to use for authentication. - * + * * @return the password */ @Nullable @@ -65,7 +65,7 @@ public class UserCredentials { /** * Returns whether the credentials contain a username. - * + * * @return */ public boolean hasUsername() { @@ -74,7 +74,7 @@ public class UserCredentials { /** * Returns whether the credentials contain a password. - * + * * @return */ public boolean hasPassword() { @@ -84,7 +84,7 @@ public class UserCredentials { /** * Returns the password in obfuscated fashion which means everything except the first and last character replaced by * stars. If the password is one or two characters long we'll obfuscate it entirely. - * + * * @return the obfuscated password */ @Nullable @@ -116,7 +116,7 @@ public class UserCredentials { return builder.append(password.substring(password.length() - 1)).toString(); } - /* + /* * (non-Javadoc) * @see java.lang.Object#toString() */ diff --git a/src/main/java/org/springframework/data/config/BeanComponentDefinitionBuilder.java b/src/main/java/org/springframework/data/config/BeanComponentDefinitionBuilder.java index 1466704eb..3b14e34e8 100644 --- a/src/main/java/org/springframework/data/config/BeanComponentDefinitionBuilder.java +++ b/src/main/java/org/springframework/data/config/BeanComponentDefinitionBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. @@ -26,7 +26,7 @@ import org.w3c.dom.Element; /** * Helper to create {@link BeanComponentDefinition} more easily. - * + * * @author Oliver Gierke */ public class BeanComponentDefinitionBuilder { @@ -37,7 +37,7 @@ public class BeanComponentDefinitionBuilder { /** * Creates a new {@link BeanComponentDefinitionBuilder} using the given {@link Element} as default source and the * given {@link ParserContext}. - * + * * @param defaultSource must not be {@literal null}. * @param context must not be {@literal null}. */ @@ -52,7 +52,7 @@ public class BeanComponentDefinitionBuilder { /** * Creates a {@link BeanComponentDefinition} from the given {@link BeanDefinitionBuilder}. Will generate a bean name. - * + * * @param builder must not be {@literal null}. * @return */ @@ -69,7 +69,7 @@ public class BeanComponentDefinitionBuilder { /** * Creates a {@link BeanComponentDefinition} from the given {@link BeanDefinitionBuilder} and inspects the backing * {@link Element}s id attribute for a name. It will use this one if found or the given fallback if not. - * + * * @param builder must not be {@literal null}. * @param fallback must not be {@literal null} or empty. * @return @@ -84,7 +84,7 @@ public class BeanComponentDefinitionBuilder { /** * Creates a {@link BeanComponentDefinition} from the given {@link BeanDefinitionBuilder} using the given name. - * + * * @param builder must not be {@literal null}. * @param name must not be {@literal null} or empty. * @return @@ -96,7 +96,7 @@ public class BeanComponentDefinitionBuilder { /** * Creates a new {@link BeanComponentDefinition} from the given {@link BeanDefinitionBuilder} using the given name and * raw source object. - * + * * @param builder must not be {@literal null}. * @param name must not be {@literal null}. * @param rawSource diff --git a/src/main/java/org/springframework/data/config/ConfigurationUtils.java b/src/main/java/org/springframework/data/config/ConfigurationUtils.java index 5aac1d538..045289dc1 100644 --- a/src/main/java/org/springframework/data/config/ConfigurationUtils.java +++ b/src/main/java/org/springframework/data/config/ConfigurationUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. @@ -23,7 +23,7 @@ import org.springframework.util.Assert; /** * Helper class to centralize common functionality that needs to be used in various places of the configuration * implementation. - * + * * @author Oliver Gierke * @since 2.0 * @soundtrack Richard Spaven - The Self (feat. Jordan Rakei) @@ -32,7 +32,7 @@ public interface ConfigurationUtils { /** * Returns the {@link ResourceLoader} from the given {@link XmlReaderContext}. - * + * * @param context must not be {@literal null}. * @return * @throws IllegalArgumentException if no {@link ResourceLoader} can be obtained from the {@link XmlReaderContext}. @@ -52,7 +52,7 @@ public interface ConfigurationUtils { /** * Returns the {@link ClassLoader} used by the given {@link XmlReaderContext}. - * + * * @param context must not be {@literal null}. * @return * @throws IllegalArgumentException if no {@link ClassLoader} can be obtained from the given {@link XmlReaderContext}. @@ -63,7 +63,7 @@ public interface ConfigurationUtils { /** * Returns the {@link ClassLoader} used by the given {@link ResourceLoader}. - * + * * @param resourceLoader must not be {@literal null}. * @return * @throws IllegalArgumentException if the given {@link ResourceLoader} does not expose a {@link ClassLoader}. @@ -83,7 +83,7 @@ public interface ConfigurationUtils { /** * Returns the bean class name of the given {@link BeanDefinition}. - * + * * @param beanDefinition must not be {@literal null}. * @return * @throws IllegalArgumentException if the given {@link BeanDefinition} does not contain a bean class name. diff --git a/src/main/java/org/springframework/data/config/ParsingUtils.java b/src/main/java/org/springframework/data/config/ParsingUtils.java index 43917dcc0..1c27ed9c2 100644 --- a/src/main/java/org/springframework/data/config/ParsingUtils.java +++ b/src/main/java/org/springframework/data/config/ParsingUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -28,7 +28,7 @@ import org.w3c.dom.Element; /** * Utility methods for {@link BeanDefinitionParser} implementations. - * + * * @author Oliver Gierke * @author Mark Paluch */ @@ -41,7 +41,7 @@ public abstract class ParsingUtils { /** * Configures a property value for the given property name reading the attribute of the given name from the given * {@link Element} if the attribute is configured. - * + * * @param builder must not be {@literal null}. * @param element must not be {@literal null}. * @param attrName must not be {@literal null} or empty. @@ -65,7 +65,7 @@ public abstract class ParsingUtils { /** * Sets the property with the given attribute name on the given {@link BeanDefinitionBuilder} to the value of the * attribute with the given name if the attribute is configured. - * + * * @param builder must not be {@literal null}. * @param element must not be {@literal null}. * @param attribute must not be {@literal null} or empty. @@ -76,7 +76,7 @@ public abstract class ParsingUtils { /** * Configures a bean property reference with the value of the attribute of the given name if it is configured. - * + * * @param builder must not be {@literal null}. * @param element must not be {@literal null}. * @param attribute must not be {@literal null} or empty. @@ -100,7 +100,7 @@ public abstract class ParsingUtils { /** * Returns the {@link BeanDefinition} built by the given {@link BeanDefinitionBuilder} enriched with source * information derived from the given {@link Element}. - * + * * @param builder must not be {@literal null}. * @param context must not be {@literal null}. * @param element must not be {@literal null}. @@ -117,7 +117,7 @@ public abstract class ParsingUtils { /** * Returns the {@link AbstractBeanDefinition} built by the given builder with the given extracted source applied. - * + * * @param builder must not be {@literal null}. * @param source * @return @@ -134,7 +134,7 @@ public abstract class ParsingUtils { /** * Returns a {@link BeanDefinition} for an {@link ObjectFactoryCreatingFactoryBean} pointing to the bean with the * given name. - * + * * @param targetBeanName must not be {@literal null} or empty. * @param source * @return diff --git a/src/main/java/org/springframework/data/config/TypeFilterParser.java b/src/main/java/org/springframework/data/config/TypeFilterParser.java index c1c765a40..55c69d484 100644 --- a/src/main/java/org/springframework/data/config/TypeFilterParser.java +++ b/src/main/java/org/springframework/data/config/TypeFilterParser.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2014 the original author or authors. + * Copyright 2010-2018 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. @@ -39,7 +39,7 @@ import org.w3c.dom.NodeList; /** * Parser to populate the given {@link ClassPathScanningCandidateComponentProvider} with {@link TypeFilter}s parsed from * the given {@link Element}'s children. - * + * * @author Oliver Gierke */ public class TypeFilterParser { @@ -52,7 +52,7 @@ public class TypeFilterParser { /** * Creates a new {@link TypeFilterParser} with the given {@link ReaderContext}. - * + * * @param readerContext must not be {@literal null}. */ public TypeFilterParser(XmlReaderContext readerContext) { @@ -62,7 +62,7 @@ public class TypeFilterParser { /** * Constructor to ease testing as {@link XmlReaderContext#getBeanClassLoader()} is final and thus cannot be mocked * easily. - * + * * @param readerContext must not be {@literal null}. * @param classLoader must not be {@literal null}. */ @@ -78,7 +78,7 @@ public class TypeFilterParser { /** * Returns all {@link TypeFilter} declared in nested elements of the given {@link Element}. Allows to selectively * retrieve including or excluding filters based on the given {@link Type}. - * + * * @param element must not be {@literal null}. * @param type must not be {@literal null}. * @return @@ -109,7 +109,7 @@ public class TypeFilterParser { /** * Creates a {@link TypeFilter} instance from the given {@link Element} and {@link ClassLoader}. - * + * * @param element must not be {@literal null}. * @param classLoader must not be {@literal null}. * @return @@ -132,7 +132,7 @@ public class TypeFilterParser { /** * Enum representing all the filter types available for {@code include} and {@code exclude} elements. This acts as * factory for {@link TypeFilter} instances. - * + * * @author Oliver Gierke * @see #getFilter(String, ClassLoader) */ @@ -182,7 +182,7 @@ public class TypeFilterParser { /** * Returns the {@link TypeFilter} for the given expression and {@link ClassLoader}. - * + * * @param expression * @param classLoader * @return @@ -192,7 +192,7 @@ public class TypeFilterParser { /** * Returns the {@link FilterType} for the given type as {@link String}. - * + * * @param typeString * @return * @throws IllegalArgumentException if no {@link FilterType} could be found for the given argument. @@ -222,7 +222,7 @@ public class TypeFilterParser { /** * Returns the {@link Element} if the given {@link Node} is an {@link Element} and it's name equals the one of the * type. - * + * * @param node * @return */ diff --git a/src/main/java/org/springframework/data/convert/ClassGeneratingEntityInstantiator.java b/src/main/java/org/springframework/data/convert/ClassGeneratingEntityInstantiator.java index 07d7b550a..d083b0bba 100644 --- a/src/main/java/org/springframework/data/convert/ClassGeneratingEntityInstantiator.java +++ b/src/main/java/org/springframework/data/convert/ClassGeneratingEntityInstantiator.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -447,7 +447,7 @@ public class ClassGeneratingEntityInstantiator implements EntityInstantiator { /** * Insert not-{@literal null} assertion for a parameter. - * + * * @param mv the method visitor into which instructions should be inserted * @param parameterName name of the parameter to create the appropriate assertion message. */ diff --git a/src/main/java/org/springframework/data/convert/ConfigurableTypeInformationMapper.java b/src/main/java/org/springframework/data/convert/ConfigurableTypeInformationMapper.java index 860d07dc5..459dd547c 100644 --- a/src/main/java/org/springframework/data/convert/ConfigurableTypeInformationMapper.java +++ b/src/main/java/org/springframework/data/convert/ConfigurableTypeInformationMapper.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/convert/ConverterBuilder.java b/src/main/java/org/springframework/data/convert/ConverterBuilder.java index ee79e8a31..70d60e783 100644 --- a/src/main/java/org/springframework/data/convert/ConverterBuilder.java +++ b/src/main/java/org/springframework/data/convert/ConverterBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. @@ -27,7 +27,7 @@ import org.springframework.util.Assert; * API to easily set up {@link GenericConverter} instances using Java 8 lambdas, mostly in bidirectional fashion for * easy registration as custom type converters of the Spring Data mapping subsystem. The registration starts either with * the definition of a reading or writing converter that can then be completed. - * + * * @author Oliver Gierke * @since 2.0 * @see #reading(Class, Class, Function) @@ -39,7 +39,7 @@ public interface ConverterBuilder { /** * Creates a new {@link ReadingConverterBuilder} to produce a converter to read values of the given source (the store * type) into the given target (the domain type). - * + * * @param source must not be {@literal null}. * @param target must not be {@literal null}. * @param function must not be {@literal null}. @@ -58,7 +58,7 @@ public interface ConverterBuilder { /** * Creates a new {@link WritingConverterBuilder} to produce a converter to write values of the given source (the * domain type) into the given target (the store type). - * + * * @param source must not be {@literal null}. * @param target must not be {@literal null}. * @param function must not be {@literal null}. @@ -76,7 +76,7 @@ public interface ConverterBuilder { /** * Returns all {@link GenericConverter} instances to be registered for the current {@link ConverterBuilder}. - * + * * @return */ Set getConverters(); @@ -91,7 +91,7 @@ public interface ConverterBuilder { /** * Returns the writing converter already created. - * + * * @return */ GenericConverter getWritingConverter(); @@ -107,7 +107,7 @@ public interface ConverterBuilder { /** * Returns the reading converter already created. - * + * * @return */ GenericConverter getReadingConverter(); @@ -123,7 +123,7 @@ public interface ConverterBuilder { /** * Creates a new {@link ConverterAware} by registering the given {@link Function} to add a write converter. - * + * * @param function must not be {@literal null}. * @return */ @@ -140,7 +140,7 @@ public interface ConverterBuilder { /** * Creates a new {@link ConverterAware} by registering the given {@link Function} to add a write converter. - * + * * @param function must not be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/convert/CustomConversions.java b/src/main/java/org/springframework/data/convert/CustomConversions.java index d2edadd4b..c33ed3730 100644 --- a/src/main/java/org/springframework/data/convert/CustomConversions.java +++ b/src/main/java/org/springframework/data/convert/CustomConversions.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/convert/DefaultConverterBuilder.java b/src/main/java/org/springframework/data/convert/DefaultConverterBuilder.java index 88a1e8611..e3fec5b3e 100644 --- a/src/main/java/org/springframework/data/convert/DefaultConverterBuilder.java +++ b/src/main/java/org/springframework/data/convert/DefaultConverterBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. @@ -42,7 +42,7 @@ import org.springframework.lang.Nullable; /** * Builder to easily set up (bi-directional) {@link Converter} instances for Spring Data type mapping using Lambdas. Use * factory methods on {@link ConverterBuilder} to create instances of this class. - * + * * @author Oliver Gierke * @since 2.0 * @see ConverterBuilder#writing(Class, Class, Function) @@ -58,7 +58,7 @@ class DefaultConverterBuilder private final @NonNull Optional> writing; private final @NonNull Optional> reading; - /* + /* * (non-Javadoc) * @see org.springframework.data.convert.WritingConverterBuilder#andReading(java.util.function.Function) */ @@ -67,7 +67,7 @@ class DefaultConverterBuilder return withReading(Optional.of(function)); } - /* + /* * (non-Javadoc) * @see org.springframework.data.convert.ReadingConverterBuilder#andWriting(java.util.function.Function) */ @@ -76,7 +76,7 @@ class DefaultConverterBuilder return withWriting(Optional.of(function)); } - /* + /* * (non-Javadoc) * @see org.springframework.data.convert.ReadingConverterBuilder#getRequiredReadingConverter() */ @@ -86,7 +86,7 @@ class DefaultConverterBuilder .orElseThrow(() -> new IllegalStateException("No reading converter specified!")); } - /* + /* * (non-Javadoc) * @see org.springframework.data.convert.WritingConverterBuilder#getRequiredWritingConverter() */ @@ -127,7 +127,7 @@ class DefaultConverterBuilder private final ConvertiblePair convertiblePair; private final Function function; - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.GenericConverter#convert(java.lang.Object, org.springframework.core.convert.TypeDescriptor, org.springframework.core.convert.TypeDescriptor) */ @@ -138,7 +138,7 @@ class DefaultConverterBuilder return function.apply((S) source); } - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.GenericConverter#getConvertibleTypes() */ diff --git a/src/main/java/org/springframework/data/convert/DefaultTypeMapper.java b/src/main/java/org/springframework/data/convert/DefaultTypeMapper.java index c4c9ef7d3..2a59aea09 100644 --- a/src/main/java/org/springframework/data/convert/DefaultTypeMapper.java +++ b/src/main/java/org/springframework/data/convert/DefaultTypeMapper.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/convert/EntityConverter.java b/src/main/java/org/springframework/data/convert/EntityConverter.java index 8e63458be..98b8d5c2f 100644 --- a/src/main/java/org/springframework/data/convert/EntityConverter.java +++ b/src/main/java/org/springframework/data/convert/EntityConverter.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2012 the original author or authors. + * Copyright 2011-2018 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. @@ -23,7 +23,7 @@ import org.springframework.data.mapping.context.MappingContext; /** * Combined {@link EntityReader} and {@link EntityWriter} and add the ability to access a {@link MappingContext} and * {@link ConversionService}. - * + * * @param the concrete {@link PersistentEntity} implementation the converter is based on. * @param

the concrete {@link PersistentProperty} implementation the converter is based on. * @param the most common type the {@link EntityConverter} can actually convert. @@ -35,14 +35,14 @@ public interface EntityConverter, P extends Per /** * Returns the underlying {@link MappingContext} used by the converter. - * + * * @return never {@literal null} */ MappingContext getMappingContext(); /** * Returns the underlying {@link ConversionService} used by the converter. - * + * * @return never {@literal null}. */ ConversionService getConversionService(); diff --git a/src/main/java/org/springframework/data/convert/EntityInstantiator.java b/src/main/java/org/springframework/data/convert/EntityInstantiator.java index a8a93c256..6e6cdb2b0 100644 --- a/src/main/java/org/springframework/data/convert/EntityInstantiator.java +++ b/src/main/java/org/springframework/data/convert/EntityInstantiator.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2013 the original author or authors. + * Copyright 2012-2018 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. @@ -21,14 +21,14 @@ import org.springframework.data.mapping.model.ParameterValueProvider; /** * SPI to abstract strategies to create instances for {@link PersistentEntity}s. - * + * * @author Oliver Gierke */ public interface EntityInstantiator { /** * Creates a new instance of the given entity using the given source to pull data from. - * + * * @param entity will not be {@literal null}. * @param provider will not be {@literal null}. * @return diff --git a/src/main/java/org/springframework/data/convert/EntityInstantiators.java b/src/main/java/org/springframework/data/convert/EntityInstantiators.java index 1a940238a..30475ec7e 100644 --- a/src/main/java/org/springframework/data/convert/EntityInstantiators.java +++ b/src/main/java/org/springframework/data/convert/EntityInstantiators.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/main/java/org/springframework/data/convert/EntityReader.java b/src/main/java/org/springframework/data/convert/EntityReader.java index b348f667d..d2704b101 100644 --- a/src/main/java/org/springframework/data/convert/EntityReader.java +++ b/src/main/java/org/springframework/data/convert/EntityReader.java @@ -1,11 +1,11 @@ /* - * Copyright (c) 2011 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -17,14 +17,14 @@ package org.springframework.data.convert; /** * Interface to read object from store specific sources. - * + * * @author Oliver Gierke */ public interface EntityReader { /** * Reads the given source into the given type. - * + * * @param type they type to convert the given source to. * @param source the source to create an object of the given type from. * @return diff --git a/src/main/java/org/springframework/data/convert/EntityWriter.java b/src/main/java/org/springframework/data/convert/EntityWriter.java index 99ed6cf55..eb4076f5a 100644 --- a/src/main/java/org/springframework/data/convert/EntityWriter.java +++ b/src/main/java/org/springframework/data/convert/EntityWriter.java @@ -1,11 +1,11 @@ /* - * Copyright (c) 2011 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -17,7 +17,7 @@ package org.springframework.data.convert; /** * Interface to write objects into store specific sinks. - * + * * @param the entity type the converter can handle * @param the store specific sink the converter is able to write to * @author Oliver Gierke diff --git a/src/main/java/org/springframework/data/convert/JodaTimeConverters.java b/src/main/java/org/springframework/data/convert/JodaTimeConverters.java index e9b1e4de6..bd41a7433 100644 --- a/src/main/java/org/springframework/data/convert/JodaTimeConverters.java +++ b/src/main/java/org/springframework/data/convert/JodaTimeConverters.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. diff --git a/src/main/java/org/springframework/data/convert/Jsr310Converters.java b/src/main/java/org/springframework/data/convert/Jsr310Converters.java index 46f30845c..4137e3e5a 100644 --- a/src/main/java/org/springframework/data/convert/Jsr310Converters.java +++ b/src/main/java/org/springframework/data/convert/Jsr310Converters.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -40,7 +40,7 @@ import org.springframework.util.ClassUtils; /** * Helper class to register JSR-310 specific {@link Converter} implementations in case the we're running on Java 8. - * + * * @author Oliver Gierke * @author Barak Schoster * @author Christoph Strobl @@ -52,7 +52,7 @@ public abstract class Jsr310Converters { /** * Returns the converters to be registered. Will only return converters in case we're running on Java 8. - * + * * @return */ public static Collection> getConvertersToRegister() { diff --git a/src/main/java/org/springframework/data/convert/KotlinClassGeneratingEntityInstantiator.java b/src/main/java/org/springframework/data/convert/KotlinClassGeneratingEntityInstantiator.java index 9b35c17e1..0eae6471f 100644 --- a/src/main/java/org/springframework/data/convert/KotlinClassGeneratingEntityInstantiator.java +++ b/src/main/java/org/springframework/data/convert/KotlinClassGeneratingEntityInstantiator.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/main/java/org/springframework/data/convert/MappingContextTypeInformationMapper.java b/src/main/java/org/springframework/data/convert/MappingContextTypeInformationMapper.java index 6f0436def..25ae2f93f 100644 --- a/src/main/java/org/springframework/data/convert/MappingContextTypeInformationMapper.java +++ b/src/main/java/org/springframework/data/convert/MappingContextTypeInformationMapper.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/convert/ReadingConverter.java b/src/main/java/org/springframework/data/convert/ReadingConverter.java index 4d4bb265d..c6064d6be 100644 --- a/src/main/java/org/springframework/data/convert/ReadingConverter.java +++ b/src/main/java/org/springframework/data/convert/ReadingConverter.java @@ -1,5 +1,5 @@ /* - * Copyright 2011 the original author or authors. + * Copyright 2011-2018 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. @@ -27,7 +27,7 @@ import org.springframework.core.convert.converter.Converter; /** * Annotation to clarify intended usage of a {@link Converter} as reading converter in case the conversion types leave * room for disambiguation. - * + * * @author Oliver Gierke */ @Target(TYPE) diff --git a/src/main/java/org/springframework/data/convert/ReflectionEntityInstantiator.java b/src/main/java/org/springframework/data/convert/ReflectionEntityInstantiator.java index 6fc71a6b4..f4dc8ef25 100644 --- a/src/main/java/org/springframework/data/convert/ReflectionEntityInstantiator.java +++ b/src/main/java/org/springframework/data/convert/ReflectionEntityInstantiator.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/main/java/org/springframework/data/convert/SimpleTypeInformationMapper.java b/src/main/java/org/springframework/data/convert/SimpleTypeInformationMapper.java index 0d0bcf065..db633d532 100644 --- a/src/main/java/org/springframework/data/convert/SimpleTypeInformationMapper.java +++ b/src/main/java/org/springframework/data/convert/SimpleTypeInformationMapper.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/convert/ThreeTenBackPortConverters.java b/src/main/java/org/springframework/data/convert/ThreeTenBackPortConverters.java index 8deb684c8..d2ff2cd1a 100644 --- a/src/main/java/org/springframework/data/convert/ThreeTenBackPortConverters.java +++ b/src/main/java/org/springframework/data/convert/ThreeTenBackPortConverters.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -40,7 +40,7 @@ import org.threeten.bp.ZoneId; /** * Helper class to register {@link Converter} implementations for the ThreeTen Backport project in case it's present on * the classpath. - * + * * @author Oliver Gierke * @author Christoph Strobl * @see http://www.threeten.org/threetenbp @@ -53,7 +53,7 @@ public abstract class ThreeTenBackPortConverters { /** * Returns the converters to be registered. Will only return converters in case we're running on Java 8. - * + * * @return */ public static Collection> getConvertersToRegister() { @@ -93,7 +93,7 @@ public abstract class ThreeTenBackPortConverters { INSTANCE; - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.Converter#convert(java.lang.Object) */ diff --git a/src/main/java/org/springframework/data/convert/TypeAliasAccessor.java b/src/main/java/org/springframework/data/convert/TypeAliasAccessor.java index fc0c2ee1b..6caff431a 100644 --- a/src/main/java/org/springframework/data/convert/TypeAliasAccessor.java +++ b/src/main/java/org/springframework/data/convert/TypeAliasAccessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2011 the original author or authors. + * Copyright 2011-2018 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. @@ -19,14 +19,14 @@ import org.springframework.data.mapping.Alias; /** * Interface to abstract implementations of how to access a type alias from a given source or sink. - * + * * @author Oliver Gierke */ public interface TypeAliasAccessor { /** * Reads the type alias to be used from the given source. - * + * * @param source * @return can be {@literal null} in case no alias was found. */ @@ -34,7 +34,7 @@ public interface TypeAliasAccessor { /** * Writes the given type alias to the given sink. - * + * * @param sink * @param alias */ diff --git a/src/main/java/org/springframework/data/convert/TypeInformationMapper.java b/src/main/java/org/springframework/data/convert/TypeInformationMapper.java index 28a86fbea..b221e8cb8 100644 --- a/src/main/java/org/springframework/data/convert/TypeInformationMapper.java +++ b/src/main/java/org/springframework/data/convert/TypeInformationMapper.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/convert/TypeMapper.java b/src/main/java/org/springframework/data/convert/TypeMapper.java index 6a53327bd..952e9212a 100644 --- a/src/main/java/org/springframework/data/convert/TypeMapper.java +++ b/src/main/java/org/springframework/data/convert/TypeMapper.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/convert/WritingConverter.java b/src/main/java/org/springframework/data/convert/WritingConverter.java index 0364e517c..d0af10f16 100644 --- a/src/main/java/org/springframework/data/convert/WritingConverter.java +++ b/src/main/java/org/springframework/data/convert/WritingConverter.java @@ -1,5 +1,5 @@ /* - * Copyright 2011 the original author or authors. + * Copyright 2011-2018 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. @@ -27,7 +27,7 @@ import org.springframework.core.convert.converter.Converter; /** * Annotation to clarify intended usage of a {@link Converter} as writing converter in case the conversion types leave * room for disambiguation. - * + * * @author Oliver Gierke */ @Target(TYPE) diff --git a/src/main/java/org/springframework/data/crossstore/ChangeSet.java b/src/main/java/org/springframework/data/crossstore/ChangeSet.java index 1e55459fa..be70c3ac0 100644 --- a/src/main/java/org/springframework/data/crossstore/ChangeSet.java +++ b/src/main/java/org/springframework/data/crossstore/ChangeSet.java @@ -1,5 +1,5 @@ /* - * Copyright 2011 the original author or authors. + * Copyright 2011-2018 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. @@ -23,7 +23,7 @@ import org.springframework.core.convert.ConversionService; /** * Interface representing the set of changes in an entity. - * + * * @author Rod Johnson * @author Thomas Risberg */ diff --git a/src/main/java/org/springframework/data/crossstore/ChangeSetBacked.java b/src/main/java/org/springframework/data/crossstore/ChangeSetBacked.java index f0e0651aa..71fc0a191 100644 --- a/src/main/java/org/springframework/data/crossstore/ChangeSetBacked.java +++ b/src/main/java/org/springframework/data/crossstore/ChangeSetBacked.java @@ -1,5 +1,5 @@ /* - * Copyright 2011 the original author or authors. + * Copyright 2011-2018 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. @@ -17,7 +17,7 @@ package org.springframework.data.crossstore; /** * Interface introduced to objects exposing ChangeSet information - * + * * @author Rod Johnson * @author Thomas Risberg */ diff --git a/src/main/java/org/springframework/data/crossstore/ChangeSetBackedTransactionSynchronization.java b/src/main/java/org/springframework/data/crossstore/ChangeSetBackedTransactionSynchronization.java index 320794ce1..0dac08376 100644 --- a/src/main/java/org/springframework/data/crossstore/ChangeSetBackedTransactionSynchronization.java +++ b/src/main/java/org/springframework/data/crossstore/ChangeSetBackedTransactionSynchronization.java @@ -1,5 +1,5 @@ /* - * Copyright 2011 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/crossstore/ChangeSetPersister.java b/src/main/java/org/springframework/data/crossstore/ChangeSetPersister.java index bdf15810f..83e4e8f6c 100644 --- a/src/main/java/org/springframework/data/crossstore/ChangeSetPersister.java +++ b/src/main/java/org/springframework/data/crossstore/ChangeSetPersister.java @@ -1,5 +1,5 @@ /* - * Copyright 2011 the original author or authors. + * Copyright 2011-2018 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. @@ -19,7 +19,7 @@ import org.springframework.dao.DataAccessException; /** * Interface to be implemented by classes that can synchronize between data stores and ChangeSets. - * + * * @param entity key * @author Rod Johnson */ @@ -36,7 +36,7 @@ public interface ChangeSetPersister { /** * Return id - * + * * @param entity * @param cs * @return @@ -46,7 +46,7 @@ public interface ChangeSetPersister { /** * Return key - * + * * @param entity * @param cs Key may be null if not persistent * @return diff --git a/src/main/java/org/springframework/data/domain/AbstractAggregateRoot.java b/src/main/java/org/springframework/data/domain/AbstractAggregateRoot.java index 9f4606715..208dc218d 100644 --- a/src/main/java/org/springframework/data/domain/AbstractAggregateRoot.java +++ b/src/main/java/org/springframework/data/domain/AbstractAggregateRoot.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -28,7 +28,7 @@ import org.springframework.util.Assert; * expose them via {@link #domainEvents())}. The implementation is using the general event publication mechanism implied * by {@link DomainEvents} and {@link AfterDomainEventPublication}. If in doubt or need to customize anything here, * rather build your own base class and use the annotations directly. - * + * * @author Oliver Gierke * @author Christoph Strobl * @since 1.13 @@ -39,7 +39,7 @@ public class AbstractAggregateRoot> { /** * Registers the given event object for publication on a call to a Spring Data repository's save methods. - * + * * @param event must not be {@literal null}. * @return the event that has been added. * @see #andEvent(Object) @@ -71,7 +71,7 @@ public class AbstractAggregateRoot> { /** * Adds all events contained in the given aggregate to the current one. - * + * * @param aggregate must not be {@literal null}. * @return the aggregate */ @@ -88,7 +88,7 @@ public class AbstractAggregateRoot> { /** * Adds the given event to the aggregate for later publication when calling a Spring Data repository's save-method. * Does the same as {@link #registerEvent(Object)} but returns the aggregate instead of the event. - * + * * @param event must not be {@literal null}. * @return the aggregate * @see #registerEvent(Object) diff --git a/src/main/java/org/springframework/data/domain/AbstractPageRequest.java b/src/main/java/org/springframework/data/domain/AbstractPageRequest.java index fdd37b0fb..d5852e38e 100644 --- a/src/main/java/org/springframework/data/domain/AbstractPageRequest.java +++ b/src/main/java/org/springframework/data/domain/AbstractPageRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 the original author or authors. + * Copyright 2013-2018 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. @@ -21,7 +21,7 @@ import org.springframework.lang.Nullable; /** * Abstract Java Bean implementation of {@code Pageable}. - * + * * @author Thomas Darimont * @author Oliver Gierke */ @@ -35,7 +35,7 @@ public abstract class AbstractPageRequest implements Pageable, Serializable { /** * Creates a new {@link AbstractPageRequest}. Pages are zero indexed, thus providing 0 for {@code page} will return * the first page. - * + * * @param page must not be less than zero. * @param size must not be less than one. */ @@ -53,7 +53,7 @@ public abstract class AbstractPageRequest implements Pageable, Serializable { this.size = size; } - /* + /* * (non-Javadoc) * @see org.springframework.data.domain.Pageable#getPageSize() */ @@ -61,7 +61,7 @@ public abstract class AbstractPageRequest implements Pageable, Serializable { return size; } - /* + /* * (non-Javadoc) * @see org.springframework.data.domain.Pageable#getPageNumber() */ @@ -69,7 +69,7 @@ public abstract class AbstractPageRequest implements Pageable, Serializable { return page; } - /* + /* * (non-Javadoc) * @see org.springframework.data.domain.Pageable#getOffset() */ @@ -77,7 +77,7 @@ public abstract class AbstractPageRequest implements Pageable, Serializable { return page * size; } - /* + /* * (non-Javadoc) * @see org.springframework.data.domain.Pageable#hasPrevious() */ @@ -85,7 +85,7 @@ public abstract class AbstractPageRequest implements Pageable, Serializable { return page > 0; } - /* + /* * (non-Javadoc) * @see org.springframework.data.domain.Pageable#previousOrFirst() */ @@ -93,7 +93,7 @@ public abstract class AbstractPageRequest implements Pageable, Serializable { return hasPrevious() ? previous() : first(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.domain.Pageable#next() */ @@ -101,18 +101,18 @@ public abstract class AbstractPageRequest implements Pageable, Serializable { /** * Returns the {@link Pageable} requesting the previous {@link Page}. - * + * * @return */ public abstract Pageable previous(); - /* + /* * (non-Javadoc) * @see org.springframework.data.domain.Pageable#first() */ public abstract Pageable first(); - /* + /* * (non-Javadoc) * @see java.lang.Object#hashCode() */ @@ -128,7 +128,7 @@ public abstract class AbstractPageRequest implements Pageable, Serializable { return result; } - /* + /* * (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ diff --git a/src/main/java/org/springframework/data/domain/AfterDomainEventPublication.java b/src/main/java/org/springframework/data/domain/AfterDomainEventPublication.java index 48d3d4733..bc4fb3230 100644 --- a/src/main/java/org/springframework/data/domain/AfterDomainEventPublication.java +++ b/src/main/java/org/springframework/data/domain/AfterDomainEventPublication.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 the original author or authors. + * Copyright 2016-2018 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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * Annotation to be used on a method of a Spring Data managed aggregate to get invoked after the events of an aggregate * have been published. - * + * * @author Oliver Gierke * @see DomainEvents * @since 1.13 diff --git a/src/main/java/org/springframework/data/domain/Auditable.java b/src/main/java/org/springframework/data/domain/Auditable.java index 36985ca1f..fa795b232 100644 --- a/src/main/java/org/springframework/data/domain/Auditable.java +++ b/src/main/java/org/springframework/data/domain/Auditable.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2010 the original author or authors. + * Copyright 2008-2018 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. @@ -21,7 +21,7 @@ import java.util.Optional; /** * Interface for auditable entities. Allows storing and retrieving creation and modification information. The changing * instance (typically some user) is to be defined by a generics definition. - * + * * @param the auditing type. Typically some kind of user. * @param the type of the audited type's identifier * @author Oliver Gierke @@ -30,56 +30,56 @@ public interface Auditable extends Persistabl /** * Returns the user who created this entity. - * + * * @return the createdBy */ Optional getCreatedBy(); /** * Sets the user who created this entity. - * + * * @param createdBy the creating entity to set */ void setCreatedBy(U createdBy); /** * Returns the creation date of the entity. - * + * * @return the createdDate */ Optional getCreatedDate(); /** * Sets the creation date of the entity. - * + * * @param creationDate the creation date to set */ void setCreatedDate(T creationDate); /** * Returns the user who modified the entity lastly. - * + * * @return the lastModifiedBy */ Optional getLastModifiedBy(); /** * Sets the user who modified the entity lastly. - * + * * @param lastModifiedBy the last modifying entity to set */ void setLastModifiedBy(U lastModifiedBy); /** * Returns the date of the last modification. - * + * * @return the lastModifiedDate */ Optional getLastModifiedDate(); /** * Sets the date of the last modification. - * + * * @param lastModifiedDate the date of the last modification to set */ void setLastModifiedDate(T lastModifiedDate); diff --git a/src/main/java/org/springframework/data/domain/AuditorAware.java b/src/main/java/org/springframework/data/domain/AuditorAware.java index d6966a2fe..3ab850714 100644 --- a/src/main/java/org/springframework/data/domain/AuditorAware.java +++ b/src/main/java/org/springframework/data/domain/AuditorAware.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2010 the original author or authors. + * Copyright 2008-2018 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. @@ -19,7 +19,7 @@ import java.util.Optional; /** * Interface for components that are aware of the application's current auditor. This will be some kind of user mostly. - * + * * @param the type of the auditing instance * @author Oliver Gierke */ @@ -27,7 +27,7 @@ public interface AuditorAware { /** * Returns the current auditor of the application. - * + * * @return the current auditor */ Optional getCurrentAuditor(); diff --git a/src/main/java/org/springframework/data/domain/Chunk.java b/src/main/java/org/springframework/data/domain/Chunk.java index 42d9ce5a4..31bb40583 100644 --- a/src/main/java/org/springframework/data/domain/Chunk.java +++ b/src/main/java/org/springframework/data/domain/Chunk.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -30,7 +30,7 @@ import org.springframework.util.Assert; /** * A chunk of data restricted by the configured {@link Pageable}. - * + * * @author Oliver Gierke * @author Christoph Strobl * @since 1.8 @@ -44,7 +44,7 @@ abstract class Chunk implements Slice, Serializable { /** * Creates a new {@link Chunk} with the given content and the given governing {@link Pageable}. - * + * * @param content must not be {@literal null}. * @param pageable must not be {@literal null}. */ @@ -105,7 +105,7 @@ abstract class Chunk implements Slice, Serializable { return !hasNext(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.domain.Slice#nextPageable() */ @@ -156,7 +156,7 @@ abstract class Chunk implements Slice, Serializable { /** * Applies the given {@link Function} to the content of the {@link Chunk}. - * + * * @param converter must not be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/domain/DomainEvents.java b/src/main/java/org/springframework/data/domain/DomainEvents.java index 053917fef..a5ff34abc 100644 --- a/src/main/java/org/springframework/data/domain/DomainEvents.java +++ b/src/main/java/org/springframework/data/domain/DomainEvents.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 the original author or authors. + * Copyright 2016-2018 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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * {@link DomainEvents} can be used on methods of aggregate roots managed by Spring Data repositories to publish the * events returned by that method as Spring application events. - * + * * @author Oliver Gierke * @see org.springframework.context.ApplicationEventPublisher * @see AfterDomainEventPublication diff --git a/src/main/java/org/springframework/data/domain/Example.java b/src/main/java/org/springframework/data/domain/Example.java index 6256ceb61..5c19c13df 100644 --- a/src/main/java/org/springframework/data/domain/Example.java +++ b/src/main/java/org/springframework/data/domain/Example.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/main/java/org/springframework/data/domain/ExampleMatcher.java b/src/main/java/org/springframework/data/domain/ExampleMatcher.java index 602c9bf83..ada710b8d 100644 --- a/src/main/java/org/springframework/data/domain/ExampleMatcher.java +++ b/src/main/java/org/springframework/data/domain/ExampleMatcher.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/main/java/org/springframework/data/domain/Page.java b/src/main/java/org/springframework/data/domain/Page.java index cb5faa707..a819f2347 100644 --- a/src/main/java/org/springframework/data/domain/Page.java +++ b/src/main/java/org/springframework/data/domain/Page.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. @@ -21,7 +21,7 @@ import java.util.function.Function; /** * A page is a sublist of a list of objects. It allows gain information about the position of it in the containing * entire list. - * + * * @param * @author Oliver Gierke */ @@ -29,7 +29,7 @@ public interface Page extends Slice { /** * Creates a new empty {@link Page}. - * + * * @return * @since 2.0 */ @@ -39,7 +39,7 @@ public interface Page extends Slice { /** * Creates a new empty {@link Page} for the given {@link Pageable}. - * + * * @param pageable must not be {@literal null}. * @return * @since 2.0 @@ -50,21 +50,21 @@ public interface Page extends Slice { /** * Returns the number of total pages. - * + * * @return the number of total pages */ int getTotalPages(); /** * Returns the total amount of elements. - * + * * @return the total amount of elements */ long getTotalElements(); /** * Returns a new {@link Page} with the content of the current one mapped by the given {@link Function}. - * + * * @param converter must not be {@literal null}. * @return a new {@link Page} with the content of the current one mapped by the given {@link Function}. * @since 1.10 diff --git a/src/main/java/org/springframework/data/domain/PageImpl.java b/src/main/java/org/springframework/data/domain/PageImpl.java index b57b21ce1..a56d55961 100644 --- a/src/main/java/org/springframework/data/domain/PageImpl.java +++ b/src/main/java/org/springframework/data/domain/PageImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. @@ -22,7 +22,7 @@ import org.springframework.lang.Nullable; /** * Basic {@code Page} implementation. - * + * * @param the type of which the page consists. * @author Oliver Gierke */ @@ -35,7 +35,7 @@ public class PageImpl extends Chunk implements Page { /** * Constructor of {@code PageImpl}. - * + * * @param content the content of this page, must not be {@literal null}. * @param pageable the paging information, can be {@literal null}. * @param total the total amount of items available. The total might be adapted considering the length of the content @@ -55,7 +55,7 @@ public class PageImpl extends Chunk implements Page { /** * Creates a new {@link PageImpl} with the given content. This will result in the created {@link Page} being identical * to the entire {@link List}. - * + * * @param content must not be {@literal null}. */ public PageImpl(List content) { @@ -80,7 +80,7 @@ public class PageImpl extends Chunk implements Page { return total; } - /* + /* * (non-Javadoc) * @see org.springframework.data.domain.Slice#hasNext() */ @@ -89,7 +89,7 @@ public class PageImpl extends Chunk implements Page { return getNumber() + 1 < getTotalPages(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.domain.Slice#isLast() */ @@ -98,7 +98,7 @@ public class PageImpl extends Chunk implements Page { return !hasNext(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.domain.Slice#transform(org.springframework.core.convert.converter.Converter) */ diff --git a/src/main/java/org/springframework/data/domain/PageRequest.java b/src/main/java/org/springframework/data/domain/PageRequest.java index f3ce4775b..45cafd76e 100644 --- a/src/main/java/org/springframework/data/domain/PageRequest.java +++ b/src/main/java/org/springframework/data/domain/PageRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. diff --git a/src/main/java/org/springframework/data/domain/Pageable.java b/src/main/java/org/springframework/data/domain/Pageable.java index 978434533..ab2821e06 100644 --- a/src/main/java/org/springframework/data/domain/Pageable.java +++ b/src/main/java/org/springframework/data/domain/Pageable.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. @@ -21,14 +21,14 @@ import org.springframework.util.Assert; /** * Abstract interface for pagination information. - * + * * @author Oliver Gierke */ public interface Pageable { /** * Returns a {@link Pageable} instance representing no pagination setup. - * + * * @return */ static Pageable unpaged() { @@ -37,7 +37,7 @@ public interface Pageable { /** * Returns whether the current {@link Pageable} contains pagination information. - * + * * @return */ default boolean isPaged() { @@ -46,7 +46,7 @@ public interface Pageable { /** * Returns whether the current {@link Pageable} does not contain pagination information. - * + * * @return */ default boolean isUnpaged() { @@ -55,35 +55,35 @@ public interface Pageable { /** * Returns the page to be returned. - * + * * @return the page to be returned. */ int getPageNumber(); /** * Returns the number of items to be returned. - * + * * @return the number of items of that page */ int getPageSize(); /** * Returns the offset to be taken according to the underlying page and page size. - * + * * @return the offset to be taken */ long getOffset(); /** * Returns the sorting parameters. - * + * * @return */ Sort getSort(); /** * Returns the current {@link Sort} or the given one if the current one is unsorted. - * + * * @param sort must not be {@literal null}. * @return */ @@ -96,21 +96,21 @@ public interface Pageable { /** * Returns the {@link Pageable} requesting the next {@link Page}. - * + * * @return */ Pageable next(); /** * Returns the previous {@link Pageable} or the first {@link Pageable} if the current one already is the first one. - * + * * @return */ Pageable previousOrFirst(); /** * Returns the {@link Pageable} requesting the first page. - * + * * @return */ Pageable first(); @@ -118,14 +118,14 @@ public interface Pageable { /** * Returns whether there's a previous {@link Pageable} we can access from the current one. Will return * {@literal false} in case the current {@link Pageable} already refers to the first page. - * + * * @return */ boolean hasPrevious(); /** * Returns an {@link Optional} so that it can easily be mapped on. - * + * * @return */ default Optional toOptional() { diff --git a/src/main/java/org/springframework/data/domain/Persistable.java b/src/main/java/org/springframework/data/domain/Persistable.java index c39dd91e6..7b7fc76c2 100644 --- a/src/main/java/org/springframework/data/domain/Persistable.java +++ b/src/main/java/org/springframework/data/domain/Persistable.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. @@ -19,7 +19,7 @@ import org.springframework.lang.Nullable; /** * Simple interface for entities. - * + * * @param the type of the identifier * @author Oliver Gierke * @author Christoph Strobl @@ -28,7 +28,7 @@ public interface Persistable { /** * Returns the id of the entity. - * + * * @return the id. Can be {@literal null}. */ @Nullable @@ -36,7 +36,7 @@ public interface Persistable { /** * Returns if the {@code Persistable} is new or was persisted already. - * + * * @return if {@literal true} the object is new. */ boolean isNew(); diff --git a/src/main/java/org/springframework/data/domain/Range.java b/src/main/java/org/springframework/data/domain/Range.java index 40081ea0d..fd0716e4f 100644 --- a/src/main/java/org/springframework/data/domain/Range.java +++ b/src/main/java/org/springframework/data/domain/Range.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -26,7 +26,7 @@ import org.springframework.util.Assert; /** * Simple value object to work with ranges and boundaries. - * + * * @author Oliver Gierke * @author Mark Paluch * @since 1.10 @@ -50,7 +50,7 @@ public class Range> { /** * Creates a new {@link Range} with the given lower and upper bound. Treats the given values as inclusive bounds. Use * {@link #Range(Comparable, Comparable, boolean, boolean)} to configure different bound behavior. - * + * * @see Range#of(Bound, Bound) * @param lowerBound can be {@literal null} in case upperBound is not {@literal null}. * @param upperBound can be {@literal null} in case lowerBound is not {@literal null}. @@ -64,7 +64,7 @@ public class Range> { /** * Creates a new {@link Range} with the given lower and upper bound as well as the given inclusive/exclusive * semantics. - * + * * @param lowerBound can be {@literal null}. * @param upperBound can be {@literal null}. * @param lowerInclusive @@ -84,7 +84,7 @@ public class Range> { /** * Returns an unbounded {@link Range}. - * + * * @return * @since 2.0 */ @@ -95,7 +95,7 @@ public class Range> { /** * Create a {@link RangeBuilder} given the lower {@link Bound}. - * + * * @param lower must not be {@literal null}. * @return * @since 2.0 @@ -108,7 +108,7 @@ public class Range> { /** * Creates a new {@link Range} with the given lower and upper bound. - * + * * @param lowerBound must not be {@literal null}. * @param upperBound must not be {@literal null}. * @since 2.0 @@ -137,7 +137,7 @@ public class Range> { /** * Returns whether the {@link Range} contains the given value. - * + * * @param value must not be {@literal null}. * @return */ @@ -156,7 +156,7 @@ public class Range> { return greaterThanLowerBound && lessThanUpperBound; } - /* + /* * (non-Javadoc) * @see java.lang.Object#toString() */ @@ -168,7 +168,7 @@ public class Range> { /** * Value object representing a boundary. A boundary can either be {@link #unbounded() unbounded}, * {@link #inclusive(Comparable) including its value} or {@link #exclusive(Comparable) its value}. - * + * * @author Mark Paluch * @since 2.0 * @soundtrack Mohamed Ragab - Excelsior Sessions (March 2017) @@ -193,7 +193,7 @@ public class Range> { /** * Returns whether this boundary is bounded. - * + * * @return */ public boolean isBounded() { @@ -202,7 +202,7 @@ public class Range> { /** * Creates a boundary including {@code value}. - * + * * @param value must not be {@literal null}. * @return */ @@ -214,7 +214,7 @@ public class Range> { /** * Creates a boundary including {@code value}. - * + * * @param value must not be {@literal null}. * @return */ @@ -224,7 +224,7 @@ public class Range> { /** * Creates a boundary including {@code value}. - * + * * @param value must not be {@literal null}. * @return */ @@ -234,7 +234,7 @@ public class Range> { /** * Creates a boundary including {@code value}. - * + * * @param value must not be {@literal null}. * @return */ @@ -244,7 +244,7 @@ public class Range> { /** * Creates a boundary including {@code value}. - * + * * @param value must not be {@literal null}. * @return */ @@ -254,7 +254,7 @@ public class Range> { /** * Creates a boundary excluding {@code value}. - * + * * @param value must not be {@literal null}. * @return */ @@ -266,7 +266,7 @@ public class Range> { /** * Creates a boundary excluding {@code value}. - * + * * @param value must not be {@literal null}. * @return */ @@ -276,7 +276,7 @@ public class Range> { /** * Creates a boundary excluding {@code value}. - * + * * @param value must not be {@literal null}. * @return */ @@ -286,7 +286,7 @@ public class Range> { /** * Creates a boundary excluding {@code value}. - * + * * @param value must not be {@literal null}. * @return */ @@ -296,7 +296,7 @@ public class Range> { /** * Creates a boundary excluding {@code value}. - * + * * @param value must not be {@literal null}. * @return */ @@ -320,7 +320,7 @@ public class Range> { .orElse("unbounded"); } - /* + /* * (non-Javadoc) * @see java.lang.Object#toString() */ @@ -348,7 +348,7 @@ public class Range> { /** * Create a {@link Range} given the upper {@link Bound}. - * + * * @param upper must not be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/domain/Slice.java b/src/main/java/org/springframework/data/domain/Slice.java index e642a535d..e8ba897eb 100644 --- a/src/main/java/org/springframework/data/domain/Slice.java +++ b/src/main/java/org/springframework/data/domain/Slice.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2015 the original author or authors. + * Copyright 2014-2018 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. @@ -24,7 +24,7 @@ import org.springframework.data.util.Streamable; /** * A slice of data that indicates whether there's a next or previous slice available. Allows to obtain a * {@link Pageable} to request a previous or next {@link Slice}. - * + * * @author Oliver Gierke * @since 1.8 */ @@ -32,77 +32,77 @@ public interface Slice extends Streamable { /** * Returns the number of the current {@link Slice}. Is always non-negative. - * + * * @return the number of the current {@link Slice}. */ int getNumber(); /** * Returns the size of the {@link Slice}. - * + * * @return the size of the {@link Slice}. */ int getSize(); /** * Returns the number of elements currently on this {@link Slice}. - * + * * @return the number of elements currently on this {@link Slice}. */ int getNumberOfElements(); /** * Returns the page content as {@link List}. - * + * * @return */ List getContent(); /** * Returns whether the {@link Slice} has content at all. - * + * * @return */ boolean hasContent(); /** * Returns the sorting parameters for the {@link Slice}. - * + * * @return */ Sort getSort(); /** * Returns whether the current {@link Slice} is the first one. - * + * * @return */ boolean isFirst(); /** * Returns whether the current {@link Slice} is the last one. - * + * * @return */ boolean isLast(); /** * Returns if there is a next {@link Slice}. - * + * * @return if there is a next {@link Slice}. */ boolean hasNext(); /** * Returns if there is a previous {@link Slice}. - * + * * @return if there is a previous {@link Slice}. */ boolean hasPrevious(); /** * Returns the {@link Pageable} that's been used to request the current {@link Slice}. - * + * * @return * @since 2.0 */ @@ -114,7 +114,7 @@ public interface Slice extends Streamable { * Returns the {@link Pageable} to request the next {@link Slice}. Can be {@literal null} in case the current * {@link Slice} is already the last one. Clients should check {@link #hasNext()} before calling this method to make * sure they receive a non-{@literal null} value. - * + * * @return */ Pageable nextPageable(); @@ -123,14 +123,14 @@ public interface Slice extends Streamable { * Returns the {@link Pageable} to request the previous {@link Slice}. Can be {@literal null} in case the current * {@link Slice} is already the first one. Clients should check {@link #hasPrevious()} before calling this method make * sure receive a non-{@literal null} value. - * + * * @return */ Pageable previousPageable(); /** * Returns a new {@link Slice} with the content of the current one mapped by the given {@link Converter}. - * + * * @param converter must not be {@literal null}. * @return a new {@link Slice} with the content of the current one mapped by the given {@link Converter}. * @since 1.10 diff --git a/src/main/java/org/springframework/data/domain/SliceImpl.java b/src/main/java/org/springframework/data/domain/SliceImpl.java index ad67d3191..4652284fe 100644 --- a/src/main/java/org/springframework/data/domain/SliceImpl.java +++ b/src/main/java/org/springframework/data/domain/SliceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 the original author or authors. + * Copyright 2014-2018 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. @@ -22,7 +22,7 @@ import org.springframework.lang.Nullable; /** * Default implementation of {@link Slice}. - * + * * @author Oliver Gierke * @since 1.8 */ @@ -35,7 +35,7 @@ public class SliceImpl extends Chunk { /** * Creates a new {@link Slice} with the given content and {@link Pageable}. - * + * * @param content the content of this {@link Slice}, must not be {@literal null}. * @param pageable the paging information, can be {@literal null}. * @param hasNext whether there's another slice following the current one. @@ -51,7 +51,7 @@ public class SliceImpl extends Chunk { /** * Creates a new {@link SliceImpl} with the given content. This will result in the created {@link Slice} being * identical to the entire {@link List}. - * + * * @param content must not be {@literal null}. */ public SliceImpl(List content) { @@ -66,7 +66,7 @@ public class SliceImpl extends Chunk { return hasNext; } - /* + /* * (non-Javadoc) * @see org.springframework.data.domain.Slice#transform(org.springframework.core.convert.converter.Converter) */ diff --git a/src/main/java/org/springframework/data/domain/Sort.java b/src/main/java/org/springframework/data/domain/Sort.java index 2daa6a699..a224d46fc 100644 --- a/src/main/java/org/springframework/data/domain/Sort.java +++ b/src/main/java/org/springframework/data/domain/Sort.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. @@ -33,7 +33,7 @@ import org.springframework.util.StringUtils; /** * Sort option for queries. You have to provide at least a list of properties to sort for that must not include * {@literal null} or empty strings. The direction defaults to {@link Sort#DEFAULT_DIRECTION}. - * + * * @author Oliver Gierke * @author Thomas Darimont * @author Mark Paluch @@ -50,7 +50,7 @@ public class Sort implements Streamable { public static final OrderAdapter INSTANCE = new OrderAdapter(); - /* + /* * (non-Javadoc) * @see javax.xml.bind.annotation.adapters.XmlAdapter#marshal(java.lang.Object) */ @@ -49,7 +49,7 @@ public class OrderAdapter extends XmlAdapter { return dto; } - /* + /* * (non-Javadoc) * @see javax.xml.bind.annotation.adapters.XmlAdapter#unmarshal(java.lang.Object) */ diff --git a/src/main/java/org/springframework/data/domain/jaxb/PageAdapter.java b/src/main/java/org/springframework/data/domain/jaxb/PageAdapter.java index b0ad9a895..988878033 100644 --- a/src/main/java/org/springframework/data/domain/jaxb/PageAdapter.java +++ b/src/main/java/org/springframework/data/domain/jaxb/PageAdapter.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. @@ -27,7 +27,7 @@ import org.springframework.lang.Nullable; /** * {@link XmlAdapter} to convert {@link Page} instances into {@link PageDto} instances and vice versa. - * + * * @author Oliver Gierke */ public class PageAdapter extends XmlAdapter> { @@ -51,7 +51,7 @@ public class PageAdapter extends XmlAdapter> { return dto; } - /* + /* * (non-Javadoc) * @see javax.xml.bind.annotation.adapters.XmlAdapter#unmarshal(java.lang.Object) */ @@ -63,7 +63,7 @@ public class PageAdapter extends XmlAdapter> { /** * Return additional links that shall be added to the {@link PageDto}. - * + * * @param source the source {@link Page}. * @return */ diff --git a/src/main/java/org/springframework/data/domain/jaxb/PageableAdapter.java b/src/main/java/org/springframework/data/domain/jaxb/PageableAdapter.java index fb590fc32..d6687c518 100644 --- a/src/main/java/org/springframework/data/domain/jaxb/PageableAdapter.java +++ b/src/main/java/org/springframework/data/domain/jaxb/PageableAdapter.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -28,7 +28,7 @@ import org.springframework.lang.Nullable; /** * {@link XmlAdapter} to convert {@link Pageable} instances int a {@link PageRequestDto} and vice versa. - * + * * @author Oliver Gierke * @author Christoph Strobl */ diff --git a/src/main/java/org/springframework/data/domain/jaxb/SortAdapter.java b/src/main/java/org/springframework/data/domain/jaxb/SortAdapter.java index f4ae390f2..9d3a3903c 100644 --- a/src/main/java/org/springframework/data/domain/jaxb/SortAdapter.java +++ b/src/main/java/org/springframework/data/domain/jaxb/SortAdapter.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2016 the original author or authors. + * Copyright 2012-2018 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. @@ -24,7 +24,7 @@ import org.springframework.lang.Nullable; /** * {@link XmlAdapter} to convert {@link Sort} instances into {@link SortDto} instances and vice versa. - * + * * @author Oliver Gierke */ public class SortAdapter extends XmlAdapter { diff --git a/src/main/java/org/springframework/data/domain/jaxb/SpringDataJaxb.java b/src/main/java/org/springframework/data/domain/jaxb/SpringDataJaxb.java index fc0f7bdf4..5e06076b2 100644 --- a/src/main/java/org/springframework/data/domain/jaxb/SpringDataJaxb.java +++ b/src/main/java/org/springframework/data/domain/jaxb/SpringDataJaxb.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. @@ -42,7 +42,7 @@ import org.springframework.util.Assert; /** * Helper class containing utility methods to implement JAXB {@link XmlAdapter}s as well as the DTO types to be * marshalled by JAXB. - * + * * @author Oliver Gierke */ public abstract class SpringDataJaxb { @@ -53,7 +53,7 @@ public abstract class SpringDataJaxb { /** * The DTO for {@link Pageable}s/{@link PageRequest}s. - * + * * @author Oliver Gierke */ @XmlRootElement(name = "page-request", namespace = NAMESPACE) @@ -66,7 +66,7 @@ public abstract class SpringDataJaxb { /** * The DTO for {@link Sort}. - * + * * @author Oliver Gierke */ @XmlRootElement(name = "sort", namespace = NAMESPACE) @@ -78,7 +78,7 @@ public abstract class SpringDataJaxb { /** * The DTO for {@link Order}. - * + * * @author Oliver Gierke */ @XmlRootElement(name = "order", namespace = NAMESPACE) @@ -91,7 +91,7 @@ public abstract class SpringDataJaxb { /** * The DTO for {@link Page}. - * + * * @author Oliver Gierke */ @XmlRootElement(name = "page", namespace = NAMESPACE) @@ -103,7 +103,7 @@ public abstract class SpringDataJaxb { /** * Unmarshals each element of the given {@link Collection} using the given {@link XmlAdapter}. - * + * * @param source * @param adapter must not be {@literal null}. * @return @@ -131,7 +131,7 @@ public abstract class SpringDataJaxb { /** * Marshals each of the elements of the given {@link Iterable} using the given {@link XmlAdapter}. - * + * * @param source * @param adapter must not be {@literal null}. * @return diff --git a/src/main/java/org/springframework/data/geo/Box.java b/src/main/java/org/springframework/data/geo/Box.java index 7794d73a7..b9a3a5028 100644 --- a/src/main/java/org/springframework/data/geo/Box.java +++ b/src/main/java/org/springframework/data/geo/Box.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2014 the original author or authors. + * Copyright 2010-2018 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. @@ -20,7 +20,7 @@ import org.springframework.util.Assert; /** * Represents a geospatial box value - * + * * @author Mark Pollack * @author Oliver Gierke * @author Thomas Darimont @@ -35,7 +35,7 @@ public class Box implements Shape { /** * Creates a new Box spanning from the given first to the second {@link Point}. - * + * * @param first must not be {@literal null}. * @param second must not be {@literal null}. */ @@ -50,7 +50,7 @@ public class Box implements Shape { /** * Creates a new Box from the given {@code first} to the {@code second} point represented as the {@literal double[]}. - * + * * @param first must not be {@literal null} and contain exactly 2 doubles. * @param second must not be {@literal null} and contain exactly 2 doubles. */ @@ -65,7 +65,7 @@ public class Box implements Shape { /** * Returns the first {@link Point} making up the {@link Box}. - * + * * @return */ public Point getFirst() { @@ -74,7 +74,7 @@ public class Box implements Shape { /** * Returns the second {@link Point} making up the {@link Box}. - * + * * @return */ public Point getSecond() { diff --git a/src/main/java/org/springframework/data/geo/Circle.java b/src/main/java/org/springframework/data/geo/Circle.java index 6ef02c064..a60feafaf 100644 --- a/src/main/java/org/springframework/data/geo/Circle.java +++ b/src/main/java/org/springframework/data/geo/Circle.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2014 the original author or authors. + * Copyright 2010-2018 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. @@ -22,7 +22,7 @@ import org.springframework.util.Assert; /** * Represents a geospatial circle value - * + * * @author Mark Pollack * @author Oliver Gierke * @author Thomas Darimont @@ -38,7 +38,7 @@ public class Circle implements Shape { /** * Creates a new {@link Circle} from the given {@link Point} and radius. - * + * * @param center must not be {@literal null}. * @param radius must not be {@literal null} and it's value greater or equal to zero. */ @@ -55,7 +55,7 @@ public class Circle implements Shape { /** * Creates a new {@link Circle} from the given {@link Point} and radius. - * + * * @param center must not be {@literal null}. * @param radius's value must be greater or equal to zero. */ @@ -66,7 +66,7 @@ public class Circle implements Shape { /** * Creates a new {@link Circle} from the given coordinates and radius as {@link Distance} with a * {@link Metrics#NEUTRAL}. - * + * * @param centerX * @param centerY * @param radius must be greater or equal to zero. @@ -77,7 +77,7 @@ public class Circle implements Shape { /** * Returns the center of the {@link Circle}. - * + * * @return will never be {@literal null}. */ public Point getCenter() { @@ -86,7 +86,7 @@ public class Circle implements Shape { /** * Returns the radius of the {@link Circle}. - * + * * @return */ public Distance getRadius() { diff --git a/src/main/java/org/springframework/data/geo/CustomMetric.java b/src/main/java/org/springframework/data/geo/CustomMetric.java index 251ee768e..340997255 100644 --- a/src/main/java/org/springframework/data/geo/CustomMetric.java +++ b/src/main/java/org/springframework/data/geo/CustomMetric.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2015 the original author or authors. + * Copyright 2013-2018 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. @@ -19,7 +19,7 @@ import org.springframework.util.Assert; /** * Value object to create custom {@link Metric}s on the fly. - * + * * @author Oliver Gierke * @author Thomas Darimont * @since 1.8 @@ -33,7 +33,7 @@ public class CustomMetric implements Metric { /** * Creates a custom {@link Metric} using the given multiplier. - * + * * @param multiplier */ public CustomMetric(double multiplier) { @@ -43,7 +43,7 @@ public class CustomMetric implements Metric { /** * Creates a custom {@link Metric} using the given multiplier and abbreviation. - * + * * @param multiplier * @param abbreviation must not be {@literal null}. */ @@ -55,7 +55,7 @@ public class CustomMetric implements Metric { this.abbreviation = abbreviation; } - /* + /* * (non-Javadoc) * @see org.springframework.data.mongodb.core.geo.Metric#getMultiplier() */ @@ -63,7 +63,7 @@ public class CustomMetric implements Metric { return multiplier; } - /* + /* * (non-Javadoc) * @see org.springframework.data.geo.Metric#getAbbreviation() */ diff --git a/src/main/java/org/springframework/data/geo/Distance.java b/src/main/java/org/springframework/data/geo/Distance.java index 2eaa38c22..a9fa93fab 100644 --- a/src/main/java/org/springframework/data/geo/Distance.java +++ b/src/main/java/org/springframework/data/geo/Distance.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2015 the original author or authors. + * Copyright 2010-2018 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. @@ -26,7 +26,7 @@ import org.springframework.util.Assert; /** * Value object to represent distances in a given metric. - * + * * @author Oliver Gierke * @author Thomas Darimont * @since 1.8 @@ -48,7 +48,7 @@ public class Distance implements Serializable, Comparable { /** * Creates a new {@link Distance} with a neutral metric. This means the provided value needs to be in normalized form. - * + * * @param value */ public Distance(double value) { @@ -57,7 +57,7 @@ public class Distance implements Serializable, Comparable { /** * Creates a new {@link Distance} with the given {@link Metric}. - * + * * @param value * @param metric must not be {@literal null}. */ @@ -71,7 +71,7 @@ public class Distance implements Serializable, Comparable { /** * Creates a {@link Range} between the given {@link Distance}. - * + * * @param min can be {@literal null}. * @param max can be {@literal null}. * @return will never be {@literal null}. @@ -82,7 +82,7 @@ public class Distance implements Serializable, Comparable { /** * Creates a new {@link Range} by creating minimum and maximum {@link Distance} from the given values. - * + * * @param minValue * @param minMetric can be {@literal null}. * @param maxValue @@ -95,7 +95,7 @@ public class Distance implements Serializable, Comparable { /** * Returns the normalized value regarding the underlying {@link Metric}. - * + * * @return */ public double getNormalizedValue() { @@ -104,7 +104,7 @@ public class Distance implements Serializable, Comparable { /** * Returns a {@link String} representation of the unit the distance is in. - * + * * @return the unit * @see Metric#getAbbreviation() */ @@ -115,7 +115,7 @@ public class Distance implements Serializable, Comparable { /** * Adds the given distance to the current one. The resulting {@link Distance} will be in the same metric as the * current one. - * + * * @param other must not be {@literal null}. * @return */ @@ -130,7 +130,7 @@ public class Distance implements Serializable, Comparable { /** * Adds the given {@link Distance} to the current one and forces the result to be in a given {@link Metric}. - * + * * @param other must not be {@literal null}. * @param metric must not be {@literal null}. * @return @@ -149,7 +149,7 @@ public class Distance implements Serializable, Comparable { /** * Returns a new {@link Distance} in the given {@link Metric}. This means that the returned instance will have the * same normalized value as the original instance. - * + * * @param metric must not be {@literal null}. * @return */ @@ -160,7 +160,7 @@ public class Distance implements Serializable, Comparable { return this.metric.equals(metric) ? this : new Distance(getNormalizedValue() * metric.getMultiplier(), metric); } - /* + /* * (non-Javadoc) * @see java.lang.Comparable#compareTo(java.lang.Object) */ diff --git a/src/main/java/org/springframework/data/geo/GeoModule.java b/src/main/java/org/springframework/data/geo/GeoModule.java index 62171d44b..27b15de5d 100644 --- a/src/main/java/org/springframework/data/geo/GeoModule.java +++ b/src/main/java/org/springframework/data/geo/GeoModule.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2016 the original author or authors. + * Copyright 2014-2018 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. @@ -26,7 +26,7 @@ import com.fasterxml.jackson.databind.module.SimpleModule; /** * Custom module to deserialize the geo-spatial value objects using Jackson 2. - * + * * @author Oliver Gierke * @since 1.8 */ diff --git a/src/main/java/org/springframework/data/geo/GeoPage.java b/src/main/java/org/springframework/data/geo/GeoPage.java index 144adae30..2d31c03ef 100644 --- a/src/main/java/org/springframework/data/geo/GeoPage.java +++ b/src/main/java/org/springframework/data/geo/GeoPage.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2014 the original author or authors. + * Copyright 2011-2018 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. @@ -26,7 +26,7 @@ import org.springframework.util.ObjectUtils; /** * Custom {@link Page} to carry the average distance retrieved from the {@link GeoResults} the {@link GeoPage} is set up * from. - * + * * @author Oliver Gierke * @author Thomas Darimont * @since 1.8 @@ -42,7 +42,7 @@ public class GeoPage extends PageImpl> { /** * Creates a new {@link GeoPage} from the given {@link GeoResults}. - * + * * @param content must not be {@literal null}. */ public GeoPage(GeoResults results) { @@ -54,7 +54,7 @@ public class GeoPage extends PageImpl> { /** * Creates a new {@link GeoPage} from the given {@link GeoResults}, {@link Pageable} and total. - * + * * @param results must not be {@literal null}. * @param pageable must not be {@literal null}. * @param total @@ -66,7 +66,7 @@ public class GeoPage extends PageImpl> { this.averageDistance = results.getAverageDistance(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.domain.PageImpl#equals(java.lang.Object) */ @@ -86,7 +86,7 @@ public class GeoPage extends PageImpl> { return super.equals(obj) && ObjectUtils.nullSafeEquals(this.averageDistance, that.averageDistance); } - /* + /* * (non-Javadoc) * @see org.springframework.data.domain.PageImpl#hashCode() */ diff --git a/src/main/java/org/springframework/data/geo/GeoResult.java b/src/main/java/org/springframework/data/geo/GeoResult.java index 794d63f1a..02f77fb8f 100644 --- a/src/main/java/org/springframework/data/geo/GeoResult.java +++ b/src/main/java/org/springframework/data/geo/GeoResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2015 the original author or authors. + * Copyright 2011-2018 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. @@ -22,7 +22,7 @@ import java.io.Serializable; /** * Value object capturing some arbitrary object plus a distance. - * + * * @author Oliver Gierke * @author Thomas Darimont * @since 1.8 diff --git a/src/main/java/org/springframework/data/geo/GeoResults.java b/src/main/java/org/springframework/data/geo/GeoResults.java index 1cb58943d..c567c0f14 100644 --- a/src/main/java/org/springframework/data/geo/GeoResults.java +++ b/src/main/java/org/springframework/data/geo/GeoResults.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2014 the original author or authors. + * Copyright 2011-2018 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. @@ -28,7 +28,7 @@ import org.springframework.util.StringUtils; /** * Value object to capture {@link GeoResult}s as well as the average distance they have. - * + * * @author Oliver Gierke * @author Thomas Darimont * @since 1.8 @@ -44,7 +44,7 @@ public class GeoResults implements Iterable>, Serializable { /** * Creates a new {@link GeoResults} instance manually calculating the average distance from the distance values of the * given {@link GeoResult}s. - * + * * @param results must not be {@literal null}. */ public GeoResults(List> results) { @@ -54,7 +54,7 @@ public class GeoResults implements Iterable>, Serializable { /** * Creates a new {@link GeoResults} instance manually calculating the average distance in the given {@link Metric} * from the distance values of the given {@link GeoResult}s. - * + * * @param results must not be {@literal null}. * @param metric must not be {@literal null}. */ @@ -64,7 +64,7 @@ public class GeoResults implements Iterable>, Serializable { /** * Creates a new {@link GeoResults} instance from the given {@link GeoResult}s and average distance. - * + * * @param results must not be {@literal null}. * @param averageDistance must not be {@literal null}. */ @@ -80,7 +80,7 @@ public class GeoResults implements Iterable>, Serializable { /** * Returns the average distance of all {@link GeoResult}s in this list. - * + * * @return the averageDistance */ public Distance getAverageDistance() { @@ -89,7 +89,7 @@ public class GeoResults implements Iterable>, Serializable { /** * Returns the actual content of the {@link GeoResults}. - * + * * @return */ public List> getContent() { diff --git a/src/main/java/org/springframework/data/geo/Metric.java b/src/main/java/org/springframework/data/geo/Metric.java index 2530cac3e..034b36dd8 100644 --- a/src/main/java/org/springframework/data/geo/Metric.java +++ b/src/main/java/org/springframework/data/geo/Metric.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2015 the original author or authors. + * Copyright 2011-2018 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. @@ -19,7 +19,7 @@ import java.io.Serializable; /** * Interface for {@link Metric}s that can be applied to a base scale. - * + * * @author Oliver Gierke * @author Thomas Darimont * @since 1.8 @@ -28,14 +28,14 @@ public interface Metric extends Serializable { /** * Returns the multiplier to calculate metrics values from a base scale. - * + * * @return */ double getMultiplier(); /** * Returns the scientific abbreviation of the unit the {@link Metric} is in. - * + * * @return */ String getAbbreviation(); diff --git a/src/main/java/org/springframework/data/geo/Metrics.java b/src/main/java/org/springframework/data/geo/Metrics.java index 1fcb5b974..55c7bd2fe 100644 --- a/src/main/java/org/springframework/data/geo/Metrics.java +++ b/src/main/java/org/springframework/data/geo/Metrics.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2015 the original author or authors. + * Copyright 2011-2018 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. @@ -17,7 +17,7 @@ package org.springframework.data.geo; /** * Commonly used {@link Metric}s. - * + * * @author Oliver Gierke * @author Thomas Darimont * @since 1.8 @@ -31,7 +31,7 @@ public enum Metrics implements Metric { /** * Creates a new {@link Metrics} using the given multiplier. - * + * * @param multiplier the earth radius at equator, must not be {@literal null}. * @param abbreviation the abbreviation to use for this {@link Metric}, must not be {@literal null}. */ @@ -49,7 +49,7 @@ public enum Metrics implements Metric { return multiplier; } - /* + /* * (non-Javadoc) * @see org.springframework.data.geo.Metric#getAbbreviation() */ diff --git a/src/main/java/org/springframework/data/geo/Point.java b/src/main/java/org/springframework/data/geo/Point.java index e5bf6a865..06aa1b9f2 100644 --- a/src/main/java/org/springframework/data/geo/Point.java +++ b/src/main/java/org/springframework/data/geo/Point.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2014 the original author or authors. + * Copyright 2010-2018 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. @@ -24,7 +24,7 @@ import org.springframework.util.Assert; /** * Represents a geospatial point value. - * + * * @author Mark Pollack * @author Oliver Gierke * @author Thomas Darimont @@ -39,7 +39,7 @@ public class Point implements Serializable { /** * Creates a {@link Point} from the given {@code x}, {@code y} coordinate. - * + * * @param x * @param y */ @@ -51,7 +51,7 @@ public class Point implements Serializable { /** * Creates a {@link Point} from the given {@link Point} coordinate. - * + * * @param point must not be {@literal null}. */ public Point(Point point) { @@ -64,7 +64,7 @@ public class Point implements Serializable { /** * Returns the x-coordinate of the {@link Point}. - * + * * @return */ public double getX() { @@ -73,7 +73,7 @@ public class Point implements Serializable { /** * Returns the y-coordinate of the {@link Point}. - * + * * @return */ public double getY() { diff --git a/src/main/java/org/springframework/data/geo/Polygon.java b/src/main/java/org/springframework/data/geo/Polygon.java index 20a858831..f97959d78 100644 --- a/src/main/java/org/springframework/data/geo/Polygon.java +++ b/src/main/java/org/springframework/data/geo/Polygon.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2014 the original author or authors. + * Copyright 2011-2018 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. @@ -29,7 +29,7 @@ import org.springframework.util.StringUtils; /** * Simple value object to represent a {@link Polygon}. - * + * * @author Oliver Gierke * @author Thomas Darimont * @since 1.8 @@ -43,7 +43,7 @@ public class Polygon implements Iterable, Shape { /** * Creates a new {@link Polygon} for the given Points. - * + * * @param x must not be {@literal null}. * @param y must not be {@literal null}. * @param z must not be {@literal null}. @@ -65,7 +65,7 @@ public class Polygon implements Iterable, Shape { /** * Creates a new {@link Polygon} for the given Points. - * + * * @param points must not be {@literal null}. */ @PersistenceConstructor @@ -86,7 +86,7 @@ public class Polygon implements Iterable, Shape { /** * Returns all {@link Point}s the {@link Polygon} is made of. - * + * * @return */ public List getPoints() { diff --git a/src/main/java/org/springframework/data/geo/Shape.java b/src/main/java/org/springframework/data/geo/Shape.java index c3180cb88..918da6bd9 100644 --- a/src/main/java/org/springframework/data/geo/Shape.java +++ b/src/main/java/org/springframework/data/geo/Shape.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2014 the original author or authors. + * Copyright 2011-2018 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. @@ -19,7 +19,7 @@ import java.io.Serializable; /** * Common interface for all shapes. Allows building external representations of them. - * + * * @author Oliver Gierke * @author Thomas Darimont */ diff --git a/src/main/java/org/springframework/data/geo/format/DistanceFormatter.java b/src/main/java/org/springframework/data/geo/format/DistanceFormatter.java index 4eef81db0..5ca7075d7 100644 --- a/src/main/java/org/springframework/data/geo/format/DistanceFormatter.java +++ b/src/main/java/org/springframework/data/geo/format/DistanceFormatter.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -34,7 +34,7 @@ import org.springframework.util.StringUtils; * Converter to create {@link Distance} instances from {@link String} representations. The supported format is a decimal * followed by whitespace and a metric abbreviation. We currently support the following abbreviations: * {@value #SUPPORTED_METRICS}. - * + * * @author Oliver Gierke * @author Christoph Strobl */ @@ -57,7 +57,7 @@ public enum DistanceFormatter implements Converter, Formatter< SUPPORTED_METRICS = Collections.unmodifiableMap(metrics); } - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.Converter#convert(java.lang.Object) */ @@ -88,7 +88,7 @@ public enum DistanceFormatter implements Converter, Formatter< /** * Converts the given {@link String} source into a distance. Expects the source to reflect the {@link Metric} as held * in the {@link #SUPPORTED_METRICS} map. - * + * * @param source must not be {@literal null}. * @return */ @@ -110,7 +110,7 @@ public enum DistanceFormatter implements Converter, Formatter< /** * Creates a {@link Distance} from the given source String and the {@link Metric} detected. - * + * * @param source the raw source {@link String}, must not be {@literal null} or empty. * @param metric the {@link Metric} detected keyed by the keyword it was detected for, must not be {@literal null}. * @return diff --git a/src/main/java/org/springframework/data/geo/format/PointFormatter.java b/src/main/java/org/springframework/data/geo/format/PointFormatter.java index 4fdc14b31..0c8d45d43 100644 --- a/src/main/java/org/springframework/data/geo/format/PointFormatter.java +++ b/src/main/java/org/springframework/data/geo/format/PointFormatter.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2015 the original author or authors. + * Copyright 2014-2018 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. @@ -27,7 +27,7 @@ import org.springframework.format.Formatter; /** * Converter to parse two comma-separated doubles into a {@link Point}. - * + * * @author Oliver Gierke */ public enum PointFormatter implements Converter, Formatter { @@ -38,7 +38,7 @@ public enum PointFormatter implements Converter, Formatter private static final String INVALID_FORMAT = "Expected two doubles separated by a comma but got '%s'!"; - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.Converter#convert(java.lang.Object) */ diff --git a/src/main/java/org/springframework/data/history/AnnotationRevisionMetadata.java b/src/main/java/org/springframework/data/history/AnnotationRevisionMetadata.java index ae89a77b6..2f1dca7b3 100755 --- a/src/main/java/org/springframework/data/history/AnnotationRevisionMetadata.java +++ b/src/main/java/org/springframework/data/history/AnnotationRevisionMetadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/main/java/org/springframework/data/history/Revision.java b/src/main/java/org/springframework/data/history/Revision.java index c219c0402..f466b3d48 100755 --- a/src/main/java/org/springframework/data/history/Revision.java +++ b/src/main/java/org/springframework/data/history/Revision.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -29,7 +29,7 @@ import org.springframework.lang.Nullable; /** * Wrapper to contain {@link RevisionMetadata} as well as the revisioned entity. - * + * * @author Oliver Gierke * @author Philipp Huegelmeyer * @author Christoph Strobl @@ -50,7 +50,7 @@ public final class Revision, T> implements Comp /** * Creates a new {@link Revision} for the given {@link RevisionMetadata} and entity. - * + * * @param metadata must not be {@literal null}. * @param entity must not be {@literal null}. * @return @@ -61,7 +61,7 @@ public final class Revision, T> implements Comp /** * Returns the revision number of the revision. - * + * * @return the revision number. */ public Optional getRevisionNumber() { @@ -70,7 +70,7 @@ public final class Revision, T> implements Comp /** * Returns the revision number of the revision, immediately failing on absence. - * + * * @return the revision number. */ public N getRequiredRevisionNumber() { @@ -79,7 +79,7 @@ public final class Revision, T> implements Comp /** * Returns the revision date of the revision. - * + * * @return */ public Optional getRevisionDate() { @@ -88,7 +88,7 @@ public final class Revision, T> implements Comp /** * Returns the revision date of the revision, immediately failing on absence. - * + * * @return the revision date. */ public LocalDateTime getRequiredRevisionDate() { @@ -109,7 +109,7 @@ public final class Revision, T> implements Comp (left, right) -> left.compareTo(right)).orElse(-1); } - /* + /* * (non-Javadoc) * @see java.lang.Object#toString() */ diff --git a/src/main/java/org/springframework/data/history/RevisionMetadata.java b/src/main/java/org/springframework/data/history/RevisionMetadata.java index 7cb712fac..06b7e907b 100755 --- a/src/main/java/org/springframework/data/history/RevisionMetadata.java +++ b/src/main/java/org/springframework/data/history/RevisionMetadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -53,7 +53,7 @@ public interface RevisionMetadata> { /** * Returns the revision date of the revision, immediately failing on absence. - * + * * @return will never be {@literal null}. * @throw IllegalStateException if no revision date is available. */ diff --git a/src/main/java/org/springframework/data/history/RevisionSort.java b/src/main/java/org/springframework/data/history/RevisionSort.java index 010b6d25a..ccd9e9866 100644 --- a/src/main/java/org/springframework/data/history/RevisionSort.java +++ b/src/main/java/org/springframework/data/history/RevisionSort.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 the original author or authors. + * Copyright 2016-2018 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. @@ -21,7 +21,7 @@ import org.springframework.util.Assert; /** * A dedicated {@link Sort} implementation that allows the definition of the ordering of revisions independently of the * property name the revision number is held in. - * + * * @author Oliver Gierke * @since 1.13 * @soundtrack Benny Greb's Moving Parts - Soulfood (Live) @@ -36,7 +36,7 @@ public class RevisionSort extends Sort { /** * Creates a new {@link RevisionSort} using the given direction for sorting by revision number. - * + * * @param direction must not be {@literal null}. */ private RevisionSort(Direction direction) { @@ -46,7 +46,7 @@ public class RevisionSort extends Sort { /** * Creates a {@link RevisionSort} with ascending order for the revision number property, i.e. more recent revisions * will come last. - * + * * @return */ public static RevisionSort asc() { @@ -56,7 +56,7 @@ public class RevisionSort extends Sort { /** * Creates a {@link RevisionSort} with descending order for the revision number property, i.e. more recent revisions * will come first. - * + * * @return */ public static RevisionSort desc() { @@ -66,7 +66,7 @@ public class RevisionSort extends Sort { /** * Returns in which direction to sort revisions for the given {@link Sort} instance. Defaults to * {@link Direction#ASC}. - * + * * @param sort must not be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/history/Revisions.java b/src/main/java/org/springframework/data/history/Revisions.java index e2925b4b1..46988b416 100644 --- a/src/main/java/org/springframework/data/history/Revisions.java +++ b/src/main/java/org/springframework/data/history/Revisions.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -27,7 +27,7 @@ import org.springframework.util.Assert; /** * Simple wrapper class for a {@link List} of {@link Revisions} allowing to canonically access the latest revision. * Allows iterating over the underlying {@link Revisions} starting with older revisions. - * + * * @author Oliver Gierke * @author Christoph Strobl */ @@ -41,7 +41,7 @@ public class Revisions, T> implements Streamabl /** * Creates a new {@link Revisions} instance containing the given revisions. Will make sure they are ordered * ascendingly. - * + * * @param revisions must not be {@literal null}. */ private Revisions(List> revisions) { @@ -50,7 +50,7 @@ public class Revisions, T> implements Streamabl /** * Creates a new {@link Revisions} instance using the given revisions. - * + * * @param revisions must not be {@literal null}. * @param latestLast */ @@ -67,7 +67,7 @@ public class Revisions, T> implements Streamabl /** * Creates a new {@link Revisions} instance for the given {@link Revision}s. - * + * * @return will never be {@literal null}. */ public static , T> Revisions of(List> revisions) { @@ -76,7 +76,7 @@ public class Revisions, T> implements Streamabl /** * Creates a new empty {@link Revisions} instance. - * + * * @return will never be {@literal null}. */ public static , T> Revisions none() { @@ -85,7 +85,7 @@ public class Revisions, T> implements Streamabl /** * Returns the latest revision of the revisions backing the wrapper independently of the order. - * + * * @return */ public Revision getLatestRevision() { @@ -95,14 +95,14 @@ public class Revisions, T> implements Streamabl /** * Reverses the current {@link Revisions}. By default this will return the revisions with the latest revision first. - * + * * @return */ public Revisions reverse() { return new Revisions<>(revisions, !latestLast); } - /* + /* * (non-Javadoc) * @see java.lang.Iterable#iterator() */ @@ -112,7 +112,7 @@ public class Revisions, T> implements Streamabl /** * Returns the content of the {@link Revisions} instance. - * + * * @return */ public List> getContent() { diff --git a/src/main/java/org/springframework/data/mapping/Alias.java b/src/main/java/org/springframework/data/mapping/Alias.java index b8dbfae23..056aa0b6c 100644 --- a/src/main/java/org/springframework/data/mapping/Alias.java +++ b/src/main/java/org/springframework/data/mapping/Alias.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -105,7 +105,7 @@ public class Alias { /** * Returns whether the the current alias is present and has the same value as the given {@link Alias}. - * + * * @param other the other {@link Alias} * @return {@literal true} if there's an alias value present and its equal to the one in the given {@link Alias}. */ diff --git a/src/main/java/org/springframework/data/mapping/Association.java b/src/main/java/org/springframework/data/mapping/Association.java index 68a9ff9ee..38cbf1e28 100644 --- a/src/main/java/org/springframework/data/mapping/Association.java +++ b/src/main/java/org/springframework/data/mapping/Association.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/AssociationHandler.java b/src/main/java/org/springframework/data/mapping/AssociationHandler.java index 26ad9776d..4426ac7a0 100644 --- a/src/main/java/org/springframework/data/mapping/AssociationHandler.java +++ b/src/main/java/org/springframework/data/mapping/AssociationHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/IdentifierAccessor.java b/src/main/java/org/springframework/data/mapping/IdentifierAccessor.java index 520afe0a0..07604532a 100644 --- a/src/main/java/org/springframework/data/mapping/IdentifierAccessor.java +++ b/src/main/java/org/springframework/data/mapping/IdentifierAccessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/MappingException.java b/src/main/java/org/springframework/data/mapping/MappingException.java index 37b90b352..7ec3112cf 100644 --- a/src/main/java/org/springframework/data/mapping/MappingException.java +++ b/src/main/java/org/springframework/data/mapping/MappingException.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/PersistentEntity.java b/src/main/java/org/springframework/data/mapping/PersistentEntity.java index ed5be7be4..5b268fb8a 100644 --- a/src/main/java/org/springframework/data/mapping/PersistentEntity.java +++ b/src/main/java/org/springframework/data/mapping/PersistentEntity.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/PersistentProperty.java b/src/main/java/org/springframework/data/mapping/PersistentProperty.java index 244629338..3d929deb8 100644 --- a/src/main/java/org/springframework/data/mapping/PersistentProperty.java +++ b/src/main/java/org/springframework/data/mapping/PersistentProperty.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/PersistentPropertyAccessor.java b/src/main/java/org/springframework/data/mapping/PersistentPropertyAccessor.java index 971ffc3bb..b9a14b3bc 100644 --- a/src/main/java/org/springframework/data/mapping/PersistentPropertyAccessor.java +++ b/src/main/java/org/springframework/data/mapping/PersistentPropertyAccessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/PreferredConstructor.java b/src/main/java/org/springframework/data/mapping/PreferredConstructor.java index 053975bba..faf7a9eb8 100644 --- a/src/main/java/org/springframework/data/mapping/PreferredConstructor.java +++ b/src/main/java/org/springframework/data/mapping/PreferredConstructor.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/PropertyHandler.java b/src/main/java/org/springframework/data/mapping/PropertyHandler.java index bdfa649dc..8d8a0dbd7 100644 --- a/src/main/java/org/springframework/data/mapping/PropertyHandler.java +++ b/src/main/java/org/springframework/data/mapping/PropertyHandler.java @@ -1,11 +1,11 @@ /* - * Copyright (c) 2011 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -18,7 +18,7 @@ package org.springframework.data.mapping; /** * Callback interface to do something with all plain {@link PersistentProperty} instances except associations * and transient properties. - * + * * @author Jon Brisbin */ public interface PropertyHandler

> { diff --git a/src/main/java/org/springframework/data/mapping/PropertyPath.java b/src/main/java/org/springframework/data/mapping/PropertyPath.java index f5e6f1e1f..c26d5caa8 100644 --- a/src/main/java/org/springframework/data/mapping/PropertyPath.java +++ b/src/main/java/org/springframework/data/mapping/PropertyPath.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -134,7 +134,7 @@ public class PropertyPath implements Streamable { /** * Returns the type of the leaf property of the current {@link PropertyPath}. - * + * * @return will never be {@literal null}. */ public Class getLeafType() { @@ -245,7 +245,7 @@ public class PropertyPath implements Streamable { /** * Returns the next {@link PropertyPath}. - * + * * @return * @throws IllegalStateException it there's no next one. */ diff --git a/src/main/java/org/springframework/data/mapping/PropertyReferenceException.java b/src/main/java/org/springframework/data/mapping/PropertyReferenceException.java index 7891c080f..d546da38b 100644 --- a/src/main/java/org/springframework/data/mapping/PropertyReferenceException.java +++ b/src/main/java/org/springframework/data/mapping/PropertyReferenceException.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2016 the original author or authors. + * Copyright 2012-2018 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. @@ -29,7 +29,7 @@ import org.springframework.util.StringUtils; /** * Exception being thrown when creating {@link PropertyPath} instances. - * + * * @author Oliver Gierke */ public class PropertyReferenceException extends RuntimeException { @@ -45,7 +45,7 @@ public class PropertyReferenceException extends RuntimeException { /** * Creates a new {@link PropertyReferenceException}. - * + * * @param propertyName the name of the property not found on the given type, must not be {@literal null} or empty. * @param type the type the property could not be found on, must not be {@literal null}. * @param alreadyResolvedPah the previously calculated {@link PropertyPath}s, must not be {@literal null}. @@ -65,7 +65,7 @@ public class PropertyReferenceException extends RuntimeException { /** * Returns the name of the property not found. - * + * * @return will not be {@literal null} or empty. */ public String getPropertyName() { @@ -74,7 +74,7 @@ public class PropertyReferenceException extends RuntimeException { /** * Returns the type the property could not be found on. - * + * * @return will never be {@literal null}. */ public TypeInformation getType() { @@ -83,14 +83,14 @@ public class PropertyReferenceException extends RuntimeException { /** * Returns the properties that the invalid property might have been meant to be referred to. - * + * * @return will never be {@literal null}. */ Collection getPropertyMatches() { return propertyMatches; } - /* + /* * (non-Javadoc) * @see java.lang.Throwable#getMessage() */ @@ -116,7 +116,7 @@ public class PropertyReferenceException extends RuntimeException { /** * Returns the {@link PropertyPath} which could be resolved so far. - * + * * @return */ @Nullable @@ -127,7 +127,7 @@ public class PropertyReferenceException extends RuntimeException { /** * Returns whether the given {@link PropertyReferenceException} has a deeper resolution depth (i.e. a longer path of * already resolved properties) than the current exception. - * + * * @param exception must not be {@literal null}. * @return */ @@ -137,7 +137,7 @@ public class PropertyReferenceException extends RuntimeException { /** * Detects all potential matches for the given property name and type. - * + * * @param propertyName must not be {@literal null} or empty. * @param type must not be {@literal null}. * @return diff --git a/src/main/java/org/springframework/data/mapping/SimpleAssociationHandler.java b/src/main/java/org/springframework/data/mapping/SimpleAssociationHandler.java index 1827600b3..5623e424c 100644 --- a/src/main/java/org/springframework/data/mapping/SimpleAssociationHandler.java +++ b/src/main/java/org/springframework/data/mapping/SimpleAssociationHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 the original author or authors. + * Copyright 2013-2018 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. @@ -17,7 +17,7 @@ package org.springframework.data.mapping; /** * Association handler to work with the untyped {@link PersistentProperty} based {@link Association}. - * + * * @author Oliver Gierke * @see PropertyHandler */ @@ -25,7 +25,7 @@ public interface SimpleAssociationHandler { /** * Handle the given {@link Association}. - * + * * @param association will never be {@literal null}. */ void doWithAssociation(Association> association); diff --git a/src/main/java/org/springframework/data/mapping/SimplePropertyHandler.java b/src/main/java/org/springframework/data/mapping/SimplePropertyHandler.java index fb4c5e3dd..10a9fcdc6 100644 --- a/src/main/java/org/springframework/data/mapping/SimplePropertyHandler.java +++ b/src/main/java/org/springframework/data/mapping/SimplePropertyHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 the original author or authors. + * Copyright 2013-2018 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. @@ -17,14 +17,14 @@ package org.springframework.data.mapping; /** * A property handler to work with untyped {@link PersistentProperty} instances. - * + * * @author Oliver Gierke */ public interface SimplePropertyHandler { /** * Handle the given {@link PersistentProperty}. - * + * * @param property will never be {@literal null}. */ void doWithPersistentProperty(PersistentProperty property); diff --git a/src/main/java/org/springframework/data/mapping/TargetAwareIdentifierAccessor.java b/src/main/java/org/springframework/data/mapping/TargetAwareIdentifierAccessor.java index 64eb6d2b8..62183ac31 100644 --- a/src/main/java/org/springframework/data/mapping/TargetAwareIdentifierAccessor.java +++ b/src/main/java/org/springframework/data/mapping/TargetAwareIdentifierAccessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/context/AbstractMappingContext.java b/src/main/java/org/springframework/data/mapping/context/AbstractMappingContext.java index baee40405..a53e70b46 100644 --- a/src/main/java/org/springframework/data/mapping/context/AbstractMappingContext.java +++ b/src/main/java/org/springframework/data/mapping/context/AbstractMappingContext.java @@ -1,11 +1,11 @@ /* - * Copyright 2011-2017 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, diff --git a/src/main/java/org/springframework/data/mapping/context/DefaultPersistentPropertyPath.java b/src/main/java/org/springframework/data/mapping/context/DefaultPersistentPropertyPath.java index ed635fa72..375c50aef 100644 --- a/src/main/java/org/springframework/data/mapping/context/DefaultPersistentPropertyPath.java +++ b/src/main/java/org/springframework/data/mapping/context/DefaultPersistentPropertyPath.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -28,7 +28,7 @@ import org.springframework.util.StringUtils; /** * Abstraction of a path of {@link PersistentProperty}s. - * + * * @author Oliver Gierke * @author Christoph Strobl */ @@ -41,7 +41,7 @@ class DefaultPersistentPropertyPath

> implements /** * Creates a new {@link DefaultPersistentPropertyPath} for the given {@link PersistentProperty}s. - * + * * @param properties must not be {@literal null}. */ public DefaultPersistentPropertyPath(List

properties) { @@ -53,7 +53,7 @@ class DefaultPersistentPropertyPath

> implements /** * Creates an empty {@link DefaultPersistentPropertyPath}. - * + * * @return */ public static > DefaultPersistentPropertyPath empty() { @@ -62,7 +62,7 @@ class DefaultPersistentPropertyPath

> implements /** * Appends the given {@link PersistentProperty} to the current {@link PersistentPropertyPath}. - * + * * @param property must not be {@literal null}. * @return a new {@link DefaultPersistentPropertyPath} with the given property appended to the current one. * @throws IllegalArgumentException in case the property is not a property of the type of the current leaf property. @@ -87,7 +87,7 @@ class DefaultPersistentPropertyPath

> implements return new DefaultPersistentPropertyPath<>(properties); } - /* + /* * (non-Javadoc) * @see org.springframework.data.mapping.context.PersistentPropertyPath#toDotPath() */ @@ -96,7 +96,7 @@ class DefaultPersistentPropertyPath

> implements return toPath(DEFAULT_DELIMITER, DEFAULT_CONVERTER); } - /* + /* * (non-Javadoc) * @see org.springframework.data.mapping.context.PersistentPropertyPath#toDotPath(org.springframework.core.convert.converter.Converter) */ @@ -105,7 +105,7 @@ class DefaultPersistentPropertyPath

> implements return toPath(DEFAULT_DELIMITER, converter); } - /* + /* * (non-Javadoc) * @see org.springframework.data.mapping.context.PersistentPropertyPath#toPath(java.lang.String) */ @@ -114,7 +114,7 @@ class DefaultPersistentPropertyPath

> implements return toPath(delimiter, DEFAULT_CONVERTER); } - /* + /* * (non-Javadoc) * @see org.springframework.data.mapping.context.PersistentPropertyPath#toPath(java.lang.String, org.springframework.core.convert.converter.Converter) */ @@ -138,7 +138,7 @@ class DefaultPersistentPropertyPath

> implements return result.isEmpty() ? null : StringUtils.collectionToDelimitedString(result, delimiter); } - /* + /* * (non-Javadoc) * @see org.springframework.data.mapping.context.PersistentPropertyPath#getLeafProperty() */ @@ -147,7 +147,7 @@ class DefaultPersistentPropertyPath

> implements return properties.get(properties.size() - 1); } - /* + /* * (non-Javadoc) * @see org.springframework.data.mapping.context.PersistentPropertyPath#getBaseProperty() */ @@ -156,7 +156,7 @@ class DefaultPersistentPropertyPath

> implements return properties.get(0); } - /* + /* * (non-Javadoc) * @see org.springframework.data.mapping.context.PersistentPropertyPath#isBasePathOf(org.springframework.data.mapping.context.PersistentPropertyPath) */ @@ -182,7 +182,7 @@ class DefaultPersistentPropertyPath

> implements return true; } - /* + /* * (non-Javadoc) * @see org.springframework.data.mapping.context.PersistentPropertyPath#getExtensionForBaseOf(org.springframework.data.mapping.context.PersistentPropertyPath) */ @@ -229,7 +229,7 @@ class DefaultPersistentPropertyPath

> implements return properties.size(); } - /* + /* * (non-Javadoc) * @see java.lang.Iterable#iterator() */ @@ -245,7 +245,7 @@ class DefaultPersistentPropertyPath

> implements return properties.isEmpty(); } - /* + /* * (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ @@ -265,7 +265,7 @@ class DefaultPersistentPropertyPath

> implements return this.properties.equals(that.properties); } - /* + /* * (non-Javadoc) * @see java.lang.Object#hashCode() */ diff --git a/src/main/java/org/springframework/data/mapping/context/InvalidPersistentPropertyPath.java b/src/main/java/org/springframework/data/mapping/context/InvalidPersistentPropertyPath.java index e6023c561..a969e517a 100644 --- a/src/main/java/org/springframework/data/mapping/context/InvalidPersistentPropertyPath.java +++ b/src/main/java/org/springframework/data/mapping/context/InvalidPersistentPropertyPath.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2015-2018 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. @@ -22,7 +22,7 @@ import org.springframework.util.Assert; /** * Exception to indicate a source path couldn't be resolved into a {@link PersistentPropertyPath} completely. - * + * * @author Oliver Gierke * @soundtrack John Mayer - Slow Dancing In A Burning Room (Acoustic, The Village Sessions) */ @@ -35,7 +35,7 @@ public class InvalidPersistentPropertyPath extends MappingException { /** * Creates a new {@link InvalidPersistentPropertyPath} for the given resolved path and message. - * + * * @param source must not be {@literal null}. * @param unresolvableSegment must not be {@literal null} or empty. * @param resolvedPath @@ -58,7 +58,7 @@ public class InvalidPersistentPropertyPath extends MappingException { /** * Returns the source property path. - * + * * @return the source will never be {@literal null}. */ public String getSource() { @@ -67,7 +67,7 @@ public class InvalidPersistentPropertyPath extends MappingException { /** * Returns the type the source property path was attempted to be resolved on. - * + * * @return the type will never be {@literal null}. */ public TypeInformation getType() { @@ -76,7 +76,7 @@ public class InvalidPersistentPropertyPath extends MappingException { /** * Returns the segment of the source property path that could not be resolved. - * + * * @return the unresolvableSegment */ public String getUnresolvableSegment() { @@ -85,7 +85,7 @@ public class InvalidPersistentPropertyPath extends MappingException { /** * Returns the part of the source path until which the source property path could be resolved. - * + * * @return the resolvedPath */ public String getResolvedPath() { diff --git a/src/main/java/org/springframework/data/mapping/context/MappingContext.java b/src/main/java/org/springframework/data/mapping/context/MappingContext.java index 35bd8fa2a..8a2b560d5 100644 --- a/src/main/java/org/springframework/data/mapping/context/MappingContext.java +++ b/src/main/java/org/springframework/data/mapping/context/MappingContext.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/context/MappingContextEvent.java b/src/main/java/org/springframework/data/mapping/context/MappingContextEvent.java index 86da5934a..aaa6cb195 100644 --- a/src/main/java/org/springframework/data/mapping/context/MappingContextEvent.java +++ b/src/main/java/org/springframework/data/mapping/context/MappingContextEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2012 the original author or authors. + * Copyright 2011-2018 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. @@ -22,7 +22,7 @@ import org.springframework.util.Assert; /** * Base implementation of an {@link ApplicationEvent} refering to a {@link PersistentEntity}. - * + * * @author Oliver Gierke * @author Jon Brisbin * @param the {@link PersistentEntity} the context was created for @@ -38,7 +38,7 @@ public class MappingContextEvent, P extends Per /** * Creates a new {@link MappingContextEvent} for the given {@link MappingContext} and {@link PersistentEntity}. - * + * * @param source must not be {@literal null}. * @param entity must not be {@literal null}. */ @@ -55,7 +55,7 @@ public class MappingContextEvent, P extends Per /** * Returns the {@link PersistentEntity} the event was created for. - * + * * @return */ public E getPersistentEntity() { @@ -64,7 +64,7 @@ public class MappingContextEvent, P extends Per /** * Returns whether the {@link MappingContextEvent} was triggered by the given {@link MappingContext}. - * + * * @param context the {@link MappingContext} that potentially created the event. * @return */ diff --git a/src/main/java/org/springframework/data/mapping/context/MappingContextIsNewStrategyFactory.java b/src/main/java/org/springframework/data/mapping/context/MappingContextIsNewStrategyFactory.java index edab600b0..b38cd9e95 100644 --- a/src/main/java/org/springframework/data/mapping/context/MappingContextIsNewStrategyFactory.java +++ b/src/main/java/org/springframework/data/mapping/context/MappingContextIsNewStrategyFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/context/PersistentEntities.java b/src/main/java/org/springframework/data/mapping/context/PersistentEntities.java index 395b9ca10..6e8e4d80d 100644 --- a/src/main/java/org/springframework/data/mapping/context/PersistentEntities.java +++ b/src/main/java/org/springframework/data/mapping/context/PersistentEntities.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 the original author or authors. + * Copyright 2014-2018 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. @@ -27,7 +27,7 @@ import org.springframework.util.Assert; /** * Value object to access {@link PersistentEntity} instances managed by {@link MappingContext}s. - * + * * @author Oliver Gierke * @since 1.8 */ @@ -37,7 +37,7 @@ public class PersistentEntities implements Streamable> contexts) { @@ -50,7 +50,7 @@ public class PersistentEntities implements Streamable> getManagedTypes() { @@ -90,7 +90,7 @@ public class PersistentEntities implements Streamable> extends Iterable { /** * Returns the dot based path notation using {@link PersistentProperty#getName()}. - * + * * @return */ @Nullable @@ -37,7 +37,7 @@ public interface PersistentPropertyPath> extends /** * Returns the dot based path notation using the given {@link Converter} to translate individual * {@link PersistentProperty}s to path segments. - * + * * @param converter must not be {@literal null}. * @return */ @@ -46,7 +46,7 @@ public interface PersistentPropertyPath> extends /** * Returns a {@link String} path with the given delimiter based on the {@link PersistentProperty#getName()}. - * + * * @param delimiter must not be {@literal null}. * @return */ @@ -56,7 +56,7 @@ public interface PersistentPropertyPath> extends /** * Returns a {@link String} path with the given delimiter using the given {@link Converter} for * {@link PersistentProperty} to String conversion. - * + * * @param delimiter must not be {@literal null}. * @param converter must not be {@literal null}. * @return @@ -68,7 +68,7 @@ public interface PersistentPropertyPath> extends * Returns the last property in the {@link PersistentPropertyPath}. So for {@code foo.bar} it will return the * {@link PersistentProperty} for {@code bar}. For a simple {@code foo} it returns {@link PersistentProperty} for * {@code foo}. - * + * * @return */ @Nullable @@ -78,7 +78,7 @@ public interface PersistentPropertyPath> extends * Returns the first property in the {@link PersistentPropertyPath}. So for {@code foo.bar} it will return the * {@link PersistentProperty} for {@code foo}. For a simple {@code foo} it returns {@link PersistentProperty} for * {@code foo}. - * + * * @return */ @Nullable @@ -87,7 +87,7 @@ public interface PersistentPropertyPath> extends /** * Returns whether the given {@link PersistentPropertyPath} is a base path of the current one. This means that the * current {@link PersistentPropertyPath} is basically an extension of the given one. - * + * * @param path must not be {@literal null}. * @return */ @@ -97,7 +97,7 @@ public interface PersistentPropertyPath> extends * Returns the sub-path of the current one as if it was based on the given base path. So for a current path * {@code foo.bar} and a given base {@code foo} it would return {@code bar}. If the given path is not a base of the * the current one the current {@link PersistentPropertyPath} will be returned as is. - * + * * @param base must not be {@literal null}. * @return */ @@ -107,21 +107,21 @@ public interface PersistentPropertyPath> extends * Returns the parent path of the current {@link PersistentPropertyPath}, i.e. the path without the leaf property. * This happens up to the base property. So for a direct property reference calling this method will result in * returning the property. - * + * * @return */ PersistentPropertyPath getParentPath(); /** * Returns the length of the {@link PersistentPropertyPath}. - * + * * @return */ int getLength(); /** * Returns whether the path is empty. - * + * * @return * @since 1.11 */ diff --git a/src/main/java/org/springframework/data/mapping/model/AbstractPersistentProperty.java b/src/main/java/org/springframework/data/mapping/model/AbstractPersistentProperty.java index d20605d5b..f59987762 100644 --- a/src/main/java/org/springframework/data/mapping/model/AbstractPersistentProperty.java +++ b/src/main/java/org/springframework/data/mapping/model/AbstractPersistentProperty.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/model/AnnotationBasedPersistentProperty.java b/src/main/java/org/springframework/data/mapping/model/AnnotationBasedPersistentProperty.java index ff04e3976..9789c0f3b 100644 --- a/src/main/java/org/springframework/data/mapping/model/AnnotationBasedPersistentProperty.java +++ b/src/main/java/org/springframework/data/mapping/model/AnnotationBasedPersistentProperty.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/model/BasicPersistentEntity.java b/src/main/java/org/springframework/data/mapping/model/BasicPersistentEntity.java index a7c0e6b23..49ea2dc5a 100644 --- a/src/main/java/org/springframework/data/mapping/model/BasicPersistentEntity.java +++ b/src/main/java/org/springframework/data/mapping/model/BasicPersistentEntity.java @@ -1,11 +1,11 @@ /* - * Copyright 2011-2017 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, diff --git a/src/main/java/org/springframework/data/mapping/model/BeanWrapper.java b/src/main/java/org/springframework/data/mapping/model/BeanWrapper.java index 35177c5e0..1e74a5d75 100644 --- a/src/main/java/org/springframework/data/mapping/model/BeanWrapper.java +++ b/src/main/java/org/springframework/data/mapping/model/BeanWrapper.java @@ -1,11 +1,11 @@ /* - * Copyright 2011-2017 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, diff --git a/src/main/java/org/springframework/data/mapping/model/BeanWrapperPropertyAccessorFactory.java b/src/main/java/org/springframework/data/mapping/model/BeanWrapperPropertyAccessorFactory.java index 494a10a84..91eeb2ccb 100644 --- a/src/main/java/org/springframework/data/mapping/model/BeanWrapperPropertyAccessorFactory.java +++ b/src/main/java/org/springframework/data/mapping/model/BeanWrapperPropertyAccessorFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 the original author or authors. + * Copyright 2016-2018 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. @@ -20,14 +20,14 @@ import org.springframework.data.mapping.PersistentPropertyAccessor; /** * PersistentPropertyAccessorFactory that uses a {@link BeanWrapper}. - * + * * @author Oliver Gierke */ enum BeanWrapperPropertyAccessorFactory implements PersistentPropertyAccessorFactory { INSTANCE; - /* + /* * (non-Javadoc) * @see org.springframework.data.mapping.model.PersistentPropertyAccessorFactory#getPropertyAccessor(org.springframework.data.mapping.PersistentEntity, java.lang.Object) */ @@ -36,7 +36,7 @@ enum BeanWrapperPropertyAccessorFactory implements PersistentPropertyAccessorFac return new BeanWrapper<>(bean); } - /* + /* * (non-Javadoc) * @see org.springframework.data.mapping.model.PersistentPropertyAccessorFactory#isSupported(org.springframework.data.mapping.PersistentEntity) */ diff --git a/src/main/java/org/springframework/data/mapping/model/CamelCaseAbbreviatingFieldNamingStrategy.java b/src/main/java/org/springframework/data/mapping/model/CamelCaseAbbreviatingFieldNamingStrategy.java index 9ab3396f8..856a207c3 100644 --- a/src/main/java/org/springframework/data/mapping/model/CamelCaseAbbreviatingFieldNamingStrategy.java +++ b/src/main/java/org/springframework/data/mapping/model/CamelCaseAbbreviatingFieldNamingStrategy.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/model/CamelCaseSplittingFieldNamingStrategy.java b/src/main/java/org/springframework/data/mapping/model/CamelCaseSplittingFieldNamingStrategy.java index 4392298c7..af0e963d6 100644 --- a/src/main/java/org/springframework/data/mapping/model/CamelCaseSplittingFieldNamingStrategy.java +++ b/src/main/java/org/springframework/data/mapping/model/CamelCaseSplittingFieldNamingStrategy.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 the original author or authors. + * Copyright 2014-2018 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. @@ -26,7 +26,7 @@ import org.springframework.util.StringUtils; /** * Configurable {@link FieldNamingStrategy} that splits up camel-case property names and reconcatenates them using a * configured delimiter. Individual parts of the name can be manipulated using {@link #preparePart(String)}. - * + * * @author Oliver Gierke * @since 1.9 */ @@ -36,7 +36,7 @@ public class CamelCaseSplittingFieldNamingStrategy implements FieldNamingStrateg /** * Creates a new {@link CamelCaseSplittingFieldNamingStrategy}. - * + * * @param delimiter must not be {@literal null}. */ public CamelCaseSplittingFieldNamingStrategy(String delimiter) { @@ -70,7 +70,7 @@ public class CamelCaseSplittingFieldNamingStrategy implements FieldNamingStrateg /** * Callback to prepare the uncapitalized part obtained from the split up of the camel case source. Default * implementation returns the part as is. - * + * * @param part * @return */ diff --git a/src/main/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorFactory.java b/src/main/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorFactory.java index e55fd8901..2caae95b2 100644 --- a/src/main/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorFactory.java +++ b/src/main/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/model/ConvertingPropertyAccessor.java b/src/main/java/org/springframework/data/mapping/model/ConvertingPropertyAccessor.java index edb7613c3..f304e7332 100644 --- a/src/main/java/org/springframework/data/mapping/model/ConvertingPropertyAccessor.java +++ b/src/main/java/org/springframework/data/mapping/model/ConvertingPropertyAccessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/model/DefaultSpELExpressionEvaluator.java b/src/main/java/org/springframework/data/mapping/model/DefaultSpELExpressionEvaluator.java index 20c9e1afc..47609fae4 100644 --- a/src/main/java/org/springframework/data/mapping/model/DefaultSpELExpressionEvaluator.java +++ b/src/main/java/org/springframework/data/mapping/model/DefaultSpELExpressionEvaluator.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/model/FieldNamingStrategy.java b/src/main/java/org/springframework/data/mapping/model/FieldNamingStrategy.java index 4f6658699..ec083cbbd 100644 --- a/src/main/java/org/springframework/data/mapping/model/FieldNamingStrategy.java +++ b/src/main/java/org/springframework/data/mapping/model/FieldNamingStrategy.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/model/IdPropertyIdentifierAccessor.java b/src/main/java/org/springframework/data/mapping/model/IdPropertyIdentifierAccessor.java index a63ee3ce7..798b8189c 100644 --- a/src/main/java/org/springframework/data/mapping/model/IdPropertyIdentifierAccessor.java +++ b/src/main/java/org/springframework/data/mapping/model/IdPropertyIdentifierAccessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/model/MappingInstantiationException.java b/src/main/java/org/springframework/data/mapping/model/MappingInstantiationException.java index 37bbe9961..83fbd6da7 100644 --- a/src/main/java/org/springframework/data/mapping/model/MappingInstantiationException.java +++ b/src/main/java/org/springframework/data/mapping/model/MappingInstantiationException.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/model/MutablePersistentEntity.java b/src/main/java/org/springframework/data/mapping/model/MutablePersistentEntity.java index 1ac555206..9fbb5e9e8 100644 --- a/src/main/java/org/springframework/data/mapping/model/MutablePersistentEntity.java +++ b/src/main/java/org/springframework/data/mapping/model/MutablePersistentEntity.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original authors. + * Copyright 2011-2018 the original authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/org/springframework/data/mapping/model/ParameterValueProvider.java b/src/main/java/org/springframework/data/mapping/model/ParameterValueProvider.java index 333ce15fd..97827cf15 100644 --- a/src/main/java/org/springframework/data/mapping/model/ParameterValueProvider.java +++ b/src/main/java/org/springframework/data/mapping/model/ParameterValueProvider.java @@ -1,11 +1,11 @@ /* - * Copyright (c) 2011-2017 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, diff --git a/src/main/java/org/springframework/data/mapping/model/PersistentEntityParameterValueProvider.java b/src/main/java/org/springframework/data/mapping/model/PersistentEntityParameterValueProvider.java index c38e8d587..c6474cc78 100644 --- a/src/main/java/org/springframework/data/mapping/model/PersistentEntityParameterValueProvider.java +++ b/src/main/java/org/springframework/data/mapping/model/PersistentEntityParameterValueProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/model/PersistentPropertyAccessorFactory.java b/src/main/java/org/springframework/data/mapping/model/PersistentPropertyAccessorFactory.java index d28eeb38a..d7a75f6b1 100644 --- a/src/main/java/org/springframework/data/mapping/model/PersistentPropertyAccessorFactory.java +++ b/src/main/java/org/springframework/data/mapping/model/PersistentPropertyAccessorFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/model/PreferredConstructorDiscoverer.java b/src/main/java/org/springframework/data/mapping/model/PreferredConstructorDiscoverer.java index b03a41db0..10444c364 100644 --- a/src/main/java/org/springframework/data/mapping/model/PreferredConstructorDiscoverer.java +++ b/src/main/java/org/springframework/data/mapping/model/PreferredConstructorDiscoverer.java @@ -1,11 +1,11 @@ /* - * Copyright 2011-2017 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, diff --git a/src/main/java/org/springframework/data/mapping/model/Property.java b/src/main/java/org/springframework/data/mapping/model/Property.java index f8f7f6b74..ee8adc25c 100644 --- a/src/main/java/org/springframework/data/mapping/model/Property.java +++ b/src/main/java/org/springframework/data/mapping/model/Property.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -124,7 +124,7 @@ public class Property { /** * Returns whether the given {@link PropertyDescriptor} is supported in for standalone creation of a {@link Property} * instance. - * + * * @param descriptor * @return */ @@ -229,7 +229,7 @@ public class Property { /** * Maps the backing {@link Field} or {@link PropertyDescriptor} using the given {@link Function}. - * + * * @param function must not be {@literal null}. * @return */ @@ -239,7 +239,7 @@ public class Property { /** * Maps the backing {@link Field} or {@link PropertyDescriptor} using the given functions. - * + * * @param field must not be {@literal null}. * @param descriptor must not be {@literal null}. * @return diff --git a/src/main/java/org/springframework/data/mapping/model/PropertyNameFieldNamingStrategy.java b/src/main/java/org/springframework/data/mapping/model/PropertyNameFieldNamingStrategy.java index 9152762b4..ff77c3950 100644 --- a/src/main/java/org/springframework/data/mapping/model/PropertyNameFieldNamingStrategy.java +++ b/src/main/java/org/springframework/data/mapping/model/PropertyNameFieldNamingStrategy.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/model/PropertyValueProvider.java b/src/main/java/org/springframework/data/mapping/model/PropertyValueProvider.java index c4d4473ce..6c2c4aa76 100644 --- a/src/main/java/org/springframework/data/mapping/model/PropertyValueProvider.java +++ b/src/main/java/org/springframework/data/mapping/model/PropertyValueProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/main/java/org/springframework/data/mapping/model/SimpleTypeHolder.java b/src/main/java/org/springframework/data/mapping/model/SimpleTypeHolder.java index 648522951..00a2db896 100644 --- a/src/main/java/org/springframework/data/mapping/model/SimpleTypeHolder.java +++ b/src/main/java/org/springframework/data/mapping/model/SimpleTypeHolder.java @@ -1,11 +1,11 @@ /* - * Copyright 2011-2017 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, diff --git a/src/main/java/org/springframework/data/mapping/model/SnakeCaseFieldNamingStrategy.java b/src/main/java/org/springframework/data/mapping/model/SnakeCaseFieldNamingStrategy.java index 30b53a845..cd35cc7cf 100644 --- a/src/main/java/org/springframework/data/mapping/model/SnakeCaseFieldNamingStrategy.java +++ b/src/main/java/org/springframework/data/mapping/model/SnakeCaseFieldNamingStrategy.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2014 the original author or authors. + * Copyright 2013-2018 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. @@ -18,7 +18,7 @@ package org.springframework.data.mapping.model; /** * {@link FieldNamingStrategy} that translates typical camel case Java property names to lower case JSON element names, * separated by underscores. - * + * * @since 1.5 * @author Ryan Tenney * @author Oliver Gierke diff --git a/src/main/java/org/springframework/data/mapping/model/SpELContext.java b/src/main/java/org/springframework/data/mapping/model/SpELContext.java index 51e365510..84438f19b 100644 --- a/src/main/java/org/springframework/data/mapping/model/SpELContext.java +++ b/src/main/java/org/springframework/data/mapping/model/SpELContext.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -27,7 +27,7 @@ import org.springframework.util.Assert; /** * Simple factory to create {@link SpelExpressionParser} and {@link EvaluationContext} instances. - * + * * @author Oliver Gierke */ public class SpELContext { @@ -39,7 +39,7 @@ public class SpELContext { /** * Creates a new {@link SpELContext} with the given {@link PropertyAccessor}. Defaults the * {@link SpelExpressionParser}. - * + * * @param accessor */ public SpELContext(PropertyAccessor accessor) { @@ -49,7 +49,7 @@ public class SpELContext { /** * Creates a new {@link SpELContext} using the given {@link SpelExpressionParser} and {@link PropertyAccessor}. Will * default the {@link SpelExpressionParser} in case the given value for it is {@literal null}. - * + * * @param parser * @param accessor */ @@ -60,7 +60,7 @@ public class SpELContext { /** * Copy constructor to create a {@link SpELContext} using the given one's {@link PropertyAccessor} and * {@link SpelExpressionParser} as well as the given {@link BeanFactory}. - * + * * @param source * @param factory */ @@ -72,7 +72,7 @@ public class SpELContext { * Creates a new {@link SpELContext} using the given {@link SpelExpressionParser}, {@link PropertyAccessor} and * {@link BeanFactory}. Will default the {@link SpelExpressionParser} in case the given value for it is * {@literal null}. - * + * * @param accessor * @param parser * @param factory diff --git a/src/main/java/org/springframework/data/mapping/model/SpELExpressionEvaluator.java b/src/main/java/org/springframework/data/mapping/model/SpELExpressionEvaluator.java index 71e23636f..15eb9f15f 100644 --- a/src/main/java/org/springframework/data/mapping/model/SpELExpressionEvaluator.java +++ b/src/main/java/org/springframework/data/mapping/model/SpELExpressionEvaluator.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. @@ -19,14 +19,14 @@ import org.springframework.lang.Nullable; /** * SPI for components that can evaluate Spring EL expressions. - * + * * @author Oliver Gierke */ public interface SpELExpressionEvaluator { /** * Evaluates the given expression. - * + * * @param expression * @return */ diff --git a/src/main/java/org/springframework/data/mapping/model/SpELExpressionParameterValueProvider.java b/src/main/java/org/springframework/data/mapping/model/SpELExpressionParameterValueProvider.java index 3fe3b4685..57596dcbb 100644 --- a/src/main/java/org/springframework/data/mapping/model/SpELExpressionParameterValueProvider.java +++ b/src/main/java/org/springframework/data/mapping/model/SpELExpressionParameterValueProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/main/java/org/springframework/data/projection/Accessor.java b/src/main/java/org/springframework/data/projection/Accessor.java index 29f2a15d7..77ddefc23 100644 --- a/src/main/java/org/springframework/data/projection/Accessor.java +++ b/src/main/java/org/springframework/data/projection/Accessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -36,7 +36,7 @@ public final class Accessor { /** * Creates an {@link Accessor} for the given {@link Method}. - * + * * @param method must not be {@literal null}. * @throws IllegalArgumentException in case the given method is not an accessor method. */ @@ -56,7 +56,7 @@ public final class Accessor { /** * Returns whether the accessor is a getter. - * + * * @return */ public boolean isGetter() { @@ -65,7 +65,7 @@ public final class Accessor { /** * Returns whether the accessor is a setter. - * + * * @return */ public boolean isSetter() { @@ -74,7 +74,7 @@ public final class Accessor { /** * Returns the name of the property this accessor handles. - * + * * @return will never be {@literal null}. */ public String getPropertyName() { diff --git a/src/main/java/org/springframework/data/projection/DefaultMethodInvokingMethodInterceptor.java b/src/main/java/org/springframework/data/projection/DefaultMethodInvokingMethodInterceptor.java index 297419cb4..483f73ff5 100644 --- a/src/main/java/org/springframework/data/projection/DefaultMethodInvokingMethodInterceptor.java +++ b/src/main/java/org/springframework/data/projection/DefaultMethodInvokingMethodInterceptor.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. diff --git a/src/main/java/org/springframework/data/projection/DefaultProjectionInformation.java b/src/main/java/org/springframework/data/projection/DefaultProjectionInformation.java index 901ba2b7a..66786f99a 100644 --- a/src/main/java/org/springframework/data/projection/DefaultProjectionInformation.java +++ b/src/main/java/org/springframework/data/projection/DefaultProjectionInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. diff --git a/src/main/java/org/springframework/data/projection/MapAccessingMethodInterceptor.java b/src/main/java/org/springframework/data/projection/MapAccessingMethodInterceptor.java index fb8d6deb4..323837535 100644 --- a/src/main/java/org/springframework/data/projection/MapAccessingMethodInterceptor.java +++ b/src/main/java/org/springframework/data/projection/MapAccessingMethodInterceptor.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -29,7 +29,7 @@ import org.springframework.util.ReflectionUtils; /** * {@link MethodInterceptor} to support accessor methods to store and retrieve values from a {@link Map}. - * + * * @author Oliver Gierke * @since 1.10 */ diff --git a/src/main/java/org/springframework/data/projection/MethodInterceptorFactory.java b/src/main/java/org/springframework/data/projection/MethodInterceptorFactory.java index ec068ed4d..bc22ac0f5 100644 --- a/src/main/java/org/springframework/data/projection/MethodInterceptorFactory.java +++ b/src/main/java/org/springframework/data/projection/MethodInterceptorFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 the original author or authors. + * Copyright 2016-2018 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. @@ -21,7 +21,7 @@ import org.aopalliance.intercept.MethodInterceptor; * SPI to create {@link MethodInterceptor} instances based on the given source object and the target type to produce. To * be registered with a {@link ProxyProjectionFactory} to customize the way method executions on projection proxies are * handled. - * + * * @author Oliver Gierke * @see ProxyProjectionFactory * @soundtrack Henrik Freischlader Trio - Nobody Else To Blame (Openness) @@ -31,7 +31,7 @@ public interface MethodInterceptorFactory { /** * Returns the {@link MethodInterceptor} to be used for the given source object and target type. - * + * * @param source will never be {@literal null}. * @param targetType will never be {@literal null}. * @return @@ -41,7 +41,7 @@ public interface MethodInterceptorFactory { /** * Returns whether the current factory is supposed to be used to create a {@link MethodInterceptor} for proxy of the * given target type. - * + * * @param source will never be {@literal null}. * @param targetType will never be {@literal null}. * @return diff --git a/src/main/java/org/springframework/data/projection/ProjectingMethodInterceptor.java b/src/main/java/org/springframework/data/projection/ProjectingMethodInterceptor.java index 88914eb2e..8a0913b78 100644 --- a/src/main/java/org/springframework/data/projection/ProjectingMethodInterceptor.java +++ b/src/main/java/org/springframework/data/projection/ProjectingMethodInterceptor.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2016 the original author or authors. + * Copyright 2014-2018 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. @@ -42,7 +42,7 @@ import org.springframework.util.ObjectUtils; /** * {@link MethodInterceptor} to delegate the invocation to a different {@link MethodInterceptor} but creating a * projecting proxy in case the returned value is not of the return type of the invoked method. - * + * * @author Oliver Gierke * @since 1.10 */ @@ -53,7 +53,7 @@ class ProjectingMethodInterceptor implements MethodInterceptor { private final @NonNull MethodInterceptor delegate; private final @NonNull ConversionService conversionService; - /* + /* * (non-Javadoc) * @see org.aopalliance.intercept.MethodInterceptor#invoke(org.aopalliance.intercept.MethodInvocation) */ @@ -84,7 +84,7 @@ class ProjectingMethodInterceptor implements MethodInterceptor { /** * Creates projections of the given {@link Collection}'s elements if necessary and returns a new collection containing * the projection results. - * + * * @param sources must not be {@literal null}. * @param type must not be {@literal null}. * @return @@ -109,7 +109,7 @@ class ProjectingMethodInterceptor implements MethodInterceptor { /** * Creates projections of the given {@link Map}'s values if necessary and returns an new {@link Map} with the handled * values. - * + * * @param sources must not be {@literal null}. * @param type must not be {@literal null}. * @return @@ -134,7 +134,7 @@ class ProjectingMethodInterceptor implements MethodInterceptor { /** * Returns whether the source object needs to be converted to the given target type and whether we can convert it at * all. - * + * * @param source can be {@literal null}. * @param targetType must not be {@literal null}. * @return @@ -151,7 +151,7 @@ class ProjectingMethodInterceptor implements MethodInterceptor { /** * Turns the given value into a {@link Collection}. Will turn an array into a collection an wrap all other values into * a single-element collection. - * + * * @param source must not be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/projection/ProjectionFactory.java b/src/main/java/org/springframework/data/projection/ProjectionFactory.java index c03ea2612..2974e0975 100644 --- a/src/main/java/org/springframework/data/projection/ProjectionFactory.java +++ b/src/main/java/org/springframework/data/projection/ProjectionFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2016 the original author or authors. + * Copyright 2014-2018 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. @@ -20,7 +20,7 @@ import org.springframework.lang.Nullable; /** * A factory to create projecting instances for other objects usually used to allow easy creation of representation * projections to define which properties of a domain objects shall be exported in which way. - * + * * @author Oliver Gierke * @since 1.10 */ @@ -29,7 +29,7 @@ public interface ProjectionFactory { /** * Creates a projection of the given type for the given source object. The individual mapping strategy is defined by * the implementations. - * + * * @param projectionType the type to create, must not be {@literal null}. * @param source the object to create a projection for, must not be {@literal null}. * @return @@ -38,7 +38,7 @@ public interface ProjectionFactory { /** * Creates a projection to the given type for the given nullable source. - * + * * @param projectionType must not be {@literal null}. * @param source can be {@literal null}. * @return @@ -50,7 +50,7 @@ public interface ProjectionFactory { /** * Creates a projection instance for the given type. - * + * * @param projectionType the type to create, must not be {@literal null}. * @return */ @@ -58,7 +58,7 @@ public interface ProjectionFactory { /** * Returns the {@link ProjectionInformation} for the given projection type. - * + * * @param projectionType must not be {@literal null}. * @return * @since 1.12 diff --git a/src/main/java/org/springframework/data/projection/ProjectionInformation.java b/src/main/java/org/springframework/data/projection/ProjectionInformation.java index a98d27f4b..e66442984 100644 --- a/src/main/java/org/springframework/data/projection/ProjectionInformation.java +++ b/src/main/java/org/springframework/data/projection/ProjectionInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2015-2018 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. @@ -20,7 +20,7 @@ import java.util.List; /** * Information about a projection type. - * + * * @author Oliver Gierke * @since 1.12 */ @@ -28,14 +28,14 @@ public interface ProjectionInformation { /** * Returns the projection type. - * + * * @return will never be {@literal null}. */ Class getType(); /** * Returns the properties that will be consumed by the projection type. - * + * * @return will never be {@literal null}. */ List getInputProperties(); @@ -44,7 +44,7 @@ public interface ProjectionInformation { * Returns whether supplying values for the properties returned via {@link #getInputProperties()} is sufficient to * create a working proxy instance. This will usually be used to determine whether the projection uses any dynamically * resolved properties. - * + * * @return */ boolean isClosed(); diff --git a/src/main/java/org/springframework/data/projection/PropertyAccessingMethodInterceptor.java b/src/main/java/org/springframework/data/projection/PropertyAccessingMethodInterceptor.java index 11abdca17..0cd1a4b5f 100644 --- a/src/main/java/org/springframework/data/projection/PropertyAccessingMethodInterceptor.java +++ b/src/main/java/org/springframework/data/projection/PropertyAccessingMethodInterceptor.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2016 the original author or authors. + * Copyright 2014-2018 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. @@ -29,7 +29,7 @@ import org.springframework.util.ReflectionUtils; /** * Method interceptor to forward a delegation to bean property accessor methods to the property of a given target. - * + * * @author Oliver Gierke * @author Mark Paluch * @since 1.10 @@ -40,7 +40,7 @@ class PropertyAccessingMethodInterceptor implements MethodInterceptor { /** * Creates a new {@link PropertyAccessingMethodInterceptor} for the given target object. - * + * * @param target must not be {@literal null}. */ public PropertyAccessingMethodInterceptor(Object target) { @@ -49,7 +49,7 @@ class PropertyAccessingMethodInterceptor implements MethodInterceptor { this.target = new DirectFieldAccessFallbackBeanWrapper(target); } - /* + /* * (non-Javadoc) * @see org.aopalliance.intercept.MethodInterceptor#invoke(org.aopalliance.intercept.MethodInvocation) */ diff --git a/src/main/java/org/springframework/data/projection/ProxyProjectionFactory.java b/src/main/java/org/springframework/data/projection/ProxyProjectionFactory.java index cd78e1253..efe95a330 100644 --- a/src/main/java/org/springframework/data/projection/ProxyProjectionFactory.java +++ b/src/main/java/org/springframework/data/projection/ProxyProjectionFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -38,7 +38,7 @@ import org.springframework.util.ConcurrentReferenceHashMap; * default accessor methods are supported. In case the delegating lookups result in an object of different type that the * projection interface method's return type, another projection will be created to transparently mitigate between the * types. - * + * * @author Oliver Gierke * @author Christoph Strobl * @see SpelAwareProxyProjectionFactory @@ -63,7 +63,7 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware this.conversionService = new DefaultConversionService(); } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.BeanClassLoaderAware#setBeanClassLoader(java.lang.ClassLoader) */ @@ -75,7 +75,7 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware /** * Registers the given {@link MethodInterceptorFactory} to be used with the factory. Factories registered later enjoy * precedence over previously registered ones. - * + * * @param factory must not be {@literal null}. * @since 1.13 */ @@ -86,7 +86,7 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware this.factories.add(0, factory); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.projection.ProjectionFactory#createProjection(java.lang.Object, java.lang.Class) */ @@ -114,7 +114,7 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware return (T) factory.getProxy(classLoader == null ? ClassUtils.getDefaultClassLoader() : classLoader); } - /* + /* * (non-Javadoc) * @see org.springframework.data.projection.ProjectionFactory#createProjection(java.lang.Class) */ @@ -126,7 +126,7 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware return createProjection(projectionType, new HashMap()); } - /* + /* * (non-Javadoc) * @see org.springframework.data.projection.ProjectionFactory#getProjectionInformation(java.lang.Class) */ @@ -139,7 +139,7 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware /** * Post-process the given {@link MethodInterceptor} for the given source instance and projection type. Default * implementation will simply return the given interceptor. - * + * * @param interceptor will never be {@literal null}. * @param source will never be {@literal null}. * @param projectionType will never be {@literal null}. @@ -152,7 +152,7 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware /** * Creates a fresh, cacheable {@link ProjectionInformation} instance for the given projection type. - * + * * @param projectionType must not be {@literal null}. * @return */ @@ -162,7 +162,7 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware /** * Returns the {@link MethodInterceptor} to add to the proxy. - * + * * @param source must not be {@literal null}. * @param projectionType must not be {@literal null}. * @return @@ -178,7 +178,7 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware /** * Returns the {@link MethodInterceptorFactory} to be used with the given source object and target type. - * + * * @param source must not be {@literal null}. * @param projectionType must not be {@literal null}. * @return @@ -197,7 +197,7 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware /** * Custom {@link MethodInterceptor} to expose the proxy target class even if we set * {@link ProxyFactory#setOpaque(boolean)} to true to prevent properties on {@link Advised} to be rendered. - * + * * @author Oliver Gierke */ private static class TargetAwareMethodInterceptor implements MethodInterceptor { @@ -218,7 +218,7 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware /** * Creates a new {@link TargetAwareMethodInterceptor} with the given target class. - * + * * @param targetType must not be {@literal null}. */ public TargetAwareMethodInterceptor(Class targetType) { @@ -227,7 +227,7 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware this.targetType = targetType; } - /* + /* * (non-Javadoc) * @see org.aopalliance.intercept.MethodInterceptor#invoke(org.aopalliance.intercept.MethodInvocation) */ @@ -247,7 +247,7 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware /** * {@link MethodInterceptorFactory} handling {@link Map}s as target objects. - * + * * @author Oliver Gierke */ private static enum MapAccessingMethodInterceptorFactory implements MethodInterceptorFactory { @@ -283,7 +283,7 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware INSTANCE; - /* + /* * (non-Javadoc) * @see org.springframework.data.projection.MethodInterceptorFactory#createMethodInterceptor(java.lang.Object, java.lang.Class) */ @@ -292,7 +292,7 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware return new PropertyAccessingMethodInterceptor(source); } - /* + /* * (non-Javadoc) * @see org.springframework.data.projection.MethodInterceptorFactory#supports(java.lang.Object, java.lang.Class) */ diff --git a/src/main/java/org/springframework/data/projection/SpelAwareProxyProjectionFactory.java b/src/main/java/org/springframework/data/projection/SpelAwareProxyProjectionFactory.java index 449a6a0ed..1567f3a44 100644 --- a/src/main/java/org/springframework/data/projection/SpelAwareProxyProjectionFactory.java +++ b/src/main/java/org/springframework/data/projection/SpelAwareProxyProjectionFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -35,7 +35,7 @@ import org.springframework.util.ReflectionUtils; /** * A {@link ProxyProjectionFactory} that adds support to use {@link Value}-annotated methods on a projection interface * to evaluate the contained SpEL expression to define the outcome of the method call. - * + * * @author Oliver Gierke * @author Thomas Darimont * @author Mark Paluch @@ -49,7 +49,7 @@ public class SpelAwareProxyProjectionFactory extends ProxyProjectionFactory impl private @Nullable BeanFactory beanFactory; - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.BeanFactoryAware#setBeanFactory(org.springframework.beans.factory.BeanFactory) */ @@ -70,7 +70,7 @@ public class SpelAwareProxyProjectionFactory extends ProxyProjectionFactory impl /** * Inspects the given target type for methods with {@link Value} annotations and caches the result. Will create a * {@link SpelEvaluatingMethodInterceptor} if an annotation was found or return the delegate as is if not. - * + * * @param interceptor the root {@link MethodInterceptor}. * @param source The backing source object. * @param projectionType the proxy target type. @@ -87,7 +87,7 @@ public class SpelAwareProxyProjectionFactory extends ProxyProjectionFactory impl /** * Returns whether the given type as a method annotated with {@link Value}. - * + * * @param type must not be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/projection/SpelEvaluatingMethodInterceptor.java b/src/main/java/org/springframework/data/projection/SpelEvaluatingMethodInterceptor.java index 4feddee13..85fd6c193 100644 --- a/src/main/java/org/springframework/data/projection/SpelEvaluatingMethodInterceptor.java +++ b/src/main/java/org/springframework/data/projection/SpelEvaluatingMethodInterceptor.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -39,7 +39,7 @@ import org.springframework.util.StringUtils; /** * {@link MethodInterceptor} to invoke a SpEL expression to compute the method result. Will forward the resolution to a * delegate {@link MethodInterceptor} if no {@link Value} annotation is found. - * + * * @author Oliver Gierke * @author Thomas Darimont * @author Christoph Strobl @@ -58,7 +58,7 @@ class SpelEvaluatingMethodInterceptor implements MethodInterceptor { * Creates a new {@link SpelEvaluatingMethodInterceptor} delegating to the given {@link MethodInterceptor} as fallback * and exposing the given target object via {@code target} to the SpEl expressions. If a {@link BeanFactory} is given, * bean references in SpEl expressions can be resolved as well. - * + * * @param delegate must not be {@literal null}. * @param target must not be {@literal null}. * @param beanFactory can be {@literal null}. @@ -94,7 +94,7 @@ class SpelEvaluatingMethodInterceptor implements MethodInterceptor { * Eagerly parses {@link Expression} defined on {@link Value} annotations. Returns a map with * {@code method.hashCode()} as key and the parsed {@link Expression} or an {@link Collections#emptyMap()} if no * {@code Expressions} were found. - * + * * @param parser must not be {@literal null}. * @param targetInterface must not be {@literal null}. * @return @@ -122,7 +122,7 @@ class SpelEvaluatingMethodInterceptor implements MethodInterceptor { return Collections.unmodifiableMap(expressions); } - /* + /* * (non-Javadoc) * @see org.aopalliance.intercept.MethodInterceptor#invoke(org.aopalliance.intercept.MethodInvocation) */ @@ -141,7 +141,7 @@ class SpelEvaluatingMethodInterceptor implements MethodInterceptor { /** * Wrapper class to expose an object to the SpEL expression as {@code target}. - * + * * @author Oliver Gierke */ @lombok.Value(staticConstructor = "of") diff --git a/src/main/java/org/springframework/data/projection/TargetAware.java b/src/main/java/org/springframework/data/projection/TargetAware.java index 4318ff9d4..829392646 100644 --- a/src/main/java/org/springframework/data/projection/TargetAware.java +++ b/src/main/java/org/springframework/data/projection/TargetAware.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2016 the original author or authors. + * Copyright 2015-2018 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. @@ -23,14 +23,14 @@ import com.fasterxml.jackson.annotation.JsonIgnore; /** * Extension of {@link org.springframework.aop.TargetClassAware} to be able to ignore the getter on JSON rendering. - * + * * @author Oliver Gierke */ public interface TargetAware extends org.springframework.aop.TargetClassAware, RawTargetAccess { /** * Returns the type of the proxy target. - * + * * @return can be {@literal null}. */ @Nullable @@ -39,7 +39,7 @@ public interface TargetAware extends org.springframework.aop.TargetClassAware, R /** * Returns the proxy target. - * + * * @return will never be {@literal null}. */ @JsonIgnore @@ -48,7 +48,7 @@ public interface TargetAware extends org.springframework.aop.TargetClassAware, R /** * Re-declaration of Spring Framework 4.3's {@link DecoratingProxy#getDecoratedClass()} so that we can exclude it from * Jackson serialization. - * + * * @return */ @JsonIgnore diff --git a/src/main/java/org/springframework/data/querydsl/EntityPathResolver.java b/src/main/java/org/springframework/data/querydsl/EntityPathResolver.java index 283d99c9a..64752c778 100644 --- a/src/main/java/org/springframework/data/querydsl/EntityPathResolver.java +++ b/src/main/java/org/springframework/data/querydsl/EntityPathResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2015 the original author or authors. + * Copyright 2011-2018 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. @@ -19,7 +19,7 @@ import com.querydsl.core.types.EntityPath; /** * Strategy interface to abstract the ways to translate an plain domain class into a {@link EntityPath}. - * + * * @author Oliver Gierke */ public interface EntityPathResolver { diff --git a/src/main/java/org/springframework/data/querydsl/QPageRequest.java b/src/main/java/org/springframework/data/querydsl/QPageRequest.java index bb9f4ee6f..2d4832fe4 100644 --- a/src/main/java/org/springframework/data/querydsl/QPageRequest.java +++ b/src/main/java/org/springframework/data/querydsl/QPageRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2015 the original author or authors. + * Copyright 2013-2018 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. @@ -23,7 +23,7 @@ import com.querydsl.core.types.OrderSpecifier; /** * Basic Java Bean implementation of {@link Pageable} with support for QueryDSL. - * + * * @author Thomas Darimont */ public class QPageRequest extends AbstractPageRequest { @@ -35,7 +35,7 @@ public class QPageRequest extends AbstractPageRequest { /** * Creates a new {@link QPageRequest}. Pages are zero indexed, thus providing 0 for {@code page} will return the first * page. - * + * * @param page * @param size */ @@ -45,7 +45,7 @@ public class QPageRequest extends AbstractPageRequest { /** * Creates a new {@link QPageRequest} with the given {@link OrderSpecifier}s applied. - * + * * @param page * @param size * @param orderSpecifiers must not be {@literal null} or empty; @@ -56,7 +56,7 @@ public class QPageRequest extends AbstractPageRequest { /** * Creates a new {@link QPageRequest} with sort parameters applied. - * + * * @param page * @param size * @param sort @@ -67,7 +67,7 @@ public class QPageRequest extends AbstractPageRequest { this.sort = sort; } - /* + /* * (non-Javadoc) * @see org.springframework.data.domain.Pageable#getSort() */ @@ -76,7 +76,7 @@ public class QPageRequest extends AbstractPageRequest { return sort; } - /* + /* * (non-Javadoc) * @see org.springframework.data.domain.AbstractPageRequest#next() */ @@ -85,7 +85,7 @@ public class QPageRequest extends AbstractPageRequest { return new QPageRequest(getPageNumber() + 1, getPageSize(), sort); } - /* + /* * (non-Javadoc) * @see org.springframework.data.domain.AbstractPageRequest#previous() */ @@ -94,7 +94,7 @@ public class QPageRequest extends AbstractPageRequest { return new QPageRequest(getPageNumber() - 1, getPageSize(), sort); } - /* + /* * (non-Javadoc) * @see org.springframework.data.domain.AbstractPageRequest#first() */ diff --git a/src/main/java/org/springframework/data/querydsl/QSort.java b/src/main/java/org/springframework/data/querydsl/QSort.java index d49758be7..c959b7bc0 100644 --- a/src/main/java/org/springframework/data/querydsl/QSort.java +++ b/src/main/java/org/springframework/data/querydsl/QSort.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -30,7 +30,7 @@ import com.querydsl.core.types.Path; /** * Sort option for queries that wraps a Querydsl {@link OrderSpecifier}. - * + * * @author Thomas Darimont * @author Christoph Strobl * @author Mark Paluch @@ -44,7 +44,7 @@ public class QSort extends Sort implements Serializable { /** * Creates a new {@link QSort} instance with the given {@link OrderSpecifier}s. - * + * * @param orderSpecifiers must not be {@literal null} . */ public QSort(OrderSpecifier... orderSpecifiers) { @@ -53,7 +53,7 @@ public class QSort extends Sort implements Serializable { /** * Creates a new {@link QSort} instance with the given {@link OrderSpecifier}s. - * + * * @param orderSpecifiers must not be {@literal null}. */ @SuppressWarnings("deprecation") @@ -74,7 +74,7 @@ public class QSort extends Sort implements Serializable { /** * Converts the given {@link OrderSpecifier}s into a list of {@link Order}s. - * + * * @param orderSpecifiers must not be {@literal null} or empty. * @return */ @@ -87,7 +87,7 @@ public class QSort extends Sort implements Serializable { /** * Converts the given {@link OrderSpecifier} into an {@link Order}. - * + * * @param orderSpecifier must not be {@literal null}. * @return */ @@ -114,7 +114,7 @@ public class QSort extends Sort implements Serializable { /** * Returns a new {@link QSort} consisting of the {@link OrderSpecifier}s of the current {@code QSort} combined with * the ones from the given {@code QSort}. - * + * * @param sort can be {@literal null}. * @return */ @@ -125,7 +125,7 @@ public class QSort extends Sort implements Serializable { /** * Returns a new {@link QSort} consisting of the {@link OrderSpecifier}s of the current {@link QSort} combined with * the given ones. - * + * * @param orderSpecifiers must not be {@literal null} or empty. * @return */ @@ -142,7 +142,7 @@ public class QSort extends Sort implements Serializable { /** * Returns a new {@link QSort} consisting of the {@link OrderSpecifier}s of the current {@link QSort} combined with * the given ones. - * + * * @param orderSpecifiers must not be {@literal null} or empty. * @return */ @@ -154,7 +154,7 @@ public class QSort extends Sort implements Serializable { /** * Recursively creates a dot-separated path for the property path. - * + * * @param path must not be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/querydsl/QuerydslPredicateExecutor.java b/src/main/java/org/springframework/data/querydsl/QuerydslPredicateExecutor.java index 37fccf7a4..989644396 100644 --- a/src/main/java/org/springframework/data/querydsl/QuerydslPredicateExecutor.java +++ b/src/main/java/org/springframework/data/querydsl/QuerydslPredicateExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/querydsl/QuerydslRepositoryInvokerAdapter.java b/src/main/java/org/springframework/data/querydsl/QuerydslRepositoryInvokerAdapter.java index f6d2c800a..1d9da0386 100644 --- a/src/main/java/org/springframework/data/querydsl/QuerydslRepositoryInvokerAdapter.java +++ b/src/main/java/org/springframework/data/querydsl/QuerydslRepositoryInvokerAdapter.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2015-2018 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. @@ -29,7 +29,7 @@ import com.querydsl.core.types.Predicate; /** * {@link RepositoryInvoker} that is aware of a {@link QuerydslPredicateExecutor} and {@link Predicate} to be executed * for all flavors of {@code findAll(…)}. All other calls are forwarded to the configured delegate. - * + * * @author Oliver Gierke */ public class QuerydslRepositoryInvokerAdapter implements RepositoryInvoker { @@ -41,7 +41,7 @@ public class QuerydslRepositoryInvokerAdapter implements RepositoryInvoker { /** * Creates a new {@link QuerydslRepositoryInvokerAdapter} for the given delegate {@link RepositoryInvoker}, * {@link QuerydslPredicateExecutor} and Querydsl {@link Predicate}. - * + * * @param delegate must not be {@literal null}. * @param executor must not be {@literal null}. * @param predicate can be {@literal null}. @@ -75,7 +75,7 @@ public class QuerydslRepositoryInvokerAdapter implements RepositoryInvoker { return executor.findAll(predicate, sort); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.support.RepositoryInvocationInformation#hasDeleteMethod() */ @@ -84,7 +84,7 @@ public class QuerydslRepositoryInvokerAdapter implements RepositoryInvoker { return delegate.hasDeleteMethod(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.support.RepositoryInvocationInformation#hasFindAllMethod() */ @@ -93,7 +93,7 @@ public class QuerydslRepositoryInvokerAdapter implements RepositoryInvoker { return delegate.hasFindAllMethod(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.support.RepositoryInvocationInformation#hasFindOneMethod() */ @@ -102,7 +102,7 @@ public class QuerydslRepositoryInvokerAdapter implements RepositoryInvoker { return delegate.hasFindOneMethod(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.support.RepositoryInvocationInformation#hasSaveMethod() */ @@ -139,7 +139,7 @@ public class QuerydslRepositoryInvokerAdapter implements RepositoryInvoker { return delegate.invokeQueryMethod(method, parameters, pageable, sort); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.support.RepositoryInvoker#invokeSave(java.lang.Object) */ diff --git a/src/main/java/org/springframework/data/querydsl/QuerydslUtils.java b/src/main/java/org/springframework/data/querydsl/QuerydslUtils.java index 41a533ac5..ecb7e1632 100644 --- a/src/main/java/org/springframework/data/querydsl/QuerydslUtils.java +++ b/src/main/java/org/springframework/data/querydsl/QuerydslUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2016 the original author or authors. + * Copyright 2011-2018 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. @@ -26,7 +26,7 @@ import com.querydsl.core.types.PathType; /** * Utility class for Querydsl. - * + * * @author Oliver Gierke */ @UtilityClass @@ -37,7 +37,7 @@ public class QuerydslUtils { /** * Returns the property path for the given {@link Path}. - * + * * @param path can be {@literal null}. * @return */ @@ -48,7 +48,7 @@ public class QuerydslUtils { /** * Recursively builds up the dot path for the given {@link Path} instance by walking up the individual segments until * the root. - * + * * @param path can be {@literal null}. * @param tail must not be {@literal null}. * @return diff --git a/src/main/java/org/springframework/data/querydsl/SimpleEntityPathResolver.java b/src/main/java/org/springframework/data/querydsl/SimpleEntityPathResolver.java index 87a854e29..1cfdc6a01 100644 --- a/src/main/java/org/springframework/data/querydsl/SimpleEntityPathResolver.java +++ b/src/main/java/org/springframework/data/querydsl/SimpleEntityPathResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2015 the original author or authors. + * Copyright 2011-2018 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. @@ -27,7 +27,7 @@ import com.querydsl.core.types.EntityPath; /** * Simple implementation of {@link EntityPathResolver} to lookup a query class by reflection and using the static field * of the same type. - * + * * @author Oliver Gierke */ public enum SimpleEntityPathResolver implements EntityPathResolver { @@ -41,7 +41,7 @@ public enum SimpleEntityPathResolver implements EntityPathResolver { * Creates an {@link EntityPath} instance for the given domain class. Tries to lookup a class matching the naming * convention (prepend Q to the simple name of the class, same package) and find a static field of the same type in * it. - * + * * @param domainClass * @return */ @@ -66,7 +66,7 @@ public enum SimpleEntityPathResolver implements EntityPathResolver { /** * Returns the first static field of the given type inside the given type. - * + * * @param type * @return */ @@ -88,7 +88,7 @@ public enum SimpleEntityPathResolver implements EntityPathResolver { /** * Returns the name of the query class for the given domain class. - * + * * @param domainClass * @return */ @@ -101,7 +101,7 @@ public enum SimpleEntityPathResolver implements EntityPathResolver { /** * Analyzes the short class name and potentially returns the outer class. - * + * * @param shortName * @return */ diff --git a/src/main/java/org/springframework/data/querydsl/binding/MultiValueBinding.java b/src/main/java/org/springframework/data/querydsl/binding/MultiValueBinding.java index 0e49f463c..a51dbea76 100644 --- a/src/main/java/org/springframework/data/querydsl/binding/MultiValueBinding.java +++ b/src/main/java/org/springframework/data/querydsl/binding/MultiValueBinding.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2015-2018 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. @@ -24,7 +24,7 @@ import com.querydsl.core.types.Predicate; /** * {@link MultiValueBinding} creates a {@link Predicate} out of given {@link Path} and collection value. Used for * specific parameter treatment in {@link QuerydslBindings}. - * + * * @author Oliver Gierke * @since 1.11 */ @@ -35,7 +35,7 @@ public interface MultiValueBinding, S> { * Returns the predicate to be applied to the given {@link Path} for the given collection value, which will contain * all values submitted for the path bind. If a single value was provided only the collection will consist of exactly * one element. - * + * * @param path {@link Path} to the property. Will not be {@literal null}. * @param value the value that should be bound. Will not be {@literal null} or empty. * @return can be {@literal null}, in which case the binding will not be incorporated in the overall diff --git a/src/main/java/org/springframework/data/querydsl/binding/OptionalValueBinding.java b/src/main/java/org/springframework/data/querydsl/binding/OptionalValueBinding.java index d13f8a5c2..750e20ce3 100644 --- a/src/main/java/org/springframework/data/querydsl/binding/OptionalValueBinding.java +++ b/src/main/java/org/springframework/data/querydsl/binding/OptionalValueBinding.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2015-2018 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. @@ -23,7 +23,7 @@ import com.querydsl.core.types.Predicate; /** * {@link OptionalValueBinding} creates a {@link Predicate} out of given {@link Path} and value. Used for specific * parameter treatment in {@link QuerydslBindings}. - * + * * @author Christoph Strobl * @author Oliver Gierke * @since 1.11 @@ -34,7 +34,7 @@ public interface OptionalValueBinding, S> { /** * Returns the predicate to be applied to the given {@link Path} for the given value. The given value will be the * first the first one provided for the given path and converted into the expected type. - * + * * @param path {@link Path} to the property. Will not be {@literal null}. * @param value the value that should be bound. Will not be {@literal null}. * @return can be {@literal null}, in which case the binding will not be incorporated in the overall {@link Predicate} diff --git a/src/main/java/org/springframework/data/querydsl/binding/PathInformation.java b/src/main/java/org/springframework/data/querydsl/binding/PathInformation.java index 64ba175db..2d12aa25b 100644 --- a/src/main/java/org/springframework/data/querydsl/binding/PathInformation.java +++ b/src/main/java/org/springframework/data/querydsl/binding/PathInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 the original author or authors. + * Copyright 2016-2018 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. @@ -25,7 +25,7 @@ import com.querydsl.core.types.Path; /** * Internal abstraction of mapped paths. - * + * * @author Oliver Gierke * @since 1.13 */ @@ -33,28 +33,28 @@ interface PathInformation { /** * The type of the leaf property. - * + * * @return */ Class getLeafType(); /** * The type of the leaf property's parent type. - * + * * @return */ Class getLeafParentType(); /** * The name of the leaf property. - * + * * @return */ String getLeafProperty(); /** * The {@link PropertyDescriptor} for the leaf property. - * + * * @return */ @Nullable @@ -62,14 +62,14 @@ interface PathInformation { /** * The dot separated representation of the current path. - * + * * @return */ String toDotPath(); /** * Tries to reify a Querydsl {@link Path} from the given {@link PropertyPath} and base. - * + * * @param path must not be {@literal null}. * @param base can be {@literal null}. * @return diff --git a/src/main/java/org/springframework/data/querydsl/binding/PropertyPathInformation.java b/src/main/java/org/springframework/data/querydsl/binding/PropertyPathInformation.java index f1410f22c..e71b05a76 100644 --- a/src/main/java/org/springframework/data/querydsl/binding/PropertyPathInformation.java +++ b/src/main/java/org/springframework/data/querydsl/binding/PropertyPathInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -36,7 +36,7 @@ import com.querydsl.core.types.dsl.CollectionPathBase; /** * {@link PropertyPath} based implementation of {@link PathInformation}. - * + * * @author Oliver Gierke * @author Christoph Strobl * @since 1.13 @@ -50,7 +50,7 @@ class PropertyPathInformation implements PathInformation { /** * Creates a new {@link PropertyPathInformation} for the given path and type. - * + * * @param path must not be {@literal null} or empty. * @param type must not be {@literal null}. * @return @@ -61,7 +61,7 @@ class PropertyPathInformation implements PathInformation { /** * Creates a new {@link PropertyPathInformation} for the given path and {@link TypeInformation}. - * + * * @param path must not be {@literal null} or empty. * @param type must not be {@literal null}. * @return diff --git a/src/main/java/org/springframework/data/querydsl/binding/QuerydslBinderCustomizer.java b/src/main/java/org/springframework/data/querydsl/binding/QuerydslBinderCustomizer.java index bec468fb8..1f6f8420c 100644 --- a/src/main/java/org/springframework/data/querydsl/binding/QuerydslBinderCustomizer.java +++ b/src/main/java/org/springframework/data/querydsl/binding/QuerydslBinderCustomizer.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2015-2018 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. @@ -19,7 +19,7 @@ import com.querydsl.core.types.EntityPath; /** * A component that will customize {@link QuerydslBindings} for the given entity path. - * + * * @author Oliver Gierke * @since 1.11 */ @@ -27,7 +27,7 @@ public interface QuerydslBinderCustomizer> { /** * Customize the {@link QuerydslBindings} for the given root. - * + * * @param bindings the {@link QuerydslBindings} to customize, will never be {@literal null}. * @param root the entity root, will never be {@literal null}. */ diff --git a/src/main/java/org/springframework/data/querydsl/binding/QuerydslBindings.java b/src/main/java/org/springframework/data/querydsl/binding/QuerydslBindings.java index 69ce6d8b9..136c40542 100644 --- a/src/main/java/org/springframework/data/querydsl/binding/QuerydslBindings.java +++ b/src/main/java/org/springframework/data/querydsl/binding/QuerydslBindings.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -235,7 +235,7 @@ public class QuerydslBindings { /** * Returns the {@link PathInformation} for the given path and {@link TypeInformation}. - * + * * @param path must not be {@literal null}. * @param type must not be {@literal null}. * @return diff --git a/src/main/java/org/springframework/data/querydsl/binding/QuerydslBindingsFactory.java b/src/main/java/org/springframework/data/querydsl/binding/QuerydslBindingsFactory.java index 244fdbb04..f24a4e30d 100644 --- a/src/main/java/org/springframework/data/querydsl/binding/QuerydslBindingsFactory.java +++ b/src/main/java/org/springframework/data/querydsl/binding/QuerydslBindingsFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -34,7 +34,7 @@ import com.querydsl.core.types.EntityPath; /** * Factory to create {@link QuerydslBindings} using an {@link EntityPathResolver}. - * + * * @author Oliver Gierke * @author Christoph Strobl * @since 1.11 @@ -51,7 +51,7 @@ public class QuerydslBindingsFactory implements ApplicationContextAware { /** * Creates a new {@link QuerydslBindingsFactory} using the given {@link EntityPathResolver}. - * + * * @param entityPathResolver must not be {@literal null}. */ public QuerydslBindingsFactory(EntityPathResolver entityPathResolver) { @@ -64,7 +64,7 @@ public class QuerydslBindingsFactory implements ApplicationContextAware { this.repositories = Optional.empty(); } - /* + /* * (non-Javadoc) * @see org.springframework.context.ApplicationContextAware#setApplicationContext(org.springframework.context.ApplicationContext) */ @@ -77,7 +77,7 @@ public class QuerydslBindingsFactory implements ApplicationContextAware { /** * Returns the {@link EntityPathResolver} used by the factory. - * + * * @return the entityPathResolver */ public EntityPathResolver getEntityPathResolver() { @@ -87,7 +87,7 @@ public class QuerydslBindingsFactory implements ApplicationContextAware { /** * Creates the {@link QuerydslBindings} to be used using for the given domain type. A {@link QuerydslBinderCustomizer} * will be auto-detected. - * + * * @param domainType must not be {@literal null}. * @return will never be {@literal null}. */ @@ -98,7 +98,7 @@ public class QuerydslBindingsFactory implements ApplicationContextAware { /** * Creates the {@link QuerydslBindings} to be used using for the given domain type and a pre-defined * {@link QuerydslBinderCustomizer}. - * + * * @param domainType must not be {@literal null}. * @param customizer the {@link QuerydslBinderCustomizer} to use, must not be {@literal null}. * @return will never be {@literal null}. @@ -111,7 +111,7 @@ public class QuerydslBindingsFactory implements ApplicationContextAware { /** * Creates the {@link QuerydslBindings} to be used using for the given domain type and a pre-defined * {@link QuerydslBinderCustomizer}. If no customizer is given, auto-detection will be applied. - * + * * @param domainType must not be {@literal null}. * @param customizer the {@link QuerydslBinderCustomizer} to use. If an empty {@link Optional} is given customizer * detection for the given domain type will be applied. @@ -134,7 +134,7 @@ public class QuerydslBindingsFactory implements ApplicationContextAware { /** * Tries to detect a Querydsl query type for the given domain type candidate via the configured * {@link EntityPathResolver}. - * + * * @param candidate must not be {@literal null}. * @throws IllegalStateException to indicate the query type can't be found and manual configuration is necessary. */ @@ -154,7 +154,7 @@ public class QuerydslBindingsFactory implements ApplicationContextAware { /** * Obtains the {@link QuerydslBinderCustomizer} for the given domain type. Will inspect the given annotation for a * dedicatedly configured one or consider the domain types's repository. - * + * * @param annotation * @param domainType * @return @@ -176,7 +176,7 @@ public class QuerydslBindingsFactory implements ApplicationContextAware { * {@link org.springframework.beans.factory.BeanFactory} first or fall back to create a fresh instance through the * {@link org.springframework.beans.factory.BeanFactory} or finally falling back to a plain instantiation if no * {@link org.springframework.beans.factory.BeanFactory} is present. - * + * * @param type must not be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/querydsl/binding/QuerydslDefaultBinding.java b/src/main/java/org/springframework/data/querydsl/binding/QuerydslDefaultBinding.java index 51364d57f..4d455bbcb 100644 --- a/src/main/java/org/springframework/data/querydsl/binding/QuerydslDefaultBinding.java +++ b/src/main/java/org/springframework/data/querydsl/binding/QuerydslDefaultBinding.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2015-2018 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. @@ -34,7 +34,7 @@ import com.querydsl.core.types.dsl.SimpleExpression; *

  • {@link java.lang.Object} as {@link SimpleExpression#contains()} on collection properties.
  • *
  • {@link java.util.Collection} as {@link SimpleExpression#in()} on simple properties.
  • * - * + * * @author Christoph Strobl * @author Oliver Gierke * @since 1.11 diff --git a/src/main/java/org/springframework/data/querydsl/binding/QuerydslPathInformation.java b/src/main/java/org/springframework/data/querydsl/binding/QuerydslPathInformation.java index 165706c3b..11bf68a72 100644 --- a/src/main/java/org/springframework/data/querydsl/binding/QuerydslPathInformation.java +++ b/src/main/java/org/springframework/data/querydsl/binding/QuerydslPathInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 the original author or authors. + * Copyright 2016-2018 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. @@ -30,7 +30,7 @@ import com.querydsl.core.types.Path; /** * {@link PathInformation} based on a Querydsl {@link Path}. - * + * * @author Oliver Gierke * @since 1.13 */ @@ -41,7 +41,7 @@ class QuerydslPathInformation implements PathInformation { private final Path path; - /* + /* * (non-Javadoc) * @see org.springframework.data.querydsl.binding.MappedPath#getLeafType() */ @@ -50,7 +50,7 @@ class QuerydslPathInformation implements PathInformation { return path.getType(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.querydsl.binding.MappedPath#getLeafParentType() */ @@ -66,7 +66,7 @@ class QuerydslPathInformation implements PathInformation { return parent.getType(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.querydsl.binding.MappedPath#getLeafProperty() */ @@ -75,7 +75,7 @@ class QuerydslPathInformation implements PathInformation { return path.getMetadata().getElement().toString(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.querydsl.binding.MappedPath#getLeafPropertyDescriptor() */ @@ -85,7 +85,7 @@ class QuerydslPathInformation implements PathInformation { return BeanUtils.getPropertyDescriptor(getLeafParentType(), getLeafProperty()); } - /* + /* * (non-Javadoc) * @see org.springframework.data.querydsl.binding.MappedPath#toDotPath() */ @@ -94,7 +94,7 @@ class QuerydslPathInformation implements PathInformation { return QuerydslUtils.toDotPath(path); } - /* + /* * (non-Javadoc) * @see org.springframework.data.querydsl.binding.PathInformation#reifyPath(org.springframework.data.querydsl.EntityPathResolver) */ diff --git a/src/main/java/org/springframework/data/querydsl/binding/QuerydslPredicate.java b/src/main/java/org/springframework/data/querydsl/binding/QuerydslPredicate.java index 8791d3348..7f203146e 100644 --- a/src/main/java/org/springframework/data/querydsl/binding/QuerydslPredicate.java +++ b/src/main/java/org/springframework/data/querydsl/binding/QuerydslPredicate.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2015-2018 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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * Annotation to customize the binding of HTTP request parameters to a Querydsl {@link com.mysema.query.types.Predicate} * in Spring MVC handler methods. - * + * * @author Christoph Strobl * @author Oliver Gierke * @since 1.11 @@ -35,7 +35,7 @@ public @interface QuerydslPredicate { /** * The root type to create the {@link com.mysema.query.types.Predicate}. Specify this explicitly if the type is not * contained in the controller method's return type. - * + * * @return */ Class root() default Object.class; @@ -45,7 +45,7 @@ public @interface QuerydslPredicate { * {@link QuerydslBinderCustomizer} can be specified here. We'll try to obtain a Spring bean of this type but fall * back to a plain instantiation if no bean is found in the current * {@link org.springframework.beans.factory.BeanFactory}. - * + * * @return */ @SuppressWarnings("rawtypes") diff --git a/src/main/java/org/springframework/data/querydsl/binding/QuerydslPredicateBuilder.java b/src/main/java/org/springframework/data/querydsl/binding/QuerydslPredicateBuilder.java index 6c4f238a4..a01e4f705 100644 --- a/src/main/java/org/springframework/data/querydsl/binding/QuerydslPredicateBuilder.java +++ b/src/main/java/org/springframework/data/querydsl/binding/QuerydslPredicateBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -43,7 +43,7 @@ import com.querydsl.core.types.Predicate; /** * Builder assembling {@link Predicate} out of {@link PropertyValues}. - * + * * @author Christoph Strobl * @author Oliver Gierke * @since 1.11 @@ -58,7 +58,7 @@ public class QuerydslPredicateBuilder { /** * Creates a new {@link QuerydslPredicateBuilder} for the given {@link ConversionService} and * {@link EntityPathResolver}. - * + * * @param conversionService must not be {@literal null}. * @param resolver can be {@literal null}. */ @@ -75,7 +75,7 @@ public class QuerydslPredicateBuilder { /** * Creates a Querydsl {@link Predicate} for the given values, {@link QuerydslBindings} on the given * {@link TypeInformation}. - * + * * @param type the type to create a predicate for. * @param values the values to bind. * @param bindings the {@link QuerydslBindings} for the predicate. @@ -122,7 +122,7 @@ public class QuerydslPredicateBuilder { /** * Invokes the binding of the given values, for the given {@link PropertyPath} and {@link QuerydslBindings}. - * + * * @param dotPath must not be {@literal null}. * @param bindings must not be {@literal null}. * @param values must not be {@literal null}. @@ -140,7 +140,7 @@ public class QuerydslPredicateBuilder { * Returns the {@link Path} for the given {@link PropertyPath} and {@link QuerydslBindings}. Will try to obtain the * {@link Path} from the bindings first but fall back to reifying it from the PropertyPath in case no specific binding * has been configured. - * + * * @param path must not be {@literal null}. * @param bindings must not be {@literal null}. * @return @@ -156,7 +156,7 @@ public class QuerydslPredicateBuilder { * Converts the given source values into a collection of elements that are of the given {@link PropertyPath}'s type. * Considers a single element list with an empty {@link String} an empty collection because this basically indicates * the property having been submitted but no value provided. - * + * * @param source must not be {@literal null}. * @param path must not be {@literal null}. * @return @@ -184,7 +184,7 @@ public class QuerydslPredicateBuilder { /** * Returns the target {@link TypeDescriptor} for the given {@link PathInformation} by either inspecting the field or * property (the latter preferred) to pick up annotations potentially defined for formatting purposes. - * + * * @param path must not be {@literal null}. * @return */ @@ -211,7 +211,7 @@ public class QuerydslPredicateBuilder { /** * Returns whether the given collection has exactly one element that doesn't contain any text. This is basically an * indicator that a request parameter has been submitted but no value for it. - * + * * @param source must not be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/querydsl/binding/SingleValueBinding.java b/src/main/java/org/springframework/data/querydsl/binding/SingleValueBinding.java index 67ff567c8..ade0f1cb8 100644 --- a/src/main/java/org/springframework/data/querydsl/binding/SingleValueBinding.java +++ b/src/main/java/org/springframework/data/querydsl/binding/SingleValueBinding.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2015-2018 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. @@ -21,7 +21,7 @@ import com.querydsl.core.types.Predicate; /** * {@link SingleValueBinding} creates a {@link Predicate} out of given {@link Path} and value. Used for specific * parameter treatment in {@link QuerydslBindings}. - * + * * @author Christoph Strobl * @author Oliver Gierke * @since 1.11 @@ -32,7 +32,7 @@ public interface SingleValueBinding, S> { /** * Returns the predicate to be applied to the given {@link Path} for the given value. The given value will be the * first the first one provided for the given path and converted into the expected type. - * + * * @param path {@link Path} to the property. Will not be {@literal null}. * @param value the value that should be bound. Will not be {@literal null}. * @return can be {@literal null}, in which case the binding will not be incorporated in the overall {@link Predicate} diff --git a/src/main/java/org/springframework/data/repository/CrudRepository.java b/src/main/java/org/springframework/data/repository/CrudRepository.java index a7da1fa8c..efc8f7a5c 100644 --- a/src/main/java/org/springframework/data/repository/CrudRepository.java +++ b/src/main/java/org/springframework/data/repository/CrudRepository.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. @@ -19,7 +19,7 @@ import java.util.Optional; /** * Interface for generic CRUD operations on a repository for a specific type. - * + * * @author Oliver Gierke * @author Eberhard Wolff */ @@ -29,7 +29,7 @@ public interface CrudRepository extends Repository { /** * Saves a given entity. Use the returned instance for further operations as the save operation might have changed the * entity instance completely. - * + * * @param entity must not be {@literal null}. * @return the saved entity will never be {@literal null}. */ @@ -37,7 +37,7 @@ public interface CrudRepository extends Repository { /** * Saves all given entities. - * + * * @param entities must not be {@literal null}. * @return the saved entities will never be {@literal null}. * @throws IllegalArgumentException in case the given entity is {@literal null}. @@ -46,7 +46,7 @@ public interface CrudRepository extends Repository { /** * Retrieves an entity by its id. - * + * * @param id must not be {@literal null}. * @return the entity with the given id or {@literal Optional#empty()} if none found * @throws IllegalArgumentException if {@code id} is {@literal null}. @@ -55,7 +55,7 @@ public interface CrudRepository extends Repository { /** * Returns whether an entity with the given id exists. - * + * * @param id must not be {@literal null}. * @return {@literal true} if an entity with the given id exists, {@literal false} otherwise. * @throws IllegalArgumentException if {@code id} is {@literal null}. @@ -64,14 +64,14 @@ public interface CrudRepository extends Repository { /** * Returns all instances of the type. - * + * * @return all entities */ Iterable findAll(); /** * Returns all instances of the type with the given IDs. - * + * * @param ids * @return */ @@ -79,14 +79,14 @@ public interface CrudRepository extends Repository { /** * Returns the number of entities available. - * + * * @return the number of entities */ long count(); /** * Deletes the entity with the given id. - * + * * @param id must not be {@literal null}. * @throws IllegalArgumentException in case the given {@code id} is {@literal null} */ @@ -94,7 +94,7 @@ public interface CrudRepository extends Repository { /** * Deletes a given entity. - * + * * @param entity * @throws IllegalArgumentException in case the given entity is {@literal null}. */ @@ -102,7 +102,7 @@ public interface CrudRepository extends Repository { /** * Deletes the given entities. - * + * * @param entities * @throws IllegalArgumentException in case the given {@link Iterable} is {@literal null}. */ diff --git a/src/main/java/org/springframework/data/repository/NoRepositoryBean.java b/src/main/java/org/springframework/data/repository/NoRepositoryBean.java index db7005a67..674f40711 100644 --- a/src/main/java/org/springframework/data/repository/NoRepositoryBean.java +++ b/src/main/java/org/springframework/data/repository/NoRepositoryBean.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2010 the original author or authors. + * Copyright 2008-2018 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. @@ -29,7 +29,7 @@ import java.lang.annotation.Target; * custom repository base class to implement methods declared in that intermediate interface. In this case you typically * derive your concrete repository interfaces from the intermediate one but don't want to create a Spring bean for the * intermediate interface. - * + * * @author Oliver Gierke */ @Retention(RetentionPolicy.RUNTIME) diff --git a/src/main/java/org/springframework/data/repository/PagingAndSortingRepository.java b/src/main/java/org/springframework/data/repository/PagingAndSortingRepository.java index 943d84a36..363ef5900 100644 --- a/src/main/java/org/springframework/data/repository/PagingAndSortingRepository.java +++ b/src/main/java/org/springframework/data/repository/PagingAndSortingRepository.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2010 the original author or authors. + * Copyright 2008-2018 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. @@ -22,7 +22,7 @@ import org.springframework.data.domain.Sort; /** * Extension of {@link CrudRepository} to provide additional methods to retrieve entities using the pagination and * sorting abstraction. - * + * * @author Oliver Gierke * @see Sort * @see Pageable @@ -33,7 +33,7 @@ public interface PagingAndSortingRepository extends CrudRepository /** * Returns all entities sorted by the given options. - * + * * @param sort * @return all entities sorted by the given options */ @@ -41,7 +41,7 @@ public interface PagingAndSortingRepository extends CrudRepository /** * Returns a {@link Page} of entities meeting the paging restriction provided in the {@code Pageable} object. - * + * * @param pageable * @return a page of entities */ diff --git a/src/main/java/org/springframework/data/repository/RepositoryDefinition.java b/src/main/java/org/springframework/data/repository/RepositoryDefinition.java index c5004b0fb..8e0850b0b 100644 --- a/src/main/java/org/springframework/data/repository/RepositoryDefinition.java +++ b/src/main/java/org/springframework/data/repository/RepositoryDefinition.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -27,7 +27,7 @@ import org.springframework.stereotype.Indexed; /** * Annotation to demarcate interfaces a repository proxy shall be created for. Annotating an interface with * {@link RepositoryDefinition} will cause the same behaviour as extending {@link Repository}. - * + * * @see Repository * @author Oliver Gierke */ @@ -40,7 +40,7 @@ public @interface RepositoryDefinition { /** * The domain class the repository manages. Equivalent to the T type parameter in {@link Repository}. - * + * * @see Repository * @return */ @@ -48,7 +48,7 @@ public @interface RepositoryDefinition { /** * The id class of the entity the repository manages. Equivalent to the ID type parameter in {@link Repository}. - * + * * @see Repository * @return */ diff --git a/src/main/java/org/springframework/data/repository/cdi/CdiRepositoryBean.java b/src/main/java/org/springframework/data/repository/cdi/CdiRepositoryBean.java index c52546f26..9342d144b 100644 --- a/src/main/java/org/springframework/data/repository/cdi/CdiRepositoryBean.java +++ b/src/main/java/org/springframework/data/repository/cdi/CdiRepositoryBean.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -51,7 +51,7 @@ import org.springframework.util.StringUtils; /** * Base class for {@link Bean} wrappers. - * + * * @author Dirk Mahler * @author Oliver Gierke * @author Mark Paluch @@ -78,7 +78,7 @@ public abstract class CdiRepositoryBean implements Bean, PassivationCapabl /** * Creates a new {@link CdiRepositoryBean}. - * + * * @param qualifiers must not be {@literal null}. * @param repositoryType has to be an interface must not be {@literal null}. * @param beanManager the CDI {@link BeanManager}, must not be {@literal null}. @@ -89,7 +89,7 @@ public abstract class CdiRepositoryBean implements Bean, PassivationCapabl /** * Creates a new {@link CdiRepositoryBean}. - * + * * @param qualifiers must not be {@literal null}. * @param repositoryType has to be an interface must not be {@literal null}. * @param beanManager the CDI {@link BeanManager}, must not be {@literal null}. @@ -113,7 +113,7 @@ public abstract class CdiRepositoryBean implements Bean, PassivationCapabl /** * Creates a unique identifier for the given repository type and the given annotations. - * + * * @param qualifiers must not be {@literal null} or contain {@literal null} values. * @param repositoryType must not be {@literal null}. * @return @@ -147,7 +147,7 @@ public abstract class CdiRepositoryBean implements Bean, PassivationCapabl /** * Returns an instance of an the given {@link Bean}. - * + * * @param bean the {@link Bean} about to create an instance for. * @return the actual component instance. * @see Bean#getTypes() @@ -159,7 +159,7 @@ public abstract class CdiRepositoryBean implements Bean, PassivationCapabl /** * Returns an instance of an the given {@link Bean} and allows to be specific about the type that is about to be * created. - * + * * @param bean the {@link Bean} about to create an instance for. * @param type the expected type of the component instance created for that {@link Bean}. We need to hand this * parameter explicitly as the {@link Bean} might carry multiple types but the primary one might not be the @@ -218,7 +218,7 @@ public abstract class CdiRepositoryBean implements Bean, PassivationCapabl /** * Looks up an instance of a {@link CdiRepositoryConfiguration}. In case the instance cannot be found within the CDI * scope, a default configuration is used. - * + * * @return an available CdiRepositoryConfiguration instance or a default configuration. */ protected CdiRepositoryConfiguration lookupConfiguration(BeanManager beanManager, Set qualifiers) { @@ -231,7 +231,7 @@ public abstract class CdiRepositoryBean implements Bean, PassivationCapabl /** * Try to lookup a custom implementation for a {@link org.springframework.data.repository.Repository}. Can only be * used when a {@code CustomRepositoryImplementationDetector} is provided. - * + * * @param repositoryType * @param beanManager * @param qualifiers @@ -252,7 +252,7 @@ public abstract class CdiRepositoryBean implements Bean, PassivationCapabl /** * Retrieves a custom repository interfaces from a repository type. This works for the whole class hierarchy and can * find also a custom repository which is inherited over many levels. - * + * * @param repositoryType The class representing the repository. * @param cdiRepositoryConfiguration The configuration for CDI usage. * @return the interface class or {@literal null}. @@ -376,7 +376,7 @@ public abstract class CdiRepositoryBean implements Bean, PassivationCapabl /** * Creates the actual component instance. - * + * * @param creationalContext will never be {@literal null}. * @param repositoryType will never be {@literal null}. * @return @@ -394,7 +394,7 @@ public abstract class CdiRepositoryBean implements Bean, PassivationCapabl /** * Creates the actual component instance. - * + * * @param creationalContext will never be {@literal null}. * @param repositoryType will never be {@literal null}. * @param customImplementation can be {@literal null}. diff --git a/src/main/java/org/springframework/data/repository/cdi/CdiRepositoryConfiguration.java b/src/main/java/org/springframework/data/repository/cdi/CdiRepositoryConfiguration.java index dfd22255c..07d913f23 100644 --- a/src/main/java/org/springframework/data/repository/cdi/CdiRepositoryConfiguration.java +++ b/src/main/java/org/springframework/data/repository/cdi/CdiRepositoryConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 the original author or authors. + * Copyright 2014-2018 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. diff --git a/src/main/java/org/springframework/data/repository/cdi/CdiRepositoryExtensionSupport.java b/src/main/java/org/springframework/data/repository/cdi/CdiRepositoryExtensionSupport.java index 376a500fd..7b0c36ab8 100644 --- a/src/main/java/org/springframework/data/repository/cdi/CdiRepositoryExtensionSupport.java +++ b/src/main/java/org/springframework/data/repository/cdi/CdiRepositoryExtensionSupport.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -49,7 +49,7 @@ import org.springframework.data.repository.config.CustomRepositoryImplementation /** * Base class for {@link Extension} implementations that create instances for Spring Data repositories. - * + * * @author Dirk Mahler * @author Oliver Gierke * @author Mark Paluch @@ -76,7 +76,7 @@ public abstract class CdiRepositoryExtensionSupport implements Extension { /** * Implementation of a an observer which checks for Spring Data repository types and stores them in * {@link #repositoryTypes} for later registration as bean type. - * + * * @param The type. * @param processAnnotatedType The annotated type as defined by CDI. */ @@ -101,7 +101,7 @@ public abstract class CdiRepositoryExtensionSupport implements Extension { /** * Returns whether the given type is a repository type. - * + * * @param type must not be {@literal null}. * @return */ @@ -141,7 +141,7 @@ public abstract class CdiRepositoryExtensionSupport implements Extension { /** * Triggers the eager initialization of beans registered for that behavior. - * + * * @param event must not be {@literal null}. * @param manager must not be {@literal null}. * @see #registerBean(CdiRepositoryBean) @@ -157,7 +157,7 @@ public abstract class CdiRepositoryExtensionSupport implements Extension { /** * Provides access to all repository types as well as their qualifiers. - * + * * @return */ protected Iterable, Set>> getRepositoryTypes() { @@ -167,7 +167,7 @@ public abstract class CdiRepositoryExtensionSupport implements Extension { /** * Registers the given {@link CdiRepositoryBean} for further general treatment by the infrastructure. In particular, * this will cause repositories to be instantiated eagerly if marked as such. - * + * * @param bean must not be {@literal null}. * @see #afterDeploymentValidation(AfterDeploymentValidation, BeanManager) */ diff --git a/src/main/java/org/springframework/data/repository/cdi/Eager.java b/src/main/java/org/springframework/data/repository/cdi/Eager.java index 3350176f7..1984025ec 100644 --- a/src/main/java/org/springframework/data/repository/cdi/Eager.java +++ b/src/main/java/org/springframework/data/repository/cdi/Eager.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 the original author or authors. + * Copyright 2014-2018 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. @@ -24,7 +24,7 @@ import java.lang.annotation.Target; /** * Annotation to mark repository interfaces to be instantiated eagerly in a CDI context. - * + * * @author Oliver Gierke * @since 1.7 */ diff --git a/src/main/java/org/springframework/data/repository/config/AnnotationRepositoryConfigurationSource.java b/src/main/java/org/springframework/data/repository/config/AnnotationRepositoryConfigurationSource.java index 26d48ac2b..5eedf8d7b 100644 --- a/src/main/java/org/springframework/data/repository/config/AnnotationRepositoryConfigurationSource.java +++ b/src/main/java/org/springframework/data/repository/config/AnnotationRepositoryConfigurationSource.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -48,7 +48,7 @@ import org.springframework.util.StringUtils; /** * Annotation based {@link RepositoryConfigurationSource}. - * + * * @author Oliver Gierke * @author Thomas Darimont * @author Peter Rietzler @@ -75,7 +75,7 @@ public class AnnotationRepositoryConfigurationSource extends RepositoryConfigura /** * Creates a new {@link AnnotationRepositoryConfigurationSource} from the given {@link AnnotationMetadata} and * annotation. - * + * * @param metadata must not be {@literal null}. * @param annotation must not be {@literal null}. * @param resourceLoader must not be {@literal null}. @@ -106,7 +106,7 @@ public class AnnotationRepositoryConfigurationSource extends RepositoryConfigura /** * Returns whether there's explicit configuration of include- or exclude filters. - * + * * @param attributes must not be {@literal null}. * @return */ @@ -211,7 +211,7 @@ public class AnnotationRepositoryConfigurationSource extends RepositoryConfigura /** * Returns the {@link String} attribute with the given name and defaults it to {@literal Optional#empty()} in case * it's empty. - * + * * @param attributeName * @return */ @@ -220,7 +220,7 @@ public class AnnotationRepositoryConfigurationSource extends RepositoryConfigura return StringUtils.hasText(attribute) ? Optional.of(attribute) : Optional.empty(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.config.RepositoryConfigurationSource#getRepositoryFactoryBeanClassName() */ @@ -229,7 +229,7 @@ public class AnnotationRepositoryConfigurationSource extends RepositoryConfigura return Optional.of(attributes.getClass(REPOSITORY_FACTORY_BEAN_CLASS).getName()); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.config.RepositoryConfigurationSource#getRepositoryBaseClassName() */ @@ -247,7 +247,7 @@ public class AnnotationRepositoryConfigurationSource extends RepositoryConfigura /** * Returns the {@link AnnotationAttributes} of the annotation configured. - * + * * @return the attributes will never be {@literal null}. */ public AnnotationAttributes getAttributes() { @@ -256,7 +256,7 @@ public class AnnotationRepositoryConfigurationSource extends RepositoryConfigura /** * Returns the {@link AnnotationMetadata} for the {@code @Enable} annotation that triggered the configuration. - * + * * @return the enableAnnotationMetadata */ public AnnotationMetadata getEnableAnnotationMetadata() { @@ -265,7 +265,7 @@ public class AnnotationRepositoryConfigurationSource extends RepositoryConfigura /** * Copy of {@code ComponentScanAnnotationParser#typeFiltersFor}. - * + * * @param filterAttributes * @return */ @@ -321,7 +321,7 @@ public class AnnotationRepositoryConfigurationSource extends RepositoryConfigura return attributes.containsKey(CONSIDER_NESTED_REPOSITORIES) && attributes.getBoolean(CONSIDER_NESTED_REPOSITORIES); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.config.RepositoryConfigurationSource#getAttribute(java.lang.String) */ @@ -332,7 +332,7 @@ public class AnnotationRepositoryConfigurationSource extends RepositoryConfigura return StringUtils.hasText(attribute) ? Optional.of(attribute) : Optional.empty(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.config.RepositoryConfigurationSource#usesExplicitFilters() */ @@ -344,7 +344,7 @@ public class AnnotationRepositoryConfigurationSource extends RepositoryConfigura /** * Safely reads the {@code pattern} attribute from the given {@link AnnotationAttributes} and returns an empty list if * the attribute is not present. - * + * * @param filterAttributes must not be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/repository/config/CustomRepositoryImplementationDetector.java b/src/main/java/org/springframework/data/repository/config/CustomRepositoryImplementationDetector.java index 260caa697..ea9fa47e1 100644 --- a/src/main/java/org/springframework/data/repository/config/CustomRepositoryImplementationDetector.java +++ b/src/main/java/org/springframework/data/repository/config/CustomRepositoryImplementationDetector.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. diff --git a/src/main/java/org/springframework/data/repository/config/DefaultRepositoryBaseClass.java b/src/main/java/org/springframework/data/repository/config/DefaultRepositoryBaseClass.java index 7e06c9725..01225d3ad 100644 --- a/src/main/java/org/springframework/data/repository/config/DefaultRepositoryBaseClass.java +++ b/src/main/java/org/springframework/data/repository/config/DefaultRepositoryBaseClass.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2015-2018 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. @@ -19,7 +19,7 @@ package org.springframework.data.repository.config; * Placeholder class to be used in {@code @Enable} annotation's {@code repositoryBaseClass} attribute. The configuration * evaluation infrastructure can use this type to find out no special repository base class was configured and apply * defaults. - * + * * @author Oliver Gierke * @soundtrack Elen - Sink like a stone (Elen) * @since 1.11 diff --git a/src/main/java/org/springframework/data/repository/config/DefaultRepositoryConfiguration.java b/src/main/java/org/springframework/data/repository/config/DefaultRepositoryConfiguration.java index 33547ee1b..aca90c369 100644 --- a/src/main/java/org/springframework/data/repository/config/DefaultRepositoryConfiguration.java +++ b/src/main/java/org/springframework/data/repository/config/DefaultRepositoryConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -81,7 +81,7 @@ public class DefaultRepositoryConfiguration getExclusions() { @@ -294,7 +294,7 @@ class RepositoryBeanDefinitionBuilder { /** * Returns the name of the implementation class to be detected for the fragment interface. - * + * * @return */ public String getFragmentImplementationClassName() { @@ -307,7 +307,7 @@ class RepositoryBeanDefinitionBuilder { /** * Returns the base packages to be scanned to find implementations of the current fragment interface. - * + * * @return */ public Iterable getBasePackages() { @@ -316,7 +316,7 @@ class RepositoryBeanDefinitionBuilder { /** * Returns the bean name generating function to be used for the fragment. - * + * * @return */ public Function getBeanNameGenerator() { diff --git a/src/main/java/org/springframework/data/repository/config/RepositoryBeanDefinitionParser.java b/src/main/java/org/springframework/data/repository/config/RepositoryBeanDefinitionParser.java index 0de2bc714..5e8b5ef55 100644 --- a/src/main/java/org/springframework/data/repository/config/RepositoryBeanDefinitionParser.java +++ b/src/main/java/org/springframework/data/repository/config/RepositoryBeanDefinitionParser.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. @@ -35,7 +35,7 @@ import org.w3c.dom.Element; * Base class to implement repository namespaces. These will typically consist of a main XML element potentially having * child elements. The parser will wrap the XML element into a {@link GlobalRepositoryConfigInformation} object and * allow either manual configuration or automatic detection of repository interfaces. - * + * * @author Oliver Gierke */ public class RepositoryBeanDefinitionParser implements BeanDefinitionParser { @@ -44,7 +44,7 @@ public class RepositoryBeanDefinitionParser implements BeanDefinitionParser { /** * Creates a new {@link RepositoryBeanDefinitionParser} using the given {@link RepositoryConfigurationExtension}. - * + * * @param extension must not be {@literal null}. */ public RepositoryBeanDefinitionParser(RepositoryConfigurationExtension extension) { @@ -93,7 +93,7 @@ public class RepositoryBeanDefinitionParser implements BeanDefinitionParser { /** * Returns whether the given {@link BeanDefinitionRegistry} already contains a bean of the given type assuming the * bean name has been autogenerated. - * + * * @param type * @param registry * @return diff --git a/src/main/java/org/springframework/data/repository/config/RepositoryBeanDefinitionRegistrarSupport.java b/src/main/java/org/springframework/data/repository/config/RepositoryBeanDefinitionRegistrarSupport.java index 349f6baa4..f5e4ab14f 100644 --- a/src/main/java/org/springframework/data/repository/config/RepositoryBeanDefinitionRegistrarSupport.java +++ b/src/main/java/org/springframework/data/repository/config/RepositoryBeanDefinitionRegistrarSupport.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -31,7 +31,7 @@ import org.springframework.util.Assert; /** * Base class to implement {@link ImportBeanDefinitionRegistrar}s to enable repository - * + * * @author Oliver Gierke */ public abstract class RepositoryBeanDefinitionRegistrarSupport @@ -40,7 +40,7 @@ public abstract class RepositoryBeanDefinitionRegistrarSupport private @SuppressWarnings("null") @Nonnull ResourceLoader resourceLoader; private @SuppressWarnings("null") @Nonnull Environment environment; - /* + /* * (non-Javadoc) * @see org.springframework.context.ResourceLoaderAware#setResourceLoader(org.springframework.core.io.ResourceLoader) */ @@ -49,7 +49,7 @@ public abstract class RepositoryBeanDefinitionRegistrarSupport this.resourceLoader = resourceLoader; } - /* + /* * (non-Javadoc) * @see org.springframework.context.EnvironmentAware#setEnvironment(org.springframework.core.env.Environment) */ @@ -89,7 +89,7 @@ public abstract class RepositoryBeanDefinitionRegistrarSupport * Return the annotation to obtain configuration information from. Will be wrappen into an * {@link AnnotationRepositoryConfigurationSource} so have a look at the constants in there for what annotation * attributes it expects. - * + * * @return */ protected abstract Class getAnnotation(); @@ -97,7 +97,7 @@ public abstract class RepositoryBeanDefinitionRegistrarSupport /** * Returns the {@link RepositoryConfigurationExtension} for store specific callbacks and {@link BeanDefinition} * post-processing. - * + * * @see RepositoryConfigurationExtensionSupport * @return */ diff --git a/src/main/java/org/springframework/data/repository/config/RepositoryBeanNameGenerator.java b/src/main/java/org/springframework/data/repository/config/RepositoryBeanNameGenerator.java index ef0772025..fc24497e9 100644 --- a/src/main/java/org/springframework/data/repository/config/RepositoryBeanNameGenerator.java +++ b/src/main/java/org/springframework/data/repository/config/RepositoryBeanNameGenerator.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/main/java/org/springframework/data/repository/config/RepositoryComponentProvider.java b/src/main/java/org/springframework/data/repository/config/RepositoryComponentProvider.java index 58ab7a8bb..b9dc29371 100644 --- a/src/main/java/org/springframework/data/repository/config/RepositoryComponentProvider.java +++ b/src/main/java/org/springframework/data/repository/config/RepositoryComponentProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -41,7 +41,7 @@ import org.springframework.util.Assert; /** * Custom {@link ClassPathScanningCandidateComponentProvider} scanning for interfaces extending the given base * interface. Skips interfaces annotated with {@link NoRepositoryBean}. - * + * * @author Oliver Gierke * @author Thomas Darimont */ @@ -53,7 +53,7 @@ class RepositoryComponentProvider extends ClassPathScanningCandidateComponentPro /** * Creates a new {@link RepositoryComponentProvider} using the given {@link TypeFilter} to include components to be * picked up. - * + * * @param includeFilters the {@link TypeFilter}s to select repository interfaces to consider, must not be * {@literal null}. */ @@ -82,7 +82,7 @@ class RepositoryComponentProvider extends ClassPathScanningCandidateComponentPro * Custom extension of {@link #addIncludeFilter(TypeFilter)} to extend the added {@link TypeFilter}. For the * {@link TypeFilter} handed we'll have two filters registered: one additionally enforcing the * {@link RepositoryDefinition} annotation, the other one forcing the extension of {@link Repository}. - * + * * @see ClassPathScanningCandidateComponentProvider#addIncludeFilter(TypeFilter) */ @Override @@ -152,7 +152,7 @@ class RepositoryComponentProvider extends ClassPathScanningCandidateComponentPro /** * Controls whether nested inner-class {@link Repository} interface definitions should be considered for automatic * discovery. This defaults to {@literal false}. - * + * * @param considerNestedRepositoryInterfaces */ public void setConsiderNestedRepositoryInterfaces(boolean considerNestedRepositoryInterfaces) { @@ -162,14 +162,14 @@ class RepositoryComponentProvider extends ClassPathScanningCandidateComponentPro /** * {@link org.springframework.core.type.filter.TypeFilter} that only matches interfaces. Thus setting this up makes * only sense providing an interface type as {@code targetType}. - * + * * @author Oliver Gierke */ private static class InterfaceTypeFilter extends AssignableTypeFilter { /** * Creates a new {@link InterfaceTypeFilter}. - * + * * @param targetType */ public InterfaceTypeFilter(Class targetType) { @@ -190,7 +190,7 @@ class RepositoryComponentProvider extends ClassPathScanningCandidateComponentPro /** * Helper class to create a {@link TypeFilter} that matches if all the delegates match. - * + * * @author Oliver Gierke */ private static class AllTypeFilter implements TypeFilter { @@ -199,7 +199,7 @@ class RepositoryComponentProvider extends ClassPathScanningCandidateComponentPro /** * Creates a new {@link AllTypeFilter} to match if all the given delegates match. - * + * * @param delegates must not be {@literal null}. */ public AllTypeFilter(List delegates) { @@ -208,7 +208,7 @@ class RepositoryComponentProvider extends ClassPathScanningCandidateComponentPro this.delegates = delegates; } - /* + /* * (non-Javadoc) * @see org.springframework.core.type.filter.TypeFilter#match(org.springframework.core.type.classreading.MetadataReader, org.springframework.core.type.classreading.MetadataReaderFactory) */ diff --git a/src/main/java/org/springframework/data/repository/config/RepositoryConfiguration.java b/src/main/java/org/springframework/data/repository/config/RepositoryConfiguration.java index a4c31a17d..662e136bb 100644 --- a/src/main/java/org/springframework/data/repository/config/RepositoryConfiguration.java +++ b/src/main/java/org/springframework/data/repository/config/RepositoryConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationDelegate.java b/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationDelegate.java index 754855e25..7384000b6 100644 --- a/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationDelegate.java +++ b/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationDelegate.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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,7 +61,7 @@ public class RepositoryConfigurationDelegate { /** * Creates a new {@link RepositoryConfigurationDelegate} for the given {@link RepositoryConfigurationSource} and * {@link ResourceLoader} and {@link Environment}. - * + * * @param configurationSource must not be {@literal null}. * @param resourceLoader must not be {@literal null}. * @param environment must not be {@literal null}. @@ -85,7 +85,7 @@ public class RepositoryConfigurationDelegate { /** * Defaults the environment in case the given one is null. Used as fallback, in case the legacy constructor was * invoked. - * + * * @param environment can be {@literal null}. * @param resourceLoader can be {@literal null}. * @return @@ -103,7 +103,7 @@ public class RepositoryConfigurationDelegate { /** * Registers the found repositories in the given {@link BeanDefinitionRegistry}. - * + * * @param registry * @param extension * @return {@link BeanComponentDefinition}s for all repository bean definitions found. @@ -151,7 +151,7 @@ public class RepositoryConfigurationDelegate { * Scans {@code repository.support} packages for implementations of {@link RepositoryFactorySupport}. Finding more * than a single type is considered a multi-store configuration scenario which will trigger stricter repository * scanning. - * + * * @return */ private boolean multipleStoresDetected() { diff --git a/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationExtension.java b/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationExtension.java index 767e892f9..263911cc0 100644 --- a/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationExtension.java +++ b/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationExtension.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2014 the original author or authors. + * Copyright 2012-2018 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. @@ -24,7 +24,7 @@ import org.springframework.core.io.ResourceLoader; /** * SPI to implement store specific extension to the repository bean definition registration process. - * + * * @see RepositoryConfigurationExtensionSupport * @author Oliver Gierke */ @@ -32,14 +32,14 @@ public interface RepositoryConfigurationExtension { /** * Returns the descriptive name of the module. - * + * * @return */ String getModuleName(); /** * Returns all {@link RepositoryConfiguration}s obtained through the given {@link RepositoryConfigurationSource}. - * + * * @param configSource must not be {@literal null}. * @param loader must not be {@literal null}. * @deprecated call or implement @@ -52,7 +52,7 @@ public interface RepositoryConfigurationExtension { /** * Returns all {@link RepositoryConfiguration}s obtained through the given {@link RepositoryConfigurationSource}. - * + * * @param configSource * @param loader * @param strictMatchesOnly whether to return strict repository matches only. Handing in {@literal true} will cause @@ -66,14 +66,14 @@ public interface RepositoryConfigurationExtension { /** * Returns the default location of the Spring Data named queries. - * + * * @return must not be {@literal null} or empty. */ String getDefaultNamedQueryLocation(); /** * Returns the name of the repository factory class to be used. - * + * * @return */ String getRepositoryFactoryBeanClassName(); @@ -82,7 +82,7 @@ public interface RepositoryConfigurationExtension { * Callback to register additional bean definitions for a {@literal repositories} root node. This usually includes * beans you have to set up once independently of the number of repositories to be created. Will be called before any * repositories bean definitions have been registered. - * + * * @param registry * @param source */ @@ -90,7 +90,7 @@ public interface RepositoryConfigurationExtension { /** * Callback to post process the {@link BeanDefinition} and tweak the configuration if necessary. - * + * * @param builder will never be {@literal null}. * @param config will never be {@literal null}. */ @@ -99,7 +99,7 @@ public interface RepositoryConfigurationExtension { /** * Callback to post process the {@link BeanDefinition} built from annotations and tweak the configuration if * necessary. - * + * * @param builder will never be {@literal null}. * @param config will never be {@literal null}. */ @@ -107,7 +107,7 @@ public interface RepositoryConfigurationExtension { /** * Callback to post process the {@link BeanDefinition} built from XML and tweak the configuration if necessary. - * + * * @param builder will never be {@literal null}. * @param config will never be {@literal null}. */ diff --git a/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationExtensionSupport.java b/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationExtensionSupport.java index a71a52a74..ee4ceb7d0 100644 --- a/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationExtensionSupport.java +++ b/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationExtensionSupport.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -42,7 +42,7 @@ import org.springframework.util.StringUtils; * Base implementation of {@link RepositoryConfigurationExtension} to ease the implementation of the interface. Will * default the default named query location based on a module prefix provided by implementors (see * {@link #getModulePrefix()}). Stubs out the post-processing methods as they might not be needed by default. - * + * * @author Oliver Gierke * @author Mark Paluch * @author Christoph Strobl @@ -53,7 +53,7 @@ public abstract class RepositoryConfigurationExtensionSupport implements Reposit private static final String CLASS_LOADING_ERROR = "%s - Could not load type %s using class loader %s."; private static final String MULTI_STORE_DROPPED = "Spring Data {} - Could not safely identify store assignment for repository candidate {}."; - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.config.RepositoryConfigurationExtension#getModuleName() */ @@ -72,7 +72,7 @@ public abstract class RepositoryConfigurationExtensionSupport implements Reposit } /* - * + * * (non-Javadoc) * @see org.springframework.data.repository.config.RepositoryConfigurationExtension#getRepositoryConfigurations(org.springframework.data.repository.config.RepositoryConfigurationSource, org.springframework.core.io.ResourceLoader, boolean) */ @@ -130,7 +130,7 @@ public abstract class RepositoryConfigurationExtensionSupport implements Reposit /** * Returns the prefix of the module to be used to create the default location for Spring Data named queries. - * + * * @return must not be {@literal null}. */ protected abstract String getModulePrefix(); @@ -156,7 +156,7 @@ public abstract class RepositoryConfigurationExtensionSupport implements Reposit /** * Return the annotations to scan domain types for when evaluating repository interfaces for store assignment. Modules * should return the annotations that identify a domain type as managed by the store explicitly. - * + * * @return * @since 1.9 */ @@ -166,7 +166,7 @@ public abstract class RepositoryConfigurationExtensionSupport implements Reposit /** * Returns the types that indicate a store match when inspecting repositories for strict matches. - * + * * @return * @since 1.9 */ @@ -180,7 +180,7 @@ public abstract class RepositoryConfigurationExtensionSupport implements Reposit * configuration elements (annotation or XML), prefer calling * {@link #registerIfNotAlreadyRegistered(AbstractBeanDefinition, BeanDefinitionRegistry, String, Object)} with a * dedicated bean name to avoid the bead definition being registered multiple times. * - * + * * @param registry must not be {@literal null}. * @param bean must not be {@literal null}. * @param source must not be {@literal null}. @@ -200,7 +200,7 @@ public abstract class RepositoryConfigurationExtensionSupport implements Reposit /** * Registers the given {@link AbstractBeanDefinition} with the given registry with the given bean name unless the * registry already contains a bean with that name. - * + * * @param bean must not be {@literal null}. * @param registry must not be {@literal null}. * @param beanName must not be {@literal null} or empty. @@ -220,7 +220,7 @@ public abstract class RepositoryConfigurationExtensionSupport implements Reposit /** * Returns whether the given {@link BeanDefinitionRegistry} already contains a bean of the given type assuming the * bean name has been auto-generated. - * + * * @param type * @param registry * @return @@ -235,7 +235,7 @@ public abstract class RepositoryConfigurationExtensionSupport implements Reposit * Creates a actual {@link RepositoryConfiguration} instance for the given {@link RepositoryConfigurationSource} and * interface name. Defaults to the {@link DefaultRepositoryConfiguration} but allows sub-classes to override this to * customize the behavior. - * + * * @param definition will never be {@literal null} or empty. * @param configSource will never be {@literal null}. * @return @@ -251,7 +251,7 @@ public abstract class RepositoryConfigurationExtensionSupport implements Reposit * (see {@link #getIdentifyingAnnotations()}). If none of them is found, the candidate is discarded. Implementations * should make sure, the only return {@literal true} if they're really sure the interface handed to the method is * really a store interface. - * + * * @param repositoryInterface * @return * @since 1.9 @@ -287,7 +287,7 @@ public abstract class RepositoryConfigurationExtensionSupport implements Reposit /** * Return whether to use the configuration for the repository with the given metadata. Defaults to {@literal true}. - * + * * @param metadata will never be {@literal null}. * @return */ @@ -298,7 +298,7 @@ public abstract class RepositoryConfigurationExtensionSupport implements Reposit /** * Loads the repository interface contained in the given {@link RepositoryConfiguration} using the given * {@link ResourceLoader}. - * + * * @param configuration must not be {@literal null}. * @param loader must not be {@literal null}. * @return the repository interface or {@literal null} if it can't be loaded. diff --git a/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationSource.java b/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationSource.java index 1e5e2ecde..a5c5cea99 100644 --- a/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationSource.java +++ b/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationSource.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -26,7 +26,7 @@ import org.springframework.lang.Nullable; /** * Interface containing the configurable options for the Spring Data repository subsystem. - * + * * @author Oliver Gierke * @author Thomas Darimont * @author Peter Rietzler @@ -44,21 +44,21 @@ public interface RepositoryConfigurationSource { /** * Returns the base packages the repository interfaces shall be found under. - * + * * @return must not be {@literal null}. */ Streamable getBasePackages(); /** * Returns the {@link QueryLookupStrategy.Key} to define how query methods shall be resolved. - * + * * @return */ Optional getQueryLookupStrategyKey(); /** * Returns the configured postfix to be used for looking up custom implementation classes. - * + * * @return the postfix to use or {@link Optional#empty()} in case none is configured. */ Optional getRepositoryImplementationPostfix(); @@ -71,7 +71,7 @@ public interface RepositoryConfigurationSource { /** * Returns the name of the repository base class to be used or {@link Optional#empty()} if the store specific defaults * shall be applied. - * + * * @return * @since 1.11 */ @@ -79,14 +79,14 @@ public interface RepositoryConfigurationSource { /** * Returns the name of the repository factory bean class or {@link Optional#empty()} if not defined in the source. - * + * * @return */ Optional getRepositoryFactoryBeanClassName(); /** * Returns the source {@link BeanDefinition}s of the repository interfaces to create repository instances for. - * + * * @param loader * @return */ @@ -95,7 +95,7 @@ public interface RepositoryConfigurationSource { /** * Returns the value for the {@link String} attribute with the given name. The name is expected to be handed in * camel-case. - * + * * @param name must not be {@literal null} or empty. * @return the attribute with the given name or {@link Optional#empty()} if not configured or empty. * @since 1.8 @@ -104,7 +104,7 @@ public interface RepositoryConfigurationSource { /** * Returns whether the configuration uses explicit filtering to scan for repository types. - * + * * @return whether the configuration uses explicit filtering to scan for repository types. * @since 1.9 */ diff --git a/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationSourceSupport.java b/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationSourceSupport.java index 2014a7558..8154ac649 100644 --- a/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationSourceSupport.java +++ b/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationSourceSupport.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -60,7 +60,7 @@ public abstract class RepositoryConfigurationSourceSupport implements Repository this.registry = registry; } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.config.RepositoryConfigurationSource#getCandidates(org.springframework.core.io.ResourceLoader) */ diff --git a/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationUtils.java b/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationUtils.java index f38cc0a8e..021f0148b 100644 --- a/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationUtils.java +++ b/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -25,7 +25,7 @@ import org.springframework.util.Assert; /** * Helper class to centralize common functionality that needs to be used in various places of the configuration * implementation. - * + * * @author Oliver Gierke */ public interface RepositoryConfigurationUtils { @@ -35,7 +35,7 @@ public interface RepositoryConfigurationUtils { * particular store (expressed through the extension's concrete type) has appened. Useful for downstream components * that need to detect exactly that case. The bean definition is marked as lazy-init so that it doesn't get * instantiated if no one really cares. - * + * * @param extension must not be {@literal null}. * @param registry must not be {@literal null}. * @param configurationSource must not be {@literal null}. diff --git a/src/main/java/org/springframework/data/repository/config/RepositoryFragmentConfiguration.java b/src/main/java/org/springframework/data/repository/config/RepositoryFragmentConfiguration.java index 7ef998c04..a236f4b15 100644 --- a/src/main/java/org/springframework/data/repository/config/RepositoryFragmentConfiguration.java +++ b/src/main/java/org/springframework/data/repository/config/RepositoryFragmentConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/main/java/org/springframework/data/repository/config/RepositoryNameSpaceHandler.java b/src/main/java/org/springframework/data/repository/config/RepositoryNameSpaceHandler.java index 31dabb6e7..b7f7af122 100644 --- a/src/main/java/org/springframework/data/repository/config/RepositoryNameSpaceHandler.java +++ b/src/main/java/org/springframework/data/repository/config/RepositoryNameSpaceHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. @@ -21,7 +21,7 @@ import org.springframework.beans.factory.xml.NamespaceHandlerSupport; /** * {@link NamespaceHandler} to register {@link BeanDefinitionParser}s for repository initializers. - * + * * @author Oliver Gierke * @author Christoph Strobl * @since 1.4 @@ -30,7 +30,7 @@ public class RepositoryNameSpaceHandler extends NamespaceHandlerSupport { private static final BeanDefinitionParser PARSER = new ResourceReaderRepositoryPopulatorBeanDefinitionParser(); - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.xml.NamespaceHandler#init() */ diff --git a/src/main/java/org/springframework/data/repository/config/ResourceReaderRepositoryPopulatorBeanDefinitionParser.java b/src/main/java/org/springframework/data/repository/config/ResourceReaderRepositoryPopulatorBeanDefinitionParser.java index 0fbdff950..6bd879ec8 100644 --- a/src/main/java/org/springframework/data/repository/config/ResourceReaderRepositoryPopulatorBeanDefinitionParser.java +++ b/src/main/java/org/springframework/data/repository/config/ResourceReaderRepositoryPopulatorBeanDefinitionParser.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2014 the original author or authors. + * Copyright 2012-2018 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. @@ -29,12 +29,12 @@ import org.w3c.dom.Element; /** * {@link BeanDefinitionParser} to parse repository initializers. - * + * * @author Oliver Gierke */ public class ResourceReaderRepositoryPopulatorBeanDefinitionParser extends AbstractSingleBeanDefinitionParser { - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser#getBeanClassName(org.w3c.dom.Element) */ @@ -73,7 +73,7 @@ public class ResourceReaderRepositoryPopulatorBeanDefinitionParser extends Abstr /** * Populates the {@link BeanDefinitionBuilder} for a Jackson reader. - * + * * @param element * @param builder */ @@ -88,7 +88,7 @@ public class ResourceReaderRepositoryPopulatorBeanDefinitionParser extends Abstr /** * Populate the {@link BeanDefinitionBuilder} for XML reader. - * + * * @param element * @param builder */ @@ -101,7 +101,7 @@ public class ResourceReaderRepositoryPopulatorBeanDefinitionParser extends Abstr } } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.xml.AbstractBeanDefinitionParser#shouldGenerateIdAsFallback() */ diff --git a/src/main/java/org/springframework/data/repository/config/SelectionSet.java b/src/main/java/org/springframework/data/repository/config/SelectionSet.java index 5feba655e..d1e0d71eb 100644 --- a/src/main/java/org/springframework/data/repository/config/SelectionSet.java +++ b/src/main/java/org/springframework/data/repository/config/SelectionSet.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/main/java/org/springframework/data/repository/config/SpringDataAnnotationBeanNameGenerator.java b/src/main/java/org/springframework/data/repository/config/SpringDataAnnotationBeanNameGenerator.java index cd25be9cb..279dfc25a 100644 --- a/src/main/java/org/springframework/data/repository/config/SpringDataAnnotationBeanNameGenerator.java +++ b/src/main/java/org/springframework/data/repository/config/SpringDataAnnotationBeanNameGenerator.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. @@ -35,7 +35,7 @@ public class SpringDataAnnotationBeanNameGenerator { /** * Generates a bean name for the given {@link BeanDefinition}. - * + * * @param definition must not be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/repository/config/XmlRepositoryConfigurationSource.java b/src/main/java/org/springframework/data/repository/config/XmlRepositoryConfigurationSource.java index eba8adf2a..d52b089ab 100644 --- a/src/main/java/org/springframework/data/repository/config/XmlRepositoryConfigurationSource.java +++ b/src/main/java/org/springframework/data/repository/config/XmlRepositoryConfigurationSource.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -34,7 +34,7 @@ import org.w3c.dom.Element; /** * XML based {@link RepositoryConfigurationSource}. Uses configuration defined on {@link Element} attributes. - * + * * @author Oliver Gierke * @author Thomas Darimont * @author Christoph Strobl @@ -59,7 +59,7 @@ public class XmlRepositoryConfigurationSource extends RepositoryConfigurationSou /** * Creates a new {@link XmlRepositoryConfigurationSource} using the given {@link Element} and {@link ParserContext}. - * + * * @param element must not be {@literal null}. * @param context must not be {@literal null}. * @param environment must not be {@literal null}. @@ -78,7 +78,7 @@ public class XmlRepositoryConfigurationSource extends RepositoryConfigurationSou this.excludeFilters = parser.parseTypeFilters(element, Type.EXCLUDE); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.config.RepositoryConfigurationSource#getSource() */ @@ -87,7 +87,7 @@ public class XmlRepositoryConfigurationSource extends RepositoryConfigurationSou return context.extractSource(element); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.config.RepositoryConfigurationSource#getBasePackages() */ @@ -98,7 +98,7 @@ public class XmlRepositoryConfigurationSource extends RepositoryConfigurationSou return Streamable.of(StringUtils.delimitedListToStringArray(attribute, ",", " ")); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.config.RepositoryConfigurationSource#getQueryLookupStrategyKey() */ @@ -106,7 +106,7 @@ public class XmlRepositoryConfigurationSource extends RepositoryConfigurationSou return getNullDefaultedAttribute(element, QUERY_LOOKUP_STRATEGY).map(Key::create); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.config.RepositoryConfigurationSource#getNamedQueryLocation() */ @@ -116,14 +116,14 @@ public class XmlRepositoryConfigurationSource extends RepositoryConfigurationSou /** * Returns the XML element backing the configuration. - * + * * @return the element */ public Element getElement() { return element; } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.config.RepositoryConfigurationSourceSupport#getExcludeFilters() */ @@ -148,7 +148,7 @@ public class XmlRepositoryConfigurationSource extends RepositoryConfigurationSou return getNullDefaultedAttribute(element, REPOSITORY_IMPL_POSTFIX); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.config.RepositoryConfigurationSource#getRepositoryFactoryBeanName() */ @@ -156,7 +156,7 @@ public class XmlRepositoryConfigurationSource extends RepositoryConfigurationSou return getNullDefaultedAttribute(element, REPOSITORY_FACTORY_BEAN_CLASS_NAME); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.config.RepositoryConfigurationSource#getRepositoryBaseClassName() */ @@ -165,7 +165,7 @@ public class XmlRepositoryConfigurationSource extends RepositoryConfigurationSou return getNullDefaultedAttribute(element, REPOSITORY_BASE_CLASS_NAME); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.config.RepositoryConfigurationSource#getRepositoryFactoryBeanClassName() */ @@ -180,7 +180,7 @@ public class XmlRepositoryConfigurationSource extends RepositoryConfigurationSou return StringUtils.hasText(attribute) ? Optional.of(attribute) : Optional.empty(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.config.RepositoryConfigurationSourceSupport#isConsideringNestedRepositoriesEnabled() */ @@ -190,7 +190,7 @@ public class XmlRepositoryConfigurationSource extends RepositoryConfigurationSou return getNullDefaultedAttribute(element, CONSIDER_NESTED_REPOSITORIES).map(Boolean::parseBoolean).orElse(false); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.config.RepositoryConfigurationSource#getAttribute(java.lang.String) */ @@ -203,7 +203,7 @@ public class XmlRepositoryConfigurationSource extends RepositoryConfigurationSou return StringUtils.hasText(attribute) ? Optional.of(attribute) : Optional.empty(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.config.RepositoryConfigurationSource#usesExplicitFilters() */ diff --git a/src/main/java/org/springframework/data/repository/core/CrudMethods.java b/src/main/java/org/springframework/data/repository/core/CrudMethods.java index 057208c99..411af4e0f 100644 --- a/src/main/java/org/springframework/data/repository/core/CrudMethods.java +++ b/src/main/java/org/springframework/data/repository/core/CrudMethods.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2016 the original author or authors. + * Copyright 2013-2018 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. @@ -25,7 +25,7 @@ import org.springframework.data.repository.PagingAndSortingRepository; /** * Meta-information about the CRUD methods of a repository. - * + * * @author Oliver Gierke * @since 1.6 */ @@ -34,7 +34,7 @@ public interface CrudMethods { /** * Returns the method to be used for saving entities. Usually signature compatible to * {@link CrudRepository#save(Object)}. - * + * * @return the method to save entities or {@link Optional#empty()} if none exposed. * @see #hasSaveMethod() */ @@ -42,7 +42,7 @@ public interface CrudMethods { /** * Returns whether the repository exposes a save method at all. - * + * * @return */ boolean hasSaveMethod(); @@ -50,7 +50,7 @@ public interface CrudMethods { /** * Returns the find all method of the repository. Implementations should prefer more detailed methods like * {@link PagingAndSortingRepository}'s taking a {@link Pageable} or {@link Sort} instance. - * + * * @return the find all method of the repository or {@link Optional#empty()} if not available. * @see #hasFindAllMethod() */ @@ -58,7 +58,7 @@ public interface CrudMethods { /** * Returns whether the repository exposes a find all method at all. - * + * * @return */ boolean hasFindAllMethod(); @@ -66,7 +66,7 @@ public interface CrudMethods { /** * Returns the find one method of the repository. Usually signature compatible to * {@link CrudRepository#findById(Object)} - * + * * @return the find one method of the repository or {@link Optional#empty()} if not available. * @see #hasFindOneMethod() */ @@ -74,14 +74,14 @@ public interface CrudMethods { /** * Returns whether the repository exposes a find one method. - * + * * @return */ boolean hasFindOneMethod(); /** * Returns the delete method of the repository. Will prefer a delete-by-entity method over a delete-by-id method. - * + * * @return the delete method of the repository or {@link Optional#empty()} if not available. * @see #hasDelete() */ @@ -89,7 +89,7 @@ public interface CrudMethods { /** * Returns whether the repository exposes a delete method. - * + * * @return */ boolean hasDelete(); diff --git a/src/main/java/org/springframework/data/repository/core/EntityInformation.java b/src/main/java/org/springframework/data/repository/core/EntityInformation.java index a69b950be..f3fe5ba82 100644 --- a/src/main/java/org/springframework/data/repository/core/EntityInformation.java +++ b/src/main/java/org/springframework/data/repository/core/EntityInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/repository/core/EntityMetadata.java b/src/main/java/org/springframework/data/repository/core/EntityMetadata.java index f0d89c852..a7c53cc9e 100644 --- a/src/main/java/org/springframework/data/repository/core/EntityMetadata.java +++ b/src/main/java/org/springframework/data/repository/core/EntityMetadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2011 the original author or authors. + * Copyright 2011-2018 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. @@ -17,14 +17,14 @@ package org.springframework.data.repository.core; /** * Metadata for entity types. - * + * * @author Oliver Gierke */ public interface EntityMetadata { /** * Returns the actual domain class type. - * + * * @return */ Class getJavaType(); diff --git a/src/main/java/org/springframework/data/repository/core/NamedQueries.java b/src/main/java/org/springframework/data/repository/core/NamedQueries.java index ef0c5b0c3..e85397446 100644 --- a/src/main/java/org/springframework/data/repository/core/NamedQueries.java +++ b/src/main/java/org/springframework/data/repository/core/NamedQueries.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -17,7 +17,7 @@ package org.springframework.data.repository.core; /** * Abstraction of a map of {@link NamedQueries} that can be looked up by their names. - * + * * @author Oliver Gierke */ public interface NamedQueries { @@ -25,7 +25,7 @@ public interface NamedQueries { /** * Returns whether the map contains a named query for the given name. If this method returns {@literal true} you can * expect {@link #getQuery(String)} to return a non-{@literal null} query for the very same name. - * + * * @param queryName must not be {@literal null} or empty. * @return * @throws IllegalArgumentException in case the given name is {@literal null} or empty. @@ -34,7 +34,7 @@ public interface NamedQueries { /** * Returns the named query with the given name. - * + * * @param queryName must not be {@literal null} or empty. * @return * @throws IllegalArgumentException in case no query with the given name exists. diff --git a/src/main/java/org/springframework/data/repository/core/RepositoryInformation.java b/src/main/java/org/springframework/data/repository/core/RepositoryInformation.java index 079c13a71..1bafd7d6a 100644 --- a/src/main/java/org/springframework/data/repository/core/RepositoryInformation.java +++ b/src/main/java/org/springframework/data/repository/core/RepositoryInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2014 the original author or authors. + * Copyright 2011-2018 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. @@ -21,14 +21,14 @@ import org.springframework.data.util.Streamable; /** * Additional repository specific information - * + * * @author Oliver Gierke */ public interface RepositoryInformation extends RepositoryMetadata { /** * Returns the base class to be used to create the proxy backing instance. - * + * * @return */ Class getRepositoryBaseClass(); @@ -36,14 +36,14 @@ public interface RepositoryInformation extends RepositoryMetadata { /** * Returns if the configured repository interface has custom methods, that might have to be delegated to a custom * implementation. This is used to verify repository configuration. - * + * * @return */ boolean hasCustomMethod(); /** * Returns whether the given method is a custom repository method. - * + * * @param method * @return */ @@ -51,7 +51,7 @@ public interface RepositoryInformation extends RepositoryMetadata { /** * Returns whether the given method is a query method. - * + * * @param method * @return */ @@ -60,7 +60,7 @@ public interface RepositoryInformation extends RepositoryMetadata { /** * Returns whether the given method is logically a base class method. This also includes methods (re)declared in the * repository interface that match the signatures of the base implementation. - * + * * @param method must not be {@literal null}. * @return */ @@ -68,7 +68,7 @@ public interface RepositoryInformation extends RepositoryMetadata { /** * Returns all methods considered to be query methods. - * + * * @return */ Streamable getQueryMethods(); @@ -78,7 +78,7 @@ public interface RepositoryInformation extends RepositoryMetadata { * redeclares a method of the core repository interface (e.g. for transaction behavior customization). Returns the * method itself if the target class does not implement the given method. Implementations need to make sure the * {@link Method} returned can be invoked via reflection, i.e. needs to be accessible. - * + * * @param method must not be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/repository/core/RepositoryMetadata.java b/src/main/java/org/springframework/data/repository/core/RepositoryMetadata.java index e1ce205fb..89d540995 100644 --- a/src/main/java/org/springframework/data/repository/core/RepositoryMetadata.java +++ b/src/main/java/org/springframework/data/repository/core/RepositoryMetadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2016 the original author or authors. + * Copyright 2011-2018 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. @@ -23,28 +23,28 @@ import org.springframework.data.repository.support.Repositories; /** * Metadata for repository interfaces. - * + * * @author Oliver Gierke */ public interface RepositoryMetadata { /** * Returns the id class the given class is declared for. - * + * * @return the id class of the entity managed by the repository. */ Class getIdType(); /** * Returns the domain class the repository is declared for. - * + * * @return the domain class the repository is handling. */ Class getDomainType(); /** * Returns the repository interface. - * + * * @return */ Class getRepositoryInterface(); @@ -52,7 +52,7 @@ public interface RepositoryMetadata { /** * Returns the domain class returned by the given {@link Method}. Will extract the type from {@link Collection}s and * {@link org.springframework.data.domain.Page} as well. - * + * * @param method * @return */ @@ -60,14 +60,14 @@ public interface RepositoryMetadata { /** * Returns {@link CrudMethods} meta information for the repository. - * + * * @return */ CrudMethods getCrudMethods(); /** * Returns whether the repository is a paging one. - * + * * @return */ boolean isPagingRepository(); @@ -75,7 +75,7 @@ public interface RepositoryMetadata { /** * Returns the set of types the repository shall be discoverable for when trying to look up a repository by domain * type. - * + * * @see Repositories#getRepositoryFor(Class) * @return the set of types the repository shall be discoverable for when trying to look up a repository by domain * type, must not be {@literal null}. @@ -85,7 +85,7 @@ public interface RepositoryMetadata { /** * Returns whether the repository is a reactive one, i.e. if it uses reactive types in one of its methods. - * + * * @return * @since 2.0 */ diff --git a/src/main/java/org/springframework/data/repository/core/support/AbstractEntityInformation.java b/src/main/java/org/springframework/data/repository/core/support/AbstractEntityInformation.java index d929b6ebc..30355e4ad 100644 --- a/src/main/java/org/springframework/data/repository/core/support/AbstractEntityInformation.java +++ b/src/main/java/org/springframework/data/repository/core/support/AbstractEntityInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/repository/core/support/AbstractRepositoryMetadata.java b/src/main/java/org/springframework/data/repository/core/support/AbstractRepositoryMetadata.java index d9b470aaf..18c9faf8b 100644 --- a/src/main/java/org/springframework/data/repository/core/support/AbstractRepositoryMetadata.java +++ b/src/main/java/org/springframework/data/repository/core/support/AbstractRepositoryMetadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -33,7 +33,7 @@ import org.springframework.util.Assert; /** * Base class for {@link RepositoryMetadata} implementations. - * + * * @author Oliver Gierke * @author Thomas Darimont * @author Jens Schauder @@ -46,7 +46,7 @@ public abstract class AbstractRepositoryMetadata implements RepositoryMetadata { /** * Creates a new {@link AbstractRepositoryMetadata}. - * + * * @param repositoryInterface must not be {@literal null} and must be an interface. */ public AbstractRepositoryMetadata(Class repositoryInterface) { @@ -61,7 +61,7 @@ public abstract class AbstractRepositoryMetadata implements RepositoryMetadata { /** * Creates a new {@link RepositoryMetadata} for the given repository interface. - * + * * @param repositoryInterface must not be {@literal null}. * @since 1.9 * @return @@ -74,7 +74,7 @@ public abstract class AbstractRepositoryMetadata implements RepositoryMetadata { : new AnnotationRepositoryMetadata(repositoryInterface); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.RepositoryMetadata#getReturnedDomainClass(java.lang.reflect.Method) */ @@ -82,7 +82,7 @@ public abstract class AbstractRepositoryMetadata implements RepositoryMetadata { return QueryExecutionConverters.unwrapWrapperTypes(typeInformation.getReturnType(method)).getType(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.RepositoryMetadata#getRepositoryInterface() */ @@ -90,7 +90,7 @@ public abstract class AbstractRepositoryMetadata implements RepositoryMetadata { return this.repositoryInterface; } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.RepositoryMetadata#getCrudMethods() */ @@ -99,7 +99,7 @@ public abstract class AbstractRepositoryMetadata implements RepositoryMetadata { return this.crudMethods.get(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.RepositoryMetadata#isPagingRepository() */ @@ -111,7 +111,7 @@ public abstract class AbstractRepositoryMetadata implements RepositoryMetadata { .orElse(false); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.RepositoryMetadata#getAlternativeDomainTypes() */ @@ -120,7 +120,7 @@ public abstract class AbstractRepositoryMetadata implements RepositoryMetadata { return Collections.emptySet(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.RepositoryMetadata#isReactiveRepository() */ diff --git a/src/main/java/org/springframework/data/repository/core/support/AnnotationRepositoryMetadata.java b/src/main/java/org/springframework/data/repository/core/support/AnnotationRepositoryMetadata.java index 1fb6fb9fe..80c9573ff 100644 --- a/src/main/java/org/springframework/data/repository/core/support/AnnotationRepositoryMetadata.java +++ b/src/main/java/org/springframework/data/repository/core/support/AnnotationRepositoryMetadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2013 the original author or authors. + * Copyright 2011-2018 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. @@ -22,7 +22,7 @@ import org.springframework.util.Assert; /** * {@link RepositoryMetadata} implementation inspecting the given repository interface for a * {@link RepositoryDefinition} annotation. - * + * * @author Oliver Gierke * @author Thomas Darimont */ @@ -37,7 +37,7 @@ public class AnnotationRepositoryMetadata extends AbstractRepositoryMetadata { /** * Creates a new {@link AnnotationRepositoryMetadata} instance looking up repository types from a * {@link RepositoryDefinition} annotation. - * + * * @param repositoryInterface must not be {@literal null}. */ public AnnotationRepositoryMetadata(Class repositoryInterface) { @@ -49,7 +49,7 @@ public class AnnotationRepositoryMetadata extends AbstractRepositoryMetadata { this.domainType = resolveDomainType(repositoryInterface); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.RepositoryMetadata#getIdType() */ @@ -58,7 +58,7 @@ public class AnnotationRepositoryMetadata extends AbstractRepositoryMetadata { return this.idType; } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.RepositoryMetadata#getDomainType() */ diff --git a/src/main/java/org/springframework/data/repository/core/support/DefaultCrudMethods.java b/src/main/java/org/springframework/data/repository/core/support/DefaultCrudMethods.java index aad400365..1715bb687 100644 --- a/src/main/java/org/springframework/data/repository/core/support/DefaultCrudMethods.java +++ b/src/main/java/org/springframework/data/repository/core/support/DefaultCrudMethods.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2016 the original author or authors. + * Copyright 2013-2018 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. @@ -39,7 +39,7 @@ import org.springframework.util.ReflectionUtils; * Default implementation to discover CRUD methods based on the given {@link RepositoryMetadata}. Will detect methods * exposed in {@link CrudRepository} but also hand crafted CRUD methods that are signature compatible with the ones on * {@link CrudRepository}. - * + * * @author Oliver Gierke * @author Thomas Darimont * @since 1.6 @@ -60,7 +60,7 @@ public class DefaultCrudMethods implements CrudMethods { /** * Creates a new {@link DefaultCrudMethods} using the given {@link RepositoryMetadata}. - * + * * @param metadata must not be {@literal null}. */ public DefaultCrudMethods(RepositoryMetadata metadata) { @@ -79,7 +79,7 @@ public class DefaultCrudMethods implements CrudMethods { *
  • a {@link RepositoryMetadata#getDomainType()} as first parameter over
  • *
  • an {@link Object} as first parameter.
  • * - * + * * @param metadata must not be {@literal null}. * @return the most suitable method or {@literal null} if no method could be found. */ @@ -99,7 +99,7 @@ public class DefaultCrudMethods implements CrudMethods { *
  • a {@link Object} as first parameter over
  • *
  • an {@link Iterable} as first parameter.
  • * - * + * * @param metadata must not be {@literal null}. * @return the most suitable method or {@literal null} if no method could be found. */ @@ -127,7 +127,7 @@ public class DefaultCrudMethods implements CrudMethods { *
  • a {@link Sort} as first parameter over
  • *
  • no parameters.
  • * - * + * * @param metadata must not be {@literal null}. * @return the most suitable method or {@literal null} if no method could be found. */ @@ -152,7 +152,7 @@ public class DefaultCrudMethods implements CrudMethods { *
  • a {@link RepositoryMetadata#getIdType()} as first parameter over
  • *
  • a {@link Object} as first parameter
  • * - * + * * @param metadata must not be {@literal null}. * @return the most suitable method or {@literal null} if no method could be found. */ @@ -167,7 +167,7 @@ public class DefaultCrudMethods implements CrudMethods { /** * Looks up the most specific method for the given method and type and returns an accessible version of discovered * {@link Method} if found. - * + * * @param method * @param type * @see ClassUtils#getMostSpecificMethod(Method, Class) @@ -181,7 +181,7 @@ public class DefaultCrudMethods implements CrudMethods { .findFirst(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.support.CrudMethods#getSaveMethod() */ @@ -190,7 +190,7 @@ public class DefaultCrudMethods implements CrudMethods { return saveMethod; } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.support.CrudMethods#hasSaveMethod() */ @@ -199,7 +199,7 @@ public class DefaultCrudMethods implements CrudMethods { return saveMethod.isPresent(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.support.CrudMethods#getFindAllMethod() */ @@ -208,7 +208,7 @@ public class DefaultCrudMethods implements CrudMethods { return findAllMethod; } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.support.CrudMethods#hasFindAllMethod() */ @@ -217,7 +217,7 @@ public class DefaultCrudMethods implements CrudMethods { return findAllMethod.isPresent(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.support.CrudMethods#getFindOneMethod() */ @@ -226,7 +226,7 @@ public class DefaultCrudMethods implements CrudMethods { return findOneMethod; } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.support.CrudMethods#hasFindOneMethod() */ @@ -235,7 +235,7 @@ public class DefaultCrudMethods implements CrudMethods { return findOneMethod.isPresent(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.support.CrudMethods#hasDelete() */ @@ -244,7 +244,7 @@ public class DefaultCrudMethods implements CrudMethods { return this.deleteMethod.isPresent(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.support.CrudMethods#getDeleteMethod() */ diff --git a/src/main/java/org/springframework/data/repository/core/support/DefaultRepositoryInformation.java b/src/main/java/org/springframework/data/repository/core/support/DefaultRepositoryInformation.java index 88e963bb8..cdedaeae2 100644 --- a/src/main/java/org/springframework/data/repository/core/support/DefaultRepositoryInformation.java +++ b/src/main/java/org/springframework/data/repository/core/support/DefaultRepositoryInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/repository/core/support/DefaultRepositoryMetadata.java b/src/main/java/org/springframework/data/repository/core/support/DefaultRepositoryMetadata.java index be839993a..83813056f 100644 --- a/src/main/java/org/springframework/data/repository/core/support/DefaultRepositoryMetadata.java +++ b/src/main/java/org/springframework/data/repository/core/support/DefaultRepositoryMetadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2014 the original author or authors. + * Copyright 2011-2018 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. @@ -29,7 +29,7 @@ import org.springframework.util.Assert; /** * Default implementation of {@link RepositoryMetadata}. Will inspect generic types of {@link Repository} to find out * about domain and id class. - * + * * @author Oliver Gierke * @author Thomas Darimont */ @@ -44,7 +44,7 @@ public class DefaultRepositoryMetadata extends AbstractRepositoryMetadata { /** * Creates a new {@link DefaultRepositoryMetadata} for the given repository interface. - * + * * @param repositoryInterface must not be {@literal null}. */ public DefaultRepositoryMetadata(Class repositoryInterface) { diff --git a/src/main/java/org/springframework/data/repository/core/support/DelegatingEntityInformation.java b/src/main/java/org/springframework/data/repository/core/support/DelegatingEntityInformation.java index 2c80bb989..6c963669f 100644 --- a/src/main/java/org/springframework/data/repository/core/support/DelegatingEntityInformation.java +++ b/src/main/java/org/springframework/data/repository/core/support/DelegatingEntityInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/main/java/org/springframework/data/repository/core/support/EventPublishingRepositoryProxyPostProcessor.java b/src/main/java/org/springframework/data/repository/core/support/EventPublishingRepositoryProxyPostProcessor.java index 999dff22d..a8020842c 100644 --- a/src/main/java/org/springframework/data/repository/core/support/EventPublishingRepositoryProxyPostProcessor.java +++ b/src/main/java/org/springframework/data/repository/core/support/EventPublishingRepositoryProxyPostProcessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -44,7 +44,7 @@ import org.springframework.util.ReflectionUtils; * {@link DomainEvents}. If no such method can be detected on the aggregate root, no interceptor is added. Additionally, * the aggregate root can expose a method annotated with {@link AfterDomainEventPublication}. If present, the method * will be invoked after all events have been published. - * + * * @author Oliver Gierke * @author Christoph Strobl * @author Yuki Yoshida @@ -56,7 +56,7 @@ public class EventPublishingRepositoryProxyPostProcessor implements RepositoryPr private final ApplicationEventPublisher publisher; - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.support.RepositoryProxyPostProcessor#postProcess(org.springframework.aop.framework.ProxyFactory, org.springframework.data.repository.core.RepositoryInformation) */ @@ -84,7 +84,7 @@ public class EventPublishingRepositoryProxyPostProcessor implements RepositoryPr private final EventPublishingMethod eventMethod; private final ApplicationEventPublisher publisher; - /* + /* * (non-Javadoc) * @see org.aopalliance.intercept.MethodInterceptor#invoke(org.aopalliance.intercept.MethodInvocation) */ @@ -123,7 +123,7 @@ public class EventPublishingRepositoryProxyPostProcessor implements RepositoryPr /** * Creates an {@link EventPublishingMethod} for the given type. - * + * * @param type must not be {@literal null}. * @return an {@link EventPublishingMethod} for the given type or {@literal null} in case the given type does not * expose an event publishing method. @@ -149,7 +149,7 @@ public class EventPublishingRepositoryProxyPostProcessor implements RepositoryPr /** * Publishes all events in the given aggregate root using the given {@link ApplicationEventPublisher}. - * + * * @param object can be {@literal null}. * @param publisher must not be {@literal null}. */ @@ -173,7 +173,7 @@ public class EventPublishingRepositoryProxyPostProcessor implements RepositoryPr /** * Returns the current {@link EventPublishingMethod} or {@literal null} if it's the default value. - * + * * @return */ @Nullable @@ -193,7 +193,7 @@ public class EventPublishingRepositoryProxyPostProcessor implements RepositoryPr /** * Creates a new {@link EventPublishingMethod} using the given pre-populated * {@link AnnotationDetectionMethodCallback} looking up an optional clearing method from the given callback. - * + * * @param publishing must not be {@literal null}. * @param clearing must not be {@literal null}. * @return @@ -213,7 +213,7 @@ public class EventPublishingRepositoryProxyPostProcessor implements RepositoryPr /** * Returns the {@link Method} supposed to be invoked for event clearing or {@literal null} if none is found. - * + * * @param clearing must not be {@literal null}. * @return */ @@ -233,7 +233,7 @@ public class EventPublishingRepositoryProxyPostProcessor implements RepositoryPr /** * Returns the given source object as collection, i.e. collections are returned as is, objects are turned into a * one-element collection, {@literal null} will become an empty collection. - * + * * @param source can be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/repository/core/support/ExampleMatcherAccessor.java b/src/main/java/org/springframework/data/repository/core/support/ExampleMatcherAccessor.java index 55a29217d..c337ca73d 100644 --- a/src/main/java/org/springframework/data/repository/core/support/ExampleMatcherAccessor.java +++ b/src/main/java/org/springframework/data/repository/core/support/ExampleMatcherAccessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/main/java/org/springframework/data/repository/core/support/MethodInvocationValidator.java b/src/main/java/org/springframework/data/repository/core/support/MethodInvocationValidator.java index 37ad2373b..653ae5963 100644 --- a/src/main/java/org/springframework/data/repository/core/support/MethodInvocationValidator.java +++ b/src/main/java/org/springframework/data/repository/core/support/MethodInvocationValidator.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/main/java/org/springframework/data/repository/core/support/MethodLookup.java b/src/main/java/org/springframework/data/repository/core/support/MethodLookup.java index 33de571fb..aa055c51a 100644 --- a/src/main/java/org/springframework/data/repository/core/support/MethodLookup.java +++ b/src/main/java/org/springframework/data/repository/core/support/MethodLookup.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/main/java/org/springframework/data/repository/core/support/MethodLookups.java b/src/main/java/org/springframework/data/repository/core/support/MethodLookups.java index 9b013842a..4f574a3a0 100644 --- a/src/main/java/org/springframework/data/repository/core/support/MethodLookups.java +++ b/src/main/java/org/springframework/data/repository/core/support/MethodLookups.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. @@ -114,7 +114,7 @@ interface MethodLookups { /** * Creates a new {@link RepositoryAwareMethodLookup} for the given {@link RepositoryMetadata}. - * + * * @param repositoryMetadata must not be {@literal null}. */ public RepositoryAwareMethodLookup(RepositoryMetadata repositoryMetadata) { diff --git a/src/main/java/org/springframework/data/repository/core/support/PersistableEntityInformation.java b/src/main/java/org/springframework/data/repository/core/support/PersistableEntityInformation.java index b0f6217ff..d72eaf8ee 100644 --- a/src/main/java/org/springframework/data/repository/core/support/PersistableEntityInformation.java +++ b/src/main/java/org/springframework/data/repository/core/support/PersistableEntityInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. diff --git a/src/main/java/org/springframework/data/repository/core/support/PersistenceExceptionTranslationRepositoryProxyPostProcessor.java b/src/main/java/org/springframework/data/repository/core/support/PersistenceExceptionTranslationRepositoryProxyPostProcessor.java index 1d6000daf..d77fc671c 100644 --- a/src/main/java/org/springframework/data/repository/core/support/PersistenceExceptionTranslationRepositoryProxyPostProcessor.java +++ b/src/main/java/org/springframework/data/repository/core/support/PersistenceExceptionTranslationRepositoryProxyPostProcessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2014 the original author or authors. + * Copyright 2013-2018 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. @@ -24,7 +24,7 @@ import org.springframework.util.Assert; /** * {@link RepositoryProxyPostProcessor} to register a {@link PersistenceExceptionTranslationInterceptor} on the * repository proxy. - * + * * @author Oliver Gierke */ public class PersistenceExceptionTranslationRepositoryProxyPostProcessor implements RepositoryProxyPostProcessor { @@ -34,7 +34,7 @@ public class PersistenceExceptionTranslationRepositoryProxyPostProcessor impleme /** * Creates a new {@link PersistenceExceptionTranslationRepositoryProxyPostProcessor} using the given * {@link ListableBeanFactory}. - * + * * @param beanFactory must not be {@literal null}. */ public PersistenceExceptionTranslationRepositoryProxyPostProcessor(ListableBeanFactory beanFactory) { diff --git a/src/main/java/org/springframework/data/repository/core/support/PersistentEntityInformation.java b/src/main/java/org/springframework/data/repository/core/support/PersistentEntityInformation.java index c876afd27..1611aba34 100644 --- a/src/main/java/org/springframework/data/repository/core/support/PersistentEntityInformation.java +++ b/src/main/java/org/springframework/data/repository/core/support/PersistentEntityInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. diff --git a/src/main/java/org/springframework/data/repository/core/support/PropertiesBasedNamedQueries.java b/src/main/java/org/springframework/data/repository/core/support/PropertiesBasedNamedQueries.java index 9f50385fa..8590cc815 100644 --- a/src/main/java/org/springframework/data/repository/core/support/PropertiesBasedNamedQueries.java +++ b/src/main/java/org/springframework/data/repository/core/support/PropertiesBasedNamedQueries.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -25,7 +25,7 @@ import org.springframework.util.Assert; /** * {@link NamedQueries} implementation backed by a {@link Properties} instance. - * + * * @author Oliver Gierke */ @RequiredArgsConstructor diff --git a/src/main/java/org/springframework/data/repository/core/support/QueryCreationListener.java b/src/main/java/org/springframework/data/repository/core/support/QueryCreationListener.java index 879517562..eb9008e61 100644 --- a/src/main/java/org/springframework/data/repository/core/support/QueryCreationListener.java +++ b/src/main/java/org/springframework/data/repository/core/support/QueryCreationListener.java @@ -1,5 +1,5 @@ /* - * Copyright 2011 the original author or authors. + * Copyright 2011-2018 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. @@ -19,14 +19,14 @@ import org.springframework.data.repository.query.RepositoryQuery; /** * Callback for listeners that want to execute functionality on {@link RepositoryQuery} creation. - * + * * @author Oliver Gierke */ public interface QueryCreationListener { /** * Will be invoked just after the {@link RepositoryQuery} was created. - * + * * @param query */ void onCreation(T query); diff --git a/src/main/java/org/springframework/data/repository/core/support/QueryExecutionResultHandler.java b/src/main/java/org/springframework/data/repository/core/support/QueryExecutionResultHandler.java index 03dfbb24d..284e8e8f1 100644 --- a/src/main/java/org/springframework/data/repository/core/support/QueryExecutionResultHandler.java +++ b/src/main/java/org/springframework/data/repository/core/support/QueryExecutionResultHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -52,7 +52,7 @@ class QueryExecutionResultHandler { /** * Post-processes the given result of a query invocation to the given type. - * + * * @param result can be {@literal null}. * @param returnTypeDescriptor can be {@literal null}, if so, no conversion is performed. * @return @@ -116,7 +116,7 @@ class QueryExecutionResultHandler { /** * Unwraps the given value if it's a JDK 8 {@link Optional}. - * + * * @param source can be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/repository/core/support/ReactiveRepositoryFactorySupport.java b/src/main/java/org/springframework/data/repository/core/support/ReactiveRepositoryFactorySupport.java index 5af4ea4be..96b119c13 100644 --- a/src/main/java/org/springframework/data/repository/core/support/ReactiveRepositoryFactorySupport.java +++ b/src/main/java/org/springframework/data/repository/core/support/ReactiveRepositoryFactorySupport.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 the original author or authors. + * Copyright 2016-2018 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. @@ -28,14 +28,14 @@ import org.springframework.util.ClassUtils; /** * Base class for repository factories to use reactive support. Centralizes the validation of the classpath setup in * case a repository uses reactive types. - * + * * @author Mark Paluch * @author Oliver Gierke * @since 2.0 */ public abstract class ReactiveRepositoryFactorySupport extends RepositoryFactorySupport { - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.support.RepositoryFactorySupport#validate(org.springframework.data.repository.core.RepositoryMetadata) */ diff --git a/src/main/java/org/springframework/data/repository/core/support/ReactiveRepositoryInformation.java b/src/main/java/org/springframework/data/repository/core/support/ReactiveRepositoryInformation.java index 0e3373ac4..c077267ce 100644 --- a/src/main/java/org/springframework/data/repository/core/support/ReactiveRepositoryInformation.java +++ b/src/main/java/org/springframework/data/repository/core/support/ReactiveRepositoryInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/main/java/org/springframework/data/repository/core/support/ReflectionEntityInformation.java b/src/main/java/org/springframework/data/repository/core/support/ReflectionEntityInformation.java index 5cd05b4c3..23eb3f55f 100644 --- a/src/main/java/org/springframework/data/repository/core/support/ReflectionEntityInformation.java +++ b/src/main/java/org/springframework/data/repository/core/support/ReflectionEntityInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/main/java/org/springframework/data/repository/core/support/RepositoryComposition.java b/src/main/java/org/springframework/data/repository/core/support/RepositoryComposition.java index 5f97ce333..8b235f1f9 100644 --- a/src/main/java/org/springframework/data/repository/core/support/RepositoryComposition.java +++ b/src/main/java/org/springframework/data/repository/core/support/RepositoryComposition.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/main/java/org/springframework/data/repository/core/support/RepositoryFactoryBeanSupport.java b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactoryBeanSupport.java index 6bef828ce..358a3cd9b 100644 --- a/src/main/java/org/springframework/data/repository/core/support/RepositoryFactoryBeanSupport.java +++ b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactoryBeanSupport.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. diff --git a/src/main/java/org/springframework/data/repository/core/support/RepositoryFactoryInformation.java b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactoryInformation.java index 9c583bb54..eb0ee541b 100644 --- a/src/main/java/org/springframework/data/repository/core/support/RepositoryFactoryInformation.java +++ b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactoryInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2012 the original author or authors. + * Copyright 2011-2018 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. @@ -27,21 +27,21 @@ import org.springframework.data.repository.query.QueryMethod; * Interface for components that can provide meta-information about a repository factory, the backing * {@link EntityInformation} and {@link RepositoryInformation} as well as the {@link QueryMethod}s exposed by the * repository. - * + * * @author Oliver Gierke */ public interface RepositoryFactoryInformation { /** * Returns {@link EntityInformation} the repository factory is using. - * + * * @return */ EntityInformation getEntityInformation(); /** * Returns the {@link RepositoryInformation} to determine meta-information about the repository being used. - * + * * @return */ RepositoryInformation getRepositoryInformation(); @@ -49,14 +49,14 @@ public interface RepositoryFactoryInformation { /** * Returns the {@link PersistentEntity} managed by the underlying repository. Can be {@literal null} in case the * underlying persistence mechanism does not expose a {@link MappingContext}. - * + * * @return */ PersistentEntity getPersistentEntity(); /** * Returns all {@link QueryMethod}s declared for that repository. - * + * * @return */ List getQueryMethods(); diff --git a/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java index 20778cc8e..dbdc42c2a 100644 --- a/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java +++ b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. @@ -326,7 +326,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Returns the {@link ProjectionFactory} to be used with the repository instances created. - * + * * @param classLoader will never be {@literal null}. * @param beanFactory will never be {@literal null}. * @return will never be {@literal null}. diff --git a/src/main/java/org/springframework/data/repository/core/support/RepositoryFragment.java b/src/main/java/org/springframework/data/repository/core/support/RepositoryFragment.java index b17e99e56..66fd51e98 100644 --- a/src/main/java/org/springframework/data/repository/core/support/RepositoryFragment.java +++ b/src/main/java/org/springframework/data/repository/core/support/RepositoryFragment.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/main/java/org/springframework/data/repository/core/support/RepositoryFragmentsFactoryBean.java b/src/main/java/org/springframework/data/repository/core/support/RepositoryFragmentsFactoryBean.java index 0288a1797..68b7ff401 100644 --- a/src/main/java/org/springframework/data/repository/core/support/RepositoryFragmentsFactoryBean.java +++ b/src/main/java/org/springframework/data/repository/core/support/RepositoryFragmentsFactoryBean.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/main/java/org/springframework/data/repository/core/support/RepositoryProxyPostProcessor.java b/src/main/java/org/springframework/data/repository/core/support/RepositoryProxyPostProcessor.java index dbd17b015..66feb9be9 100644 --- a/src/main/java/org/springframework/data/repository/core/support/RepositoryProxyPostProcessor.java +++ b/src/main/java/org/springframework/data/repository/core/support/RepositoryProxyPostProcessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2014 the original author or authors. + * Copyright 2008-2018 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. @@ -21,14 +21,14 @@ import org.springframework.data.repository.core.RepositoryInformation; /** * Callback interface used during repository proxy creation. Allows manipulating the {@link ProxyFactory} creating the * repository. - * + * * @author Oliver Gierke */ public interface RepositoryProxyPostProcessor { /** * Manipulates the {@link ProxyFactory}, e.g. add further interceptors to it. - * + * * @param factory will never be {@literal null}. * @param repositoryInformation will never be {@literal null}. */ diff --git a/src/main/java/org/springframework/data/repository/core/support/SurroundingTransactionDetectorMethodInterceptor.java b/src/main/java/org/springframework/data/repository/core/support/SurroundingTransactionDetectorMethodInterceptor.java index c35024cba..a3c395ef4 100644 --- a/src/main/java/org/springframework/data/repository/core/support/SurroundingTransactionDetectorMethodInterceptor.java +++ b/src/main/java/org/springframework/data/repository/core/support/SurroundingTransactionDetectorMethodInterceptor.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -26,7 +26,7 @@ import org.springframework.transaction.support.TransactionSynchronizationManager * {@link #isSurroundingTransactionActive()}. Useful in case subsequent interceptors might create transactions * themselves but downstream components have to find out whether there was one running before the call entered the * proxy. - * + * * @author Oliver Gierke * @author Christoph Strobl * @since 1.13 @@ -40,14 +40,14 @@ public enum SurroundingTransactionDetectorMethodInterceptor implements MethodInt /** * Returns whether a transaction was active before the method call entered the repository proxy. - * + * * @return */ public boolean isSurroundingTransactionActive() { return Boolean.TRUE == SURROUNDING_TX_ACTIVE.get(); } - /* + /* * (non-Javadoc) * @see org.aopalliance.intercept.MethodInterceptor#invoke(org.aopalliance.intercept.MethodInvocation) */ diff --git a/src/main/java/org/springframework/data/repository/core/support/TransactionalRepositoryFactoryBeanSupport.java b/src/main/java/org/springframework/data/repository/core/support/TransactionalRepositoryFactoryBeanSupport.java index b4cf8a225..466cd6fc5 100644 --- a/src/main/java/org/springframework/data/repository/core/support/TransactionalRepositoryFactoryBeanSupport.java +++ b/src/main/java/org/springframework/data/repository/core/support/TransactionalRepositoryFactoryBeanSupport.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2016 the original author or authors. + * Copyright 2008-2018 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. @@ -28,7 +28,7 @@ import org.springframework.util.Assert; * Extension of {@link RepositoryFactoryBeanSupport} to add transactional capabilities to the repository proxy. Will * register a {@link TransactionalRepositoryProxyPostProcessor} that in turn adds a {@link TransactionInterceptor} to * the repository proxy to be created. - * + * * @author Oliver Gierke */ public abstract class TransactionalRepositoryFactoryBeanSupport, S, ID> @@ -41,7 +41,7 @@ public abstract class TransactionalRepositoryFactoryBeanSupport repositoryInterface) { @@ -52,7 +52,7 @@ public abstract class TransactionalRepositoryFactoryBeanSupport annotationParsers) { @@ -222,7 +222,7 @@ class TransactionalRepositoryProxyPostProcessor implements RepositoryProxyPostPr * parsing known annotations into Spring's metadata attribute class. Returns {@code null} if it's not transactional. *

    * Can be overridden to support custom annotations that carry transaction metadata. - * + * * @param ae the annotated method or class * @return TransactionAttribute the configured transaction attribute, or {@code null} if none was found */ @@ -275,7 +275,7 @@ class TransactionalRepositoryProxyPostProcessor implements RepositoryProxyPostPr * This implementation caches attributes by method after they are first used. If it is ever desirable to allow dynamic * changing of transaction attributes (which is very unlikely), caching could be made configurable. Caching is * desirable because of the cost of evaluating rollback rules. - * + * * @author Rod Johnson * @author Juergen Hoeller * @since 1.1 @@ -326,7 +326,7 @@ class TransactionalRepositoryProxyPostProcessor implements RepositoryProxyPostPr * Determine the transaction attribute for this method invocation. *

    * Defaults to the class's transaction attribute if no method attribute is found. - * + * * @param method the method for the current invocation (never null) * @param targetClass the target class for this invocation (may be null) * @return TransactionAttribute for this method, or null if the method is not transactional @@ -364,7 +364,7 @@ class TransactionalRepositoryProxyPostProcessor implements RepositoryProxyPostPr *

    * Must not produce same key for overloaded methods. Must produce same key for different instances of the same * method. - * + * * @param method the method (never null) * @param targetClass the target class (may be null) * @return the cache key (never null) @@ -376,7 +376,7 @@ class TransactionalRepositoryProxyPostProcessor implements RepositoryProxyPostPr /** * Same signature as {@link #getTransactionAttribute}, but doesn't cache the result. * {@link #getTransactionAttribute} is effectively a caching decorator for this method. - * + * * @see #getTransactionAttribute */ private TransactionAttribute computeTransactionAttribute(Method method, Class targetClass) { @@ -451,7 +451,7 @@ class TransactionalRepositoryProxyPostProcessor implements RepositoryProxyPostPr /** * Subclasses need to implement this to return the transaction attribute for the given method, if any. - * + * * @param method the method to retrieve the attribute for * @return all transaction attribute associated with this method (or null if none) */ @@ -459,7 +459,7 @@ class TransactionalRepositoryProxyPostProcessor implements RepositoryProxyPostPr /** * Subclasses need to implement this to return the transaction attribute for the given class, if any. - * + * * @param clazz the class to retrieve the attribute for * @return all transaction attribute associated with this class (or null if none) */ diff --git a/src/main/java/org/springframework/data/repository/history/RevisionRepository.java b/src/main/java/org/springframework/data/repository/history/RevisionRepository.java index d7e31af2d..b973bdc90 100755 --- a/src/main/java/org/springframework/data/repository/history/RevisionRepository.java +++ b/src/main/java/org/springframework/data/repository/history/RevisionRepository.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2016 the original author or authors. + * Copyright 2012-2018 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. @@ -27,7 +27,7 @@ import org.springframework.data.repository.Repository; /** * A repository which can access entities held in a variety of {@link Revisions}. - * + * * @author Oliver Gierke * @author Philipp Huegelmeyer */ @@ -36,7 +36,7 @@ public interface RevisionRepository> ext /** * Returns the revision of the entity it was last changed in. - * + * * @param id must not be {@literal null}. * @return */ @@ -44,7 +44,7 @@ public interface RevisionRepository> ext /** * Returns all {@link Revisions} of an entity with the given id. - * + * * @param id must not be {@literal null}. * @return */ @@ -53,7 +53,7 @@ public interface RevisionRepository> ext /** * Returns a {@link Page} of revisions for the entity with the given id. Note, that it's not guaranteed that * implementations have to support sorting by all properties. - * + * * @param id must not be {@literal null}. * @param pageable * @see RevisionSort @@ -63,7 +63,7 @@ public interface RevisionRepository> ext /** * Returns the entity with the given ID in the given revision number. - * + * * @param id must not be {@literal null}. * @param revisionNumber must not be {@literal null}. * @return the {@link Revision} of the entity with the given ID in the given revision number. diff --git a/src/main/java/org/springframework/data/repository/history/support/RevisionEntityInformation.java b/src/main/java/org/springframework/data/repository/history/support/RevisionEntityInformation.java index e96072afc..d69bae5c9 100644 --- a/src/main/java/org/springframework/data/repository/history/support/RevisionEntityInformation.java +++ b/src/main/java/org/springframework/data/repository/history/support/RevisionEntityInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. @@ -17,7 +17,7 @@ package org.springframework.data.repository.history.support; /** * Information about a revision entity which is the class carrying revision information for an entity. - * + * * @author Oliver Gierke */ public interface RevisionEntityInformation { diff --git a/src/main/java/org/springframework/data/repository/init/AbstractRepositoryPopulatorFactoryBean.java b/src/main/java/org/springframework/data/repository/init/AbstractRepositoryPopulatorFactoryBean.java index 27d2c3997..5a8be4042 100644 --- a/src/main/java/org/springframework/data/repository/init/AbstractRepositoryPopulatorFactoryBean.java +++ b/src/main/java/org/springframework/data/repository/init/AbstractRepositoryPopulatorFactoryBean.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -31,7 +31,7 @@ import org.springframework.util.Assert; /** * Base class for {@link FactoryBean}s creating {@link ResourceReaderRepositoryPopulator}s. Sub-classes have to provide * a {@link ResourceReader} to hand into the {@link RepositoryPopulator} instance created. - * + * * @author Oliver Gierke * @author Christoph Strobl */ @@ -45,7 +45,7 @@ public abstract class AbstractRepositoryPopulatorFactoryBean /** * Configures the {@link Resource}s to be used to load objects from and initialize the repositories eventually. - * + * * @param resources must not be {@literal null}. */ public void setResources(Resource[] resources) { @@ -54,7 +54,7 @@ public abstract class AbstractRepositoryPopulatorFactoryBean this.resources = resources.clone(); } - /* + /* * (non-Javadoc) * @see org.springframework.context.ApplicationContextAware#setApplicationContext(org.springframework.context.ApplicationContext) */ @@ -62,7 +62,7 @@ public abstract class AbstractRepositoryPopulatorFactoryBean this.context = applicationContext; } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.config.AbstractFactoryBean#getObjectType() */ @@ -72,7 +72,7 @@ public abstract class AbstractRepositoryPopulatorFactoryBean return ResourceReaderRepositoryPopulator.class; } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.config.AbstractFactoryBean#createInstance() */ @@ -91,7 +91,7 @@ public abstract class AbstractRepositoryPopulatorFactoryBean return initializer; } - /* + /* * (non-Javadoc) * @see org.springframework.context.ApplicationListener#onApplicationEvent(org.springframework.context.ApplicationEvent) */ diff --git a/src/main/java/org/springframework/data/repository/init/Jackson2RepositoryPopulatorFactoryBean.java b/src/main/java/org/springframework/data/repository/init/Jackson2RepositoryPopulatorFactoryBean.java index 4ae86d4e2..c40079524 100644 --- a/src/main/java/org/springframework/data/repository/init/Jackson2RepositoryPopulatorFactoryBean.java +++ b/src/main/java/org/springframework/data/repository/init/Jackson2RepositoryPopulatorFactoryBean.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -22,7 +22,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; /** * {@link FactoryBean} to set up a {@link ResourceReaderRepositoryPopulator} with a {@link Jackson2ResourceReader}. - * + * * @author Oliver Gierke * @author Christoph Strobl * @since 1.6 @@ -40,7 +40,7 @@ public class Jackson2RepositoryPopulatorFactoryBean extends AbstractRepositoryPo this.mapper = mapper; } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.init.AbstractRepositoryPopulatorFactoryBean#getResourceReader() */ diff --git a/src/main/java/org/springframework/data/repository/init/Jackson2ResourceReader.java b/src/main/java/org/springframework/data/repository/init/Jackson2ResourceReader.java index 9618ab1b6..47477f3c9 100644 --- a/src/main/java/org/springframework/data/repository/init/Jackson2ResourceReader.java +++ b/src/main/java/org/springframework/data/repository/init/Jackson2ResourceReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. diff --git a/src/main/java/org/springframework/data/repository/init/RepositoriesPopulatedEvent.java b/src/main/java/org/springframework/data/repository/init/RepositoriesPopulatedEvent.java index 619565ef9..e94d08212 100644 --- a/src/main/java/org/springframework/data/repository/init/RepositoriesPopulatedEvent.java +++ b/src/main/java/org/springframework/data/repository/init/RepositoriesPopulatedEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. @@ -25,7 +25,7 @@ import org.springframework.util.Assert; /** * {@link ApplicationEvent} being thrown after a {@link RepositoryPopulator} has finished populating the * {@link Repositories} available in the {@link ApplicationContext}. - * + * * @author Oliver Gierke */ public class RepositoriesPopulatedEvent extends ApplicationEvent { @@ -37,7 +37,7 @@ public class RepositoriesPopulatedEvent extends ApplicationEvent { /** * Creates a new {@link RepositoriesPopulatedEvent} using the given {@link RepositoryPopulator} and * {@link Repositories}. - * + * * @param populator the {@link RepositoryPopulator} that threw the event, must not be {@literal null}. * @param repositories the {@link Repositories} that were populated, must not be {@literal null}. */ @@ -51,7 +51,7 @@ public class RepositoriesPopulatedEvent extends ApplicationEvent { this.repositories = repositories; } - /* + /* * (non-Javadoc) * @see java.util.EventObject#getSource() */ @@ -62,14 +62,14 @@ public class RepositoriesPopulatedEvent extends ApplicationEvent { /** * Returns the {@link Repositories} that were populated. - * + * * @return the repositories will never be {@literal null}. */ public Repositories getRepositories() { return repositories; } - /* + /* * (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ @@ -88,7 +88,7 @@ public class RepositoriesPopulatedEvent extends ApplicationEvent { return this.source.equals(that.source) && this.repositories.equals(that.repositories); } - /* + /* * (non-Javadoc) * @see java.lang.Object#hashCode() */ diff --git a/src/main/java/org/springframework/data/repository/init/RepositoryPopulator.java b/src/main/java/org/springframework/data/repository/init/RepositoryPopulator.java index b654dd362..cc4269535 100644 --- a/src/main/java/org/springframework/data/repository/init/RepositoryPopulator.java +++ b/src/main/java/org/springframework/data/repository/init/RepositoryPopulator.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -19,7 +19,7 @@ import org.springframework.data.repository.support.Repositories; /** * Interface for components that will populate the Spring Data repositories with objects. - * + * * @author Oliver Gierke * @since 1.4 */ diff --git a/src/main/java/org/springframework/data/repository/init/ResourceReader.java b/src/main/java/org/springframework/data/repository/init/ResourceReader.java index 05bf29bcf..4458c4d62 100644 --- a/src/main/java/org/springframework/data/repository/init/ResourceReader.java +++ b/src/main/java/org/springframework/data/repository/init/ResourceReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/main/java/org/springframework/data/repository/init/ResourceReaderRepositoryPopulator.java b/src/main/java/org/springframework/data/repository/init/ResourceReaderRepositoryPopulator.java index ddd96abd2..e532bf4c5 100644 --- a/src/main/java/org/springframework/data/repository/init/ResourceReaderRepositoryPopulator.java +++ b/src/main/java/org/springframework/data/repository/init/ResourceReaderRepositoryPopulator.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/main/java/org/springframework/data/repository/init/UnmarshallerRepositoryPopulatorFactoryBean.java b/src/main/java/org/springframework/data/repository/init/UnmarshallerRepositoryPopulatorFactoryBean.java index a72efb254..e1570d63d 100644 --- a/src/main/java/org/springframework/data/repository/init/UnmarshallerRepositoryPopulatorFactoryBean.java +++ b/src/main/java/org/springframework/data/repository/init/UnmarshallerRepositoryPopulatorFactoryBean.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -22,7 +22,7 @@ import org.springframework.util.Assert; /** * {@link FactoryBean} to create a {@link ResourceReaderRepositoryPopulator} using an {@link Unmarshaller}. - * + * * @author Oliver Gierke * @author Christoph Strobl */ @@ -32,7 +32,7 @@ public class UnmarshallerRepositoryPopulatorFactoryBean extends AbstractReposito /** * Configures the {@link Unmarshaller} to be used. - * + * * @param unmarshaller the unmarshaller to set */ public void setUnmarshaller(Unmarshaller unmarshaller) { @@ -54,7 +54,7 @@ public class UnmarshallerRepositoryPopulatorFactoryBean extends AbstractReposito return new UnmarshallingResourceReader(unmarshaller); } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.config.AbstractFactoryBean#afterPropertiesSet() */ diff --git a/src/main/java/org/springframework/data/repository/init/UnmarshallingResourceReader.java b/src/main/java/org/springframework/data/repository/init/UnmarshallingResourceReader.java index f0ad13eb5..97fe5bae8 100644 --- a/src/main/java/org/springframework/data/repository/init/UnmarshallingResourceReader.java +++ b/src/main/java/org/springframework/data/repository/init/UnmarshallingResourceReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/main/java/org/springframework/data/repository/query/DefaultEvaluationContextProvider.java b/src/main/java/org/springframework/data/repository/query/DefaultEvaluationContextProvider.java index 87ac3c126..a0eda55ae 100644 --- a/src/main/java/org/springframework/data/repository/query/DefaultEvaluationContextProvider.java +++ b/src/main/java/org/springframework/data/repository/query/DefaultEvaluationContextProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 the original author or authors. + * Copyright 2014-2018 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. @@ -21,7 +21,7 @@ import org.springframework.util.ObjectUtils; /** * Default implementation of {@link EvaluationContextProvider} that always creates a new {@link EvaluationContext}. - * + * * @author Thomas Darimont * @author Oliver Gierke * @author Christoph Strobl diff --git a/src/main/java/org/springframework/data/repository/query/DefaultParameters.java b/src/main/java/org/springframework/data/repository/query/DefaultParameters.java index edda098a8..e37c55492 100644 --- a/src/main/java/org/springframework/data/repository/query/DefaultParameters.java +++ b/src/main/java/org/springframework/data/repository/query/DefaultParameters.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 the original author or authors. + * Copyright 2013-2018 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. @@ -22,14 +22,14 @@ import org.springframework.core.MethodParameter; /** * Default implementation of {@link Parameters}. - * + * * @author Oliver Gierke */ public final class DefaultParameters extends Parameters { /** * Creates a new {@link DefaultParameters} instance from the given {@link Method}. - * + * * @param method must not be {@literal null}. */ public DefaultParameters(Method method) { @@ -40,7 +40,7 @@ public final class DefaultParameters extends Parameters type) { @@ -84,7 +84,7 @@ class EvaluationContextExtensionInformation { /** * Returns the {@link ExtensionTypeInformation} for the extension. - * + * * @return */ public ExtensionTypeInformation getExtensionTypeInformation() { @@ -94,7 +94,7 @@ class EvaluationContextExtensionInformation { /** * Returns the {@link RootObjectInformation} for the given target object. If the information has been pre-computed * earlier, the existing one will be used. - * + * * @param target * @return */ @@ -115,21 +115,21 @@ class EvaluationContextExtensionInformation { /** * The statically defined properties of the extension type. - * + * * @return the properties will never be {@literal null}. */ private final Map properties; /** * The statically exposed functions of the extension type. - * + * * @return the functions will never be {@literal null}. */ private final MultiValueMap functions; /** * Creates a new {@link ExtensionTypeInformation} fir the given type. - * + * * @param type must not be {@literal null}. */ public ExtensionTypeInformation(Class type) { @@ -159,7 +159,7 @@ class EvaluationContextExtensionInformation { private final boolean staticOnly; - /* + /* * (non-Javadoc) * @see org.springframework.util.ReflectionUtils.MethodFilter#matches(java.lang.reflect.Method) */ @@ -176,7 +176,7 @@ class EvaluationContextExtensionInformation { return Modifier.isPublic(method.getModifiers()) && staticMatch; } - /* + /* * (non-Javadoc) * @see org.springframework.util.ReflectionUtils.FieldFilter#matches(java.lang.reflect.Field) */ @@ -207,7 +207,7 @@ class EvaluationContextExtensionInformation { /** * Creates a new {@link RootObjectInformation} for the given type. Inspects public methods and fields to register * them as {@link Function}s and properties. - * + * * @param type must not be {@literal null}. */ public RootObjectInformation(Class type) { @@ -239,7 +239,7 @@ class EvaluationContextExtensionInformation { /** * Returns {@link Function} instances that wrap method invocations on the given target object. - * + * * @param target can be {@literal null}. * @return the methods */ @@ -254,7 +254,7 @@ class EvaluationContextExtensionInformation { /** * Returns the properties of the target object. This will also include {@link Function} instances for all properties * with accessor methods that need to be resolved downstream. - * + * * @return the properties */ public Map getProperties(Optional target) { diff --git a/src/main/java/org/springframework/data/repository/query/EvaluationContextProvider.java b/src/main/java/org/springframework/data/repository/query/EvaluationContextProvider.java index 1f9eb466d..a30b38b6c 100644 --- a/src/main/java/org/springframework/data/repository/query/EvaluationContextProvider.java +++ b/src/main/java/org/springframework/data/repository/query/EvaluationContextProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 the original author or authors. + * Copyright 2014-2018 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. @@ -20,7 +20,7 @@ import org.springframework.expression.spel.support.StandardEvaluationContext; /** * Provides a way to access a centrally defined potentially shared {@link StandardEvaluationContext}. - * + * * @author Thomas Darimont * @author Oliver Gierke * @author Christoph Strobl @@ -30,7 +30,7 @@ public interface EvaluationContextProvider { /** * Returns an {@link EvaluationContext} built using the given {@link Parameters} and parameter values. - * + * * @param parameters the {@link Parameters} instance obtained from the query method the context is built for. * @param parameterValues the values for the parameters. * @return diff --git a/src/main/java/org/springframework/data/repository/query/ExtensionAwareEvaluationContextProvider.java b/src/main/java/org/springframework/data/repository/query/ExtensionAwareEvaluationContextProvider.java index 4f41f675a..3ee45429b 100644 --- a/src/main/java/org/springframework/data/repository/query/ExtensionAwareEvaluationContextProvider.java +++ b/src/main/java/org/springframework/data/repository/query/ExtensionAwareEvaluationContextProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -58,7 +58,7 @@ import org.springframework.util.StringUtils; /** * An {@link EvaluationContextProvider} that assembles an {@link EvaluationContext} from a list of * {@link EvaluationContextExtension} instances. - * + * * @author Thomas Darimont * @author Oliver Gierke * @author Christoph Strobl @@ -82,7 +82,7 @@ public class ExtensionAwareEvaluationContextProvider implements EvaluationContex /** * Creates a new {@link ExtensionAwareEvaluationContextProvider} for the given {@link EvaluationContextExtension}s. - * + * * @param extensions must not be {@literal null}. */ public ExtensionAwareEvaluationContextProvider(List extensions) { @@ -91,7 +91,7 @@ public class ExtensionAwareEvaluationContextProvider implements EvaluationContex this.extensions = Lazy.of(() -> extensions); } - /* + /* * (non-Javadoc) * @see org.springframework.context.ApplicationContextAware#setApplicationContext(org.springframework.context.ApplicationContext) */ @@ -127,7 +127,7 @@ public class ExtensionAwareEvaluationContextProvider implements EvaluationContex /** * Exposes variables for all named parameters for the given arguments. Also exposes non-bindable parameters under the * names of their types. - * + * * @param parameters must not be {@literal null}. * @param arguments must not be {@literal null}. * @return @@ -153,7 +153,7 @@ public class ExtensionAwareEvaluationContextProvider implements EvaluationContex /** * Looks up all {@link EvaluationContextExtension} instances from the given {@link ListableBeanFactory}. - * + * * @param beanFactory must not be {@literal null}. * @return */ @@ -170,7 +170,7 @@ public class ExtensionAwareEvaluationContextProvider implements EvaluationContex /** * Looks up the {@link EvaluationContextExtensionInformation} for the given {@link EvaluationContextExtension} from * the cache or creates a new one and caches that for later lookup. - * + * * @param extension must not be {@literal null}. * @return */ @@ -184,7 +184,7 @@ public class ExtensionAwareEvaluationContextProvider implements EvaluationContex /** * Creates {@link EvaluationContextExtensionAdapter}s for the given {@link EvaluationContextExtension}s. - * + * * @param extensions * @return */ @@ -208,7 +208,7 @@ public class ExtensionAwareEvaluationContextProvider implements EvaluationContex /** * Creates a new {@link ExtensionAwarePropertyAccessor} for the given {@link EvaluationContextExtension}s. - * + * * @param extensions must not be {@literal null}. */ public ExtensionAwarePropertyAccessor(List extensions) { @@ -309,7 +309,7 @@ public class ExtensionAwareEvaluationContextProvider implements EvaluationContex /** * Returns a {@link MethodExecutor} wrapping a function from the adapter passed in as an argument. - * + * * @param adapter the source of functions to consider. * @param name the name of the function * @param argumentTypes the types of the arguments that the function must accept. @@ -323,7 +323,7 @@ public class ExtensionAwareEvaluationContextProvider implements EvaluationContex /** * Looks up the property value for the property of the given name from the given extension. Takes care of resolving * {@link Function} values transitively. - * + * * @param extension must not be {@literal null}. * @param name must not be {@literal null} or empty. * @return a {@link TypedValue} matching the given parameters. @@ -358,7 +358,7 @@ public class ExtensionAwareEvaluationContextProvider implements EvaluationContex private final @NonNull Function function; - /* + /* * (non-Javadoc) * @see org.springframework.expression.MethodExecutor#execute(org.springframework.expression.EvaluationContext, java.lang.Object, java.lang.Object[]) */ @@ -378,7 +378,7 @@ public class ExtensionAwareEvaluationContextProvider implements EvaluationContex * Adapter to expose a unified view on {@link EvaluationContextExtension} based on some reflective inspection of the * extension (see {@link EvaluationContextExtensionInformation}) as well as the values exposed by the extension * itself. - * + * * @author Oliver Gierke * @since 1.9 */ @@ -392,7 +392,7 @@ public class ExtensionAwareEvaluationContextProvider implements EvaluationContex /** * Creates a new {@link EvaluationContextExtensionAdapter} for the given {@link EvaluationContextExtension} and * {@link EvaluationContextExtensionInformation}. - * + * * @param extension must not be {@literal null}. * @param information must not be {@literal null}. */ @@ -420,7 +420,7 @@ public class ExtensionAwareEvaluationContextProvider implements EvaluationContex /** * Returns the extension identifier. - * + * * @return the id of the extension */ String getExtensionId() { @@ -429,7 +429,7 @@ public class ExtensionAwareEvaluationContextProvider implements EvaluationContex /** * Returns all functions exposed. - * + * * @return all exposed functions. */ Functions getFunctions() { @@ -438,7 +438,7 @@ public class ExtensionAwareEvaluationContextProvider implements EvaluationContex /** * Returns all properties exposed. Note, the value of a property can be a {@link Function} in turn - * + * * @return a map from property name to property value. */ public Map getProperties() { diff --git a/src/main/java/org/springframework/data/repository/query/Functions.java b/src/main/java/org/springframework/data/repository/query/Functions.java index 98b7892d5..0b14c8af4 100644 --- a/src/main/java/org/springframework/data/repository/query/Functions.java +++ b/src/main/java/org/springframework/data/repository/query/Functions.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/main/java/org/springframework/data/repository/query/Param.java b/src/main/java/org/springframework/data/repository/query/Param.java index 966aaad22..111e70352 100644 --- a/src/main/java/org/springframework/data/repository/query/Param.java +++ b/src/main/java/org/springframework/data/repository/query/Param.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2010 the original author or authors. + * Copyright 2008-2018 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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * Annotation to bind let method parameters be bound to a query via a named parameter. - * + * * @author Oliver Gierke */ @Target(ElementType.PARAMETER) diff --git a/src/main/java/org/springframework/data/repository/query/Parameter.java b/src/main/java/org/springframework/data/repository/query/Parameter.java index 692950d74..f513045fe 100644 --- a/src/main/java/org/springframework/data/repository/query/Parameter.java +++ b/src/main/java/org/springframework/data/repository/query/Parameter.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. @@ -33,7 +33,7 @@ import org.springframework.util.Assert; /** * Class to abstract a single parameter of a query method. It is held in the context of a {@link Parameters} instance. - * + * * @author Oliver Gierke * @author Mark Paluch * @author Jens Schauder @@ -51,7 +51,7 @@ public class Parameter { /** * Creates a new {@link Parameter} for the given {@link MethodParameter}. - * + * * @param parameter must not be {@literal null}. */ protected Parameter(MethodParameter parameter) { @@ -65,7 +65,7 @@ public class Parameter { /** * Returns whether the parameter is a special parameter. - * + * * @return * @see #TYPES */ @@ -75,7 +75,7 @@ public class Parameter { /** * Returns whether the {@link Parameter} is to be bound to a query. - * + * * @return */ public boolean isBindable() { @@ -84,7 +84,7 @@ public class Parameter { /** * Returns whether the current {@link Parameter} is the one used for dynamic projections. - * + * * @return */ public boolean isDynamicProjectionParameter() { @@ -93,7 +93,7 @@ public class Parameter { /** * Returns the placeholder to be used for the parameter. Can either be a named one or positional. - * + * * @return */ public String getPlaceholder() { @@ -107,7 +107,7 @@ public class Parameter { /** * Returns the position index the parameter is bound to in the context of its surrounding {@link Parameters}. - * + * * @return */ public int getIndex() { @@ -116,7 +116,7 @@ public class Parameter { /** * Returns whether the parameter is annotated with {@link Param}. - * + * * @return */ public boolean isNamedParameter() { @@ -125,7 +125,7 @@ public class Parameter { /** * Returns the name of the parameter (through {@link Param} annotation). - * + * * @return */ public Optional getName() { @@ -136,7 +136,7 @@ public class Parameter { /** * Returns the type of the {@link Parameter}. - * + * * @return the type */ public Class getType() { @@ -145,7 +145,7 @@ public class Parameter { /** * Returns whether the parameter is named explicitly, i.e. annotated with {@link Param}. - * + * * @return * @since 1.11 */ @@ -164,7 +164,7 @@ public class Parameter { /** * Returns whether the {@link Parameter} is a {@link Pageable} parameter. - * + * * @return */ boolean isPageable() { @@ -173,7 +173,7 @@ public class Parameter { /** * Returns whether the {@link Parameter} is a {@link Sort} parameter. - * + * * @return */ boolean isSort() { @@ -187,7 +187,7 @@ public class Parameter { * * Collection findBy…(…, Class type); * - * + * * @param parameter must not be {@literal null}. * @return */ @@ -237,7 +237,7 @@ public class Parameter { /** * Returns the component type if the given {@link MethodParameter} is a wrapper type and the wrapper should be * unwrapped. - * + * * @param parameter must not be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/repository/query/ParameterAccessor.java b/src/main/java/org/springframework/data/repository/query/ParameterAccessor.java index 1730fc55a..9fe2be424 100644 --- a/src/main/java/org/springframework/data/repository/query/ParameterAccessor.java +++ b/src/main/java/org/springframework/data/repository/query/ParameterAccessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2011 the original author or authors. + * Copyright 2011-2018 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. @@ -23,14 +23,14 @@ import org.springframework.data.domain.Sort; /** * Interface to access method parameters. Allows dedicated access to parameters of special types - * + * * @author Oliver Gierke */ public interface ParameterAccessor extends Iterable { /** * Returns the {@link Pageable} of the parameters, if available. Returns {@code null} otherwise. - * + * * @return */ Pageable getPageable(); @@ -38,14 +38,14 @@ public interface ParameterAccessor extends Iterable { /** * Returns the sort instance to be used for query creation. Will use a {@link Sort} parameter if available or the * {@link Sort} contained in a {@link Pageable} if available. Returns {@code null} if no {@link Sort} can be found. - * + * * @return */ Sort getSort(); /** * Returns the dynamic projection type to be used when executing the query or {@literal null} if none is defined. - * + * * @return * @since 1.12 */ @@ -55,7 +55,7 @@ public interface ParameterAccessor extends Iterable { * Returns the bindable value with the given index. Bindable means, that {@link Pageable} and {@link Sort} values are * skipped without noticed in the index. For a method signature taking {@link String}, {@link Pageable} , * {@link String}, {@code #getBindableParameter(1)} would return the second {@link String} value. - * + * * @param index * @return */ @@ -63,7 +63,7 @@ public interface ParameterAccessor extends Iterable { /** * Returns whether one of the bindable parameter values is {@literal null}. - * + * * @return */ boolean hasBindableNullValue(); @@ -71,7 +71,7 @@ public interface ParameterAccessor extends Iterable { /** * Returns an iterator over all bindable parameters. This means parameters implementing {@link Pageable} or * {@link Sort} will not be included in this {@link Iterator}. - * + * * @return */ Iterator iterator(); diff --git a/src/main/java/org/springframework/data/repository/query/ParameterOutOfBoundsException.java b/src/main/java/org/springframework/data/repository/query/ParameterOutOfBoundsException.java index f6514b0e5..2528f5ec8 100644 --- a/src/main/java/org/springframework/data/repository/query/ParameterOutOfBoundsException.java +++ b/src/main/java/org/springframework/data/repository/query/ParameterOutOfBoundsException.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2012 the original author or authors. + * Copyright 2008-2018 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. @@ -18,7 +18,7 @@ package org.springframework.data.repository.query; /** * Exception to be thrown when trying to access a {@link Parameter} with an invalid index inside a {@link Parameters} * instance. - * + * * @author Oliver Gierke */ public class ParameterOutOfBoundsException extends RuntimeException { @@ -27,7 +27,7 @@ public class ParameterOutOfBoundsException extends RuntimeException { /** * Creates a new {@link ParameterOutOfBoundsException} with the given exception as cause. - * + * * @param message * @param cause */ diff --git a/src/main/java/org/springframework/data/repository/query/Parameters.java b/src/main/java/org/springframework/data/repository/query/Parameters.java index 565fcee8e..e36b5d9bf 100644 --- a/src/main/java/org/springframework/data/repository/query/Parameters.java +++ b/src/main/java/org/springframework/data/repository/query/Parameters.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. @@ -33,7 +33,7 @@ import org.springframework.util.Assert; /** * Abstracts method parameters that have to be bound to query parameters or applied to the query independently. - * + * * @author Oliver Gierke * @author Christoph Strobl */ @@ -56,7 +56,7 @@ public abstract class Parameters, T extends Parameter /** * Creates a new instance of {@link Parameters}. - * + * * @param method must not be {@literal null}. */ public Parameters(Method method) { @@ -94,7 +94,7 @@ public abstract class Parameters, T extends Parameter /** * Creates a new {@link Parameters} instance with the given {@link Parameter}s put into new context. - * + * * @param originals */ protected Parameters(List originals) { @@ -122,7 +122,7 @@ public abstract class Parameters, T extends Parameter /** * Creates a {@link Parameter} instance for the given {@link MethodParameter}. - * + * * @param parameter will never be {@literal null}. * @return */ @@ -130,7 +130,7 @@ public abstract class Parameters, T extends Parameter /** * Returns whether the method the {@link Parameters} was created for contains a {@link Pageable} argument. - * + * * @return */ public boolean hasPageableParameter() { @@ -140,7 +140,7 @@ public abstract class Parameters, T extends Parameter /** * Returns the index of the {@link Pageable} {@link Method} parameter if available. Will return {@literal -1} if there * is no {@link Pageable} argument in the {@link Method}'s parameter list. - * + * * @return the pageableIndex */ public int getPageableIndex() { @@ -150,7 +150,7 @@ public abstract class Parameters, T extends Parameter /** * Returns the index of the {@link Sort} {@link Method} parameter if available. Will return {@literal -1} if there is * no {@link Sort} argument in the {@link Method}'s parameter list. - * + * * @return */ public int getSortIndex() { @@ -159,7 +159,7 @@ public abstract class Parameters, T extends Parameter /** * Returns whether the method the {@link Parameters} was created for contains a {@link Sort} argument. - * + * * @return */ public boolean hasSortParameter() { @@ -169,7 +169,7 @@ public abstract class Parameters, T extends Parameter /** * Returns the index of the parameter that represents the dynamic projection type. Will return {@literal -1} if no * such parameter exists. - * + * * @return */ public int getDynamicProjectionIndex() { @@ -178,7 +178,7 @@ public abstract class Parameters, T extends Parameter /** * Returns whether a parameter expressing a dynamic projection exists. - * + * * @return */ public boolean hasDynamicProjection() { @@ -187,7 +187,7 @@ public abstract class Parameters, T extends Parameter /** * Returns whether we potentially find a {@link Sort} parameter in the parameters. - * + * * @return */ public boolean potentiallySortsDynamically() { @@ -196,7 +196,7 @@ public abstract class Parameters, T extends Parameter /** * Returns the parameter with the given index. - * + * * @param index * @return */ @@ -212,7 +212,7 @@ public abstract class Parameters, T extends Parameter /** * Returns whether we have a parameter at the given position. - * + * * @param position * @return */ @@ -227,7 +227,7 @@ public abstract class Parameters, T extends Parameter /** * Returns whether the method signature contains one of the special parameters ({@link Pageable}, {@link Sort}). - * + * * @return */ public boolean hasSpecialParameter() { @@ -236,7 +236,7 @@ public abstract class Parameters, T extends Parameter /** * Returns the number of parameters. - * + * * @return */ public int getNumberOfParameters() { @@ -245,7 +245,7 @@ public abstract class Parameters, T extends Parameter /** * Returns a {@link Parameters} instance with effectively all special parameters removed. - * + * * @return * @see Parameter#TYPES * @see Parameter#isSpecialParameter() @@ -270,7 +270,7 @@ public abstract class Parameters, T extends Parameter * Returns a bindable parameter with the given index. So for a method with a signature of * {@code (Pageable pageable, String name)} a call to {@code #getBindableParameter(0)} will return the {@link String} * parameter. - * + * * @param bindableIndex * @return */ @@ -281,7 +281,7 @@ public abstract class Parameters, T extends Parameter /** * Asserts that either all of the non special parameters ({@link Pageable}, {@link Sort}) are annotated with * {@link Param} or none of them is. - * + * * @param method */ private void assertEitherAllParamAnnotatedOrNone() { @@ -304,7 +304,7 @@ public abstract class Parameters, T extends Parameter /** * Returns whether the given type is a bindable parameter. - * + * * @param type * @return */ diff --git a/src/main/java/org/springframework/data/repository/query/ParametersParameterAccessor.java b/src/main/java/org/springframework/data/repository/query/ParametersParameterAccessor.java index 5af25f1a8..05049db2b 100644 --- a/src/main/java/org/springframework/data/repository/query/ParametersParameterAccessor.java +++ b/src/main/java/org/springframework/data/repository/query/ParametersParameterAccessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2015 the original author or authors. + * Copyright 2008-2018 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. @@ -28,7 +28,7 @@ import org.springframework.util.Assert; /** * {@link ParameterAccessor} implementation using a {@link Parameters} instance to find special parameters. - * + * * @author Oliver Gierke */ public class ParametersParameterAccessor implements ParameterAccessor { @@ -38,7 +38,7 @@ public class ParametersParameterAccessor implements ParameterAccessor { /** * Creates a new {@link ParametersParameterAccessor}. - * + * * @param parameters must not be {@literal null}. * @param values must not be {@literal null}. */ @@ -57,7 +57,7 @@ public class ParametersParameterAccessor implements ParameterAccessor { /** * Returns the {@link Parameters} instance backing the accessor. - * + * * @return the parameters will never be {@literal null}. */ public Parameters getParameters() { @@ -100,7 +100,7 @@ public class ParametersParameterAccessor implements ParameterAccessor { /** * Returns the dynamic projection type if available, {@literal null} otherwise. - * + * * @return */ public Optional> getDynamicProjection() { @@ -110,7 +110,7 @@ public class ParametersParameterAccessor implements ParameterAccessor { /** * Returns the value with the given index. - * + * * @param index * @return */ @@ -147,7 +147,7 @@ public class ParametersParameterAccessor implements ParameterAccessor { /** * Iterator class to allow traversing all bindable parameters inside the accessor. - * + * * @author Oliver Gierke */ private static class BindableParameterIterator implements Iterator { @@ -159,7 +159,7 @@ public class ParametersParameterAccessor implements ParameterAccessor { /** * Creates a new {@link BindableParameterIterator}. - * + * * @param accessor must not be {@literal null}. */ public BindableParameterIterator(ParametersParameterAccessor accessor) { @@ -172,7 +172,7 @@ public class ParametersParameterAccessor implements ParameterAccessor { /** * Returns the next bindable parameter. - * + * * @return */ public Object next() { diff --git a/src/main/java/org/springframework/data/repository/query/QueryByExampleExecutor.java b/src/main/java/org/springframework/data/repository/query/QueryByExampleExecutor.java index cbd41c2d0..3d2955b68 100644 --- a/src/main/java/org/springframework/data/repository/query/QueryByExampleExecutor.java +++ b/src/main/java/org/springframework/data/repository/query/QueryByExampleExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/main/java/org/springframework/data/repository/query/QueryCreationException.java b/src/main/java/org/springframework/data/repository/query/QueryCreationException.java index a402b374a..6f26743c0 100644 --- a/src/main/java/org/springframework/data/repository/query/QueryCreationException.java +++ b/src/main/java/org/springframework/data/repository/query/QueryCreationException.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2010 the original author or authors. + * Copyright 2008-2018 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. @@ -17,7 +17,7 @@ package org.springframework.data.repository.query; /** * Exception to be thrown if a query cannot be created from a {@link QueryMethod}. - * + * * @author Oliver Gierke */ public final class QueryCreationException extends RuntimeException { @@ -27,7 +27,7 @@ public final class QueryCreationException extends RuntimeException { /** * Creates a new {@link QueryCreationException}. - * + * * @param method */ private QueryCreationException(String message) { @@ -37,7 +37,7 @@ public final class QueryCreationException extends RuntimeException { /** * Rejects the given domain class property. - * + * * @param method * @param propertyName * @return @@ -50,7 +50,7 @@ public final class QueryCreationException extends RuntimeException { /** * Creates a new {@link QueryCreationException}. - * + * * @param method * @param message * @return @@ -62,7 +62,7 @@ public final class QueryCreationException extends RuntimeException { /** * Creates a new {@link QueryCreationException} for the given {@link QueryMethod} and {@link Throwable} as cause. - * + * * @param method * @param cause * @return diff --git a/src/main/java/org/springframework/data/repository/query/QueryLookupStrategy.java b/src/main/java/org/springframework/data/repository/query/QueryLookupStrategy.java index 8f44435a1..b038eb0b6 100644 --- a/src/main/java/org/springframework/data/repository/query/QueryLookupStrategy.java +++ b/src/main/java/org/springframework/data/repository/query/QueryLookupStrategy.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2010 the original author or authors. + * Copyright 2008-2018 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. @@ -26,7 +26,7 @@ import org.springframework.util.StringUtils; /** * Strategy interface for which way to lookup {@link RepositoryQuery}s. - * + * * @author Oliver Gierke */ public interface QueryLookupStrategy { @@ -37,7 +37,7 @@ public interface QueryLookupStrategy { /** * Returns a strategy key from the given XML value. - * + * * @param xml * @return a strategy key from the given XML value */ @@ -54,7 +54,7 @@ public interface QueryLookupStrategy { /** * Resolves a {@link RepositoryQuery} from the given {@link QueryMethod} that can be executed afterwards. - * + * * @param method will never be {@literal null}. * @param metadata will never be {@literal null}. * @param factory will never be {@literal null}. diff --git a/src/main/java/org/springframework/data/repository/query/QueryMethod.java b/src/main/java/org/springframework/data/repository/query/QueryMethod.java index 9adcc2ba7..c4ccb10b8 100644 --- a/src/main/java/org/springframework/data/repository/query/QueryMethod.java +++ b/src/main/java/org/springframework/data/repository/query/QueryMethod.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. diff --git a/src/main/java/org/springframework/data/repository/query/ReactiveQueryByExampleExecutor.java b/src/main/java/org/springframework/data/repository/query/ReactiveQueryByExampleExecutor.java index 3b849a8ea..4af60a632 100644 --- a/src/main/java/org/springframework/data/repository/query/ReactiveQueryByExampleExecutor.java +++ b/src/main/java/org/springframework/data/repository/query/ReactiveQueryByExampleExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/main/java/org/springframework/data/repository/query/RepositoryQuery.java b/src/main/java/org/springframework/data/repository/query/RepositoryQuery.java index 46a300c54..f039ceefb 100644 --- a/src/main/java/org/springframework/data/repository/query/RepositoryQuery.java +++ b/src/main/java/org/springframework/data/repository/query/RepositoryQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. diff --git a/src/main/java/org/springframework/data/repository/query/ResultProcessor.java b/src/main/java/org/springframework/data/repository/query/ResultProcessor.java index f7503b9c2..3fd0b56d3 100644 --- a/src/main/java/org/springframework/data/repository/query/ResultProcessor.java +++ b/src/main/java/org/springframework/data/repository/query/ResultProcessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -59,7 +59,7 @@ public class ResultProcessor { /** * Creates a new {@link ResultProcessor} from the given {@link QueryMethod} and {@link ProjectionFactory}. - * + * * @param method must not be {@literal null}. * @param factory must not be {@literal null}. */ @@ -69,7 +69,7 @@ public class ResultProcessor { /** * Creates a new {@link ResultProcessor} for the given {@link QueryMethod}, {@link ProjectionFactory} and type. - * + * * @param method must not be {@literal null}. * @param factory must not be {@literal null}. * @param type must not be {@literal null}. @@ -88,7 +88,7 @@ public class ResultProcessor { /** * Returns a new {@link ResultProcessor} with a new projection type obtained from the given {@link ParameterAccessor}. - * + * * @param accessor must not be {@literal null}. * @return */ @@ -101,7 +101,7 @@ public class ResultProcessor { /** * Returns the {@link ReturnedType}. - * + * * @return */ public ReturnedType getReturnedType() { @@ -110,7 +110,7 @@ public class ResultProcessor { /** * Post-processes the given query result. - * + * * @param source can be {@literal null}. * @return */ @@ -122,7 +122,7 @@ public class ResultProcessor { /** * Post-processes the given query result using the given preparing {@link Converter} to potentially prepare collection * elements. - * + * * @param source can be {@literal null}. * @param preparingConverter must not be {@literal null}. * @return @@ -175,7 +175,7 @@ public class ResultProcessor { /** * Creates a new {@link Collection} for the given source. Will try to create an instance of the source collection's * type first falling back to creating an approximate collection if the former fails. - * + * * @param source must not be {@literal null}. * @return */ @@ -197,7 +197,7 @@ public class ResultProcessor { /** * Returns a new {@link ChainingConverter} that hands the elements resulting from the current conversion to the * given {@link Converter}. - * + * * @param converter must not be {@literal null}. * @return */ @@ -214,7 +214,7 @@ public class ResultProcessor { }); } - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.Converter#convert(java.lang.Object) */ @@ -235,7 +235,7 @@ public class ResultProcessor { INSTANCE; - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.Converter#convert(java.lang.Object) */ @@ -255,7 +255,7 @@ public class ResultProcessor { /** * Creates a new {@link ProjectingConverter} for the given {@link ReturnedType} and {@link ProjectionFactory}. - * + * * @param type must not be {@literal null}. * @param factory must not be {@literal null}. */ @@ -265,7 +265,7 @@ public class ResultProcessor { /** * Creates a new {@link ProjectingConverter} for the given {@link ReturnedType}. - * + * * @param type must not be {@literal null}. * @return */ @@ -276,7 +276,7 @@ public class ResultProcessor { return new ProjectingConverter(type, factory, conversionService); } - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.Converter#convert(java.lang.Object) */ diff --git a/src/main/java/org/springframework/data/repository/query/ReturnedType.java b/src/main/java/org/springframework/data/repository/query/ReturnedType.java index 2e11fc34c..cf776d9a1 100644 --- a/src/main/java/org/springframework/data/repository/query/ReturnedType.java +++ b/src/main/java/org/springframework/data/repository/query/ReturnedType.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. diff --git a/src/main/java/org/springframework/data/repository/query/parser/AbstractQueryCreator.java b/src/main/java/org/springframework/data/repository/query/parser/AbstractQueryCreator.java index c3687cf55..7f3fbf384 100644 --- a/src/main/java/org/springframework/data/repository/query/parser/AbstractQueryCreator.java +++ b/src/main/java/org/springframework/data/repository/query/parser/AbstractQueryCreator.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. diff --git a/src/main/java/org/springframework/data/repository/query/parser/OrderBySource.java b/src/main/java/org/springframework/data/repository/query/parser/OrderBySource.java index 5da296ec8..8ad652262 100644 --- a/src/main/java/org/springframework/data/repository/query/parser/OrderBySource.java +++ b/src/main/java/org/springframework/data/repository/query/parser/OrderBySource.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. diff --git a/src/main/java/org/springframework/data/repository/query/parser/Part.java b/src/main/java/org/springframework/data/repository/query/parser/Part.java index b6da98f80..540e62155 100644 --- a/src/main/java/org/springframework/data/repository/query/parser/Part.java +++ b/src/main/java/org/springframework/data/repository/query/parser/Part.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. @@ -33,7 +33,7 @@ import org.springframework.util.StringUtils; * A single part of a method name that has to be transformed into a query part. The actual transformation is defined by * a {@link Type} that is determined from inspecting the given part. The query part can then be looked up via * {@link #getProperty()}. - * + * * @author Oliver Gierke * @author Martin Baumgartner */ @@ -50,7 +50,7 @@ public class Part { /** * Creates a new {@link Part} from the given method name part, the {@link Class} the part originates from and the * start parameter index. - * + * * @param source must not be {@literal null}. * @param clazz must not be {@literal null}. */ @@ -61,7 +61,7 @@ public class Part { /** * Creates a new {@link Part} from the given method name part, the {@link Class} the part originates from and the * start parameter index. - * + * * @param source must not be {@literal null}. * @param clazz must not be {@literal null}. * @param alwaysIgnoreCase @@ -100,7 +100,7 @@ public class Part { /** * Returns how many method parameters are bound by this part. - * + * * @return */ public int getNumberOfArguments() { @@ -123,7 +123,7 @@ public class Part { /** * Returns whether the {@link PropertyPath} referenced should be matched ignoring case. - * + * * @return */ public IgnoreCaseType shouldIgnoreCase() { @@ -141,7 +141,7 @@ public class Part { /** * The type of a method name part. Used to create query parts in various ways. - * + * * @author Oliver Gierke * @author Thomas Darimont * @author Michael Cramer @@ -184,7 +184,7 @@ public class Part { /** * Creates a new {@link Type} using the given keyword, number of arguments to be bound and operator. Keyword and * operator can be {@literal null}. - * + * * @param numberOfArguments * @param keywords */ @@ -202,7 +202,7 @@ public class Part { * Returns the {@link Type} of the {@link Part} for the given raw propertyPath. This will try to detect e.g. * keywords contained in the raw propertyPath that trigger special query creation. Returns {@link #SIMPLE_PROPERTY} * by default. - * + * * @param rawProperty * @return */ @@ -219,7 +219,7 @@ public class Part { /** * Returns all keywords supported by the current {@link Type}. - * + * * @return */ public Collection getKeywords() { @@ -229,7 +229,7 @@ public class Part { /** * Returns whether the the type supports the given raw property. Default implementation checks whether the property * ends with the registered keyword. Does not support the keyword if the property is a valid field as is. - * + * * @param property * @return */ @@ -246,7 +246,7 @@ public class Part { /** * Returns the number of arguments the propertyPath binds. By default this exactly one argument. - * + * * @return */ public int getNumberOfArguments() { @@ -256,7 +256,7 @@ public class Part { /** * Callback method to extract the actual propertyPath to be bound from the given part. Strips the keyword from the * part's end if available. - * + * * @param part * @return */ @@ -285,7 +285,7 @@ public class Part { /** * The various types of ignore case that are supported. - * + * * @author Phillip Webb */ public enum IgnoreCaseType { diff --git a/src/main/java/org/springframework/data/repository/query/parser/PartTree.java b/src/main/java/org/springframework/data/repository/query/parser/PartTree.java index 75109dae1..227be22b0 100644 --- a/src/main/java/org/springframework/data/repository/query/parser/PartTree.java +++ b/src/main/java/org/springframework/data/repository/query/parser/PartTree.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. diff --git a/src/main/java/org/springframework/data/repository/query/spi/EvaluationContextExtension.java b/src/main/java/org/springframework/data/repository/query/spi/EvaluationContextExtension.java index 9513ef58b..4c88ad388 100644 --- a/src/main/java/org/springframework/data/repository/query/spi/EvaluationContextExtension.java +++ b/src/main/java/org/springframework/data/repository/query/spi/EvaluationContextExtension.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 the original author or authors. + * Copyright 2014-2018 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. @@ -24,7 +24,7 @@ import org.springframework.lang.Nullable; /** * SPI to allow adding a set of properties and function definitions accessible via the root of an * {@link EvaluationContext} provided by a {@link ExtensionAwareEvaluationContextProvider}. - * + * * @author Thomas Darimont * @author Oliver Gierke * @since 1.9 @@ -34,21 +34,21 @@ public interface EvaluationContextExtension { /** * Returns the identifier of the extension. The id can be leveraged by users to fully qualify property lookups and * thus overcome ambiguities in case multiple extensions expose properties with the same name. - * + * * @return the extension id, must not be {@literal null}. */ String getExtensionId(); /** * Returns the properties exposed by the extension. - * + * * @return the properties */ Map getProperties(); /** * Returns the functions exposed by the extension. - * + * * @return the functions */ Map getFunctions(); @@ -57,7 +57,7 @@ public interface EvaluationContextExtension { * Returns the root object to be exposed by the extension. It's strongly recommended to declare the most concrete type * possible as return type of the implementation method. This will allow us to obtain the necessary metadata once and * not for every evaluation. - * + * * @return */ @Nullable diff --git a/src/main/java/org/springframework/data/repository/query/spi/EvaluationContextExtensionSupport.java b/src/main/java/org/springframework/data/repository/query/spi/EvaluationContextExtensionSupport.java index 21e041fe2..885030df8 100644 --- a/src/main/java/org/springframework/data/repository/query/spi/EvaluationContextExtensionSupport.java +++ b/src/main/java/org/springframework/data/repository/query/spi/EvaluationContextExtensionSupport.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 the original author or authors. + * Copyright 2014-2018 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. @@ -22,7 +22,7 @@ import org.springframework.lang.Nullable; /** * A base class for {@link EvaluationContextExtension}s. - * + * * @author Thomas Darimont * @author Oliver Gierke * @see 1.9 @@ -47,7 +47,7 @@ public abstract class EvaluationContextExtensionSupport implements EvaluationCon return Collections.emptyMap(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.query.spi.EvaluationContextExtension#getRootObject() */ diff --git a/src/main/java/org/springframework/data/repository/query/spi/Function.java b/src/main/java/org/springframework/data/repository/query/spi/Function.java index 592b19f9a..17e3cb92e 100644 --- a/src/main/java/org/springframework/data/repository/query/spi/Function.java +++ b/src/main/java/org/springframework/data/repository/query/spi/Function.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -28,7 +28,7 @@ import org.springframework.util.TypeUtils; /** * Value object to represent a function. Can either be backed by a static {@link Method} invocation (see * {@link #Function(Method)}) or a method invocation on an instance (see {@link #Function(Method, Object)}. - * + * * @author Thomas Darimont * @author Oliver Gierke * @author Jens Schauder @@ -41,7 +41,7 @@ public class Function { /** * Creates a new {@link Function} to statically invoke the given {@link Method}. - * + * * @param method */ public Function(Method method) { @@ -53,7 +53,7 @@ public class Function { /** * Creates a new {@link Function} for the given method on the given target instance. - * + * * @param method must not be {@literal null}. * @param target can be {@literal null}, if so, the method */ @@ -69,7 +69,7 @@ public class Function { /** * Invokes the function with the given arguments. - * + * * @param arguments must not be {@literal null}. * @return * @throws Exception @@ -80,7 +80,7 @@ public class Function { /** * Returns the name of the function. - * + * * @return */ public String getName() { @@ -89,7 +89,7 @@ public class Function { /** * Returns the type declaring the {@link Function}. - * + * * @return */ public Class getDeclaringClass() { @@ -98,7 +98,7 @@ public class Function { /** * Returns {@literal true} if the function can be called with the given {@code argumentTypes}. - * + * * @param argumentTypes * @return */ diff --git a/src/main/java/org/springframework/data/repository/reactive/ReactiveCrudRepository.java b/src/main/java/org/springframework/data/repository/reactive/ReactiveCrudRepository.java index adc098922..eafdb63d4 100644 --- a/src/main/java/org/springframework/data/repository/reactive/ReactiveCrudRepository.java +++ b/src/main/java/org/springframework/data/repository/reactive/ReactiveCrudRepository.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/main/java/org/springframework/data/repository/reactive/ReactiveSortingRepository.java b/src/main/java/org/springframework/data/repository/reactive/ReactiveSortingRepository.java index 113d2f5e1..0afda0161 100644 --- a/src/main/java/org/springframework/data/repository/reactive/ReactiveSortingRepository.java +++ b/src/main/java/org/springframework/data/repository/reactive/ReactiveSortingRepository.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/main/java/org/springframework/data/repository/reactive/RxJava2CrudRepository.java b/src/main/java/org/springframework/data/repository/reactive/RxJava2CrudRepository.java index 8c4458850..0423965e5 100644 --- a/src/main/java/org/springframework/data/repository/reactive/RxJava2CrudRepository.java +++ b/src/main/java/org/springframework/data/repository/reactive/RxJava2CrudRepository.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/main/java/org/springframework/data/repository/reactive/RxJava2SortingRepository.java b/src/main/java/org/springframework/data/repository/reactive/RxJava2SortingRepository.java index 0973af65e..20db0486d 100644 --- a/src/main/java/org/springframework/data/repository/reactive/RxJava2SortingRepository.java +++ b/src/main/java/org/springframework/data/repository/reactive/RxJava2SortingRepository.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/main/java/org/springframework/data/repository/support/AnnotationAttribute.java b/src/main/java/org/springframework/data/repository/support/AnnotationAttribute.java index 6f62fadba..d10b90356 100644 --- a/src/main/java/org/springframework/data/repository/support/AnnotationAttribute.java +++ b/src/main/java/org/springframework/data/repository/support/AnnotationAttribute.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -28,7 +28,7 @@ import org.springframework.util.Assert; /** * Simply helper to reference a dedicated attribute of an {@link Annotation}. - * + * * @author Oliver Gierke * @author Christoph Strobl * @since 1.10 @@ -41,7 +41,7 @@ class AnnotationAttribute { /** * Creates a new {@link AnnotationAttribute} to the {@code value} attribute of the given {@link Annotation} type. - * + * * @param annotationType must not be {@literal null}. */ public AnnotationAttribute(Class annotationType) { @@ -50,7 +50,7 @@ class AnnotationAttribute { /** * Returns the annotation type. - * + * * @return the annotationType */ public Class getAnnotationType() { @@ -59,7 +59,7 @@ class AnnotationAttribute { /** * Reads the {@link Annotation} attribute's value from the given {@link MethodParameter}. - * + * * @param parameter must not be {@literal null}. * @return */ @@ -73,7 +73,7 @@ class AnnotationAttribute { /** * Reads the {@link Annotation} attribute's value from the given {@link AnnotatedElement}. - * + * * @param annotatedElement must not be {@literal null}. * @return */ @@ -87,7 +87,7 @@ class AnnotationAttribute { /** * Returns the {@link Annotation} attribute's value from the given {@link Annotation}. - * + * * @param annotation must not be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/repository/support/CrudRepositoryInvoker.java b/src/main/java/org/springframework/data/repository/support/CrudRepositoryInvoker.java index 73c1d4821..2d089c044 100644 --- a/src/main/java/org/springframework/data/repository/support/CrudRepositoryInvoker.java +++ b/src/main/java/org/springframework/data/repository/support/CrudRepositoryInvoker.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -28,7 +28,7 @@ import org.springframework.data.repository.core.RepositoryMetadata; /** * {@link RepositoryInvoker} to shortcut execution of CRUD methods into direct calls on a {@link CrudRepository}. Used * to avoid reflection overhead introduced by the base class if we know we work with a {@link CrudRepository}. - * + * * @author Oliver Gierke * @author Christoph Strobl * @since 1.10 @@ -45,7 +45,7 @@ class CrudRepositoryInvoker extends ReflectionRepositoryInvoker { /** * Creates a new {@link CrudRepositoryInvoker} for the given {@link CrudRepository}, {@link RepositoryMetadata} and * {@link ConversionService}. - * + * * @param repository must not be {@literal null}. * @param metadata must not be {@literal null}. * @param conversionService must not be {@literal null}. @@ -64,7 +64,7 @@ class CrudRepositoryInvoker extends ReflectionRepositoryInvoker { this.repository = repository; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.invoke.RepositoryInvoker#invokeFindAll(org.springframework.data.domain.Sort) */ @@ -73,7 +73,7 @@ class CrudRepositoryInvoker extends ReflectionRepositoryInvoker { return customFindAllMethod ? super.invokeFindAll(sort) : repository.findAll(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.invoke.RepositoryInvoker#invokeFindAll(org.springframework.data.domain.Pageable) */ diff --git a/src/main/java/org/springframework/data/repository/support/DefaultRepositoryInvokerFactory.java b/src/main/java/org/springframework/data/repository/support/DefaultRepositoryInvokerFactory.java index 13d802a60..421eaade9 100644 --- a/src/main/java/org/springframework/data/repository/support/DefaultRepositoryInvokerFactory.java +++ b/src/main/java/org/springframework/data/repository/support/DefaultRepositoryInvokerFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -33,7 +33,7 @@ import org.springframework.util.Assert; * matching {@link RepositoryInvoker} that suits the repository best. That means, the more concrete the base interface * of the repository is, the more concrete will the actual invoker become - which means it will favor concrete method * invocations over reflection ones. - * + * * @author Oliver Gierke * @author Christoph Strobl * @since 1.10 @@ -46,7 +46,7 @@ public class DefaultRepositoryInvokerFactory implements RepositoryInvokerFactory /** * Creates a new {@link DefaultRepositoryInvokerFactory} for the given {@link Repositories}. - * + * * @param repositories must not be {@literal null}. */ public DefaultRepositoryInvokerFactory(Repositories repositories) { @@ -56,7 +56,7 @@ public class DefaultRepositoryInvokerFactory implements RepositoryInvokerFactory /** * Creates a new {@link DefaultRepositoryInvokerFactory} for the given {@link Repositories} and * {@link ConversionService}. - * + * * @param repositories must not be {@literal null}. * @param conversionService must not be {@literal null}. */ @@ -70,7 +70,7 @@ public class DefaultRepositoryInvokerFactory implements RepositoryInvokerFactory this.invokers = new HashMap<>(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.invoke.RepositoryInvokerFactory#getInvokerFor(java.lang.Class) */ @@ -81,7 +81,7 @@ public class DefaultRepositoryInvokerFactory implements RepositoryInvokerFactory /** * Creates a {@link RepositoryInvoker} for the repository managing the given domain type. - * + * * @param domainType * @return */ diff --git a/src/main/java/org/springframework/data/repository/support/DomainClassConverter.java b/src/main/java/org/springframework/data/repository/support/DomainClassConverter.java index ad8601968..35138d649 100644 --- a/src/main/java/org/springframework/data/repository/support/DomainClassConverter.java +++ b/src/main/java/org/springframework/data/repository/support/DomainClassConverter.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2016 the original author or authors. + * Copyright 2008-2018 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. @@ -39,7 +39,7 @@ import org.springframework.util.StringUtils; * by Spring Data {@link CrudRepository}s. The implementation uses a {@link ConversionService} in turn to convert the * source type into the domain class' id type which is then converted into a domain class object by using a * {@link CrudRepository}. - * + * * @author Oliver Gierke * @author Thomas Darimont */ @@ -53,7 +53,7 @@ public class DomainClassConverter it.convert(source, sourceType, targetType)).orElse(source); } - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.ConditionalConverter#matches(org.springframework.core.convert.TypeDescriptor, org.springframework.core.convert.TypeDescriptor) */ @@ -127,7 +127,7 @@ public class DomainClassConverter getParameters() { @@ -81,7 +81,7 @@ class MethodParameters { /** * Returns the {@link MethodParameter} with the given name or {@literal null} if none found. - * + * * @param name must not be {@literal null} or empty. * @return */ @@ -95,7 +95,7 @@ class MethodParameters { /** * Returns all parameters of the given type. - * + * * @param type must not be {@literal null}. * @return * @since 0.9 @@ -111,7 +111,7 @@ class MethodParameters { /** * Returns all {@link MethodParameter}s annotated with the given annotation type. - * + * * @param annotation must not be {@literal null}. * @return */ @@ -127,7 +127,7 @@ class MethodParameters { /** * Custom {@link MethodParameter} extension that will favor the name configured in the {@link AnnotationAttribute} if * set over discovering it. - * + * * @author Oliver Gierke */ private static class AnnotationNamingMethodParameter extends MethodParameter { @@ -138,7 +138,7 @@ class MethodParameters { /** * Creates a new {@link AnnotationNamingMethodParameter} for the given {@link Method}'s parameter with the given * index. - * + * * @param method must not be {@literal null}. * @param parameterIndex * @param attribute can be {@literal null} @@ -153,7 +153,7 @@ class MethodParameters { orElseGet(super::getParameterName)); } - /* + /* * (non-Javadoc) * @see org.springframework.core.MethodParameter#getParameterName() */ diff --git a/src/main/java/org/springframework/data/repository/support/PageableExecutionUtils.java b/src/main/java/org/springframework/data/repository/support/PageableExecutionUtils.java index 7238aa44d..30733b077 100644 --- a/src/main/java/org/springframework/data/repository/support/PageableExecutionUtils.java +++ b/src/main/java/org/springframework/data/repository/support/PageableExecutionUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/main/java/org/springframework/data/repository/support/PagingAndSortingRepositoryInvoker.java b/src/main/java/org/springframework/data/repository/support/PagingAndSortingRepositoryInvoker.java index e84a1b338..c110bee8c 100644 --- a/src/main/java/org/springframework/data/repository/support/PagingAndSortingRepositoryInvoker.java +++ b/src/main/java/org/springframework/data/repository/support/PagingAndSortingRepositoryInvoker.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2014 the original author or authors. + * Copyright 2013-2018 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. @@ -28,7 +28,7 @@ import org.springframework.data.repository.core.RepositoryMetadata; /** * A special {@link RepositoryInvoker} that shortcuts invocations to methods on {@link PagingAndSortingRepository} to * avoid reflection overhead introduced by the superclass. - * + * * @author Oliver Gierke * @since 1.10 */ @@ -40,7 +40,7 @@ class PagingAndSortingRepositoryInvoker extends CrudRepositoryInvoker { /** * Creates a new {@link PagingAndSortingRepositoryInvoker} using the given repository, {@link RepositoryMetadata} and * {@link ConversionService}. - * + * * @param repository must not be {@literal null}. * @param metadata must not be {@literal null}. * @param conversionService must not be {@literal null}. diff --git a/src/main/java/org/springframework/data/repository/support/QueryMethodParameterConversionException.java b/src/main/java/org/springframework/data/repository/support/QueryMethodParameterConversionException.java index 033a8f74b..843f8b808 100644 --- a/src/main/java/org/springframework/data/repository/support/QueryMethodParameterConversionException.java +++ b/src/main/java/org/springframework/data/repository/support/QueryMethodParameterConversionException.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2015-2018 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. @@ -21,9 +21,9 @@ import org.springframework.util.Assert; /** * Exception to represent a failed attempt to convert a source value into a query method parameter. - * + * * @author Oliver Gierke - * @soundtrack Dave Matthews Band - The Dreaming Tree (DMB 2009 Europe) + * @soundtrack Dave Matthews Band - The Dreaming Tree (DMB 2009-2018 Europe) * @since 1.11 */ public class QueryMethodParameterConversionException extends RuntimeException { @@ -36,7 +36,7 @@ public class QueryMethodParameterConversionException extends RuntimeException { /** * Creates a new {@link QueryMethodParameterConversionException} for the given source object, {@link MethodParameter} * and root cause {@link ConversionException}. - * + * * @param source can be {@literal null}. * @param parameter the {@link MethodParameter} the value should've been converted for, must not be {@literal null}.. * @param cause the original {@link ConversionException}, must not be {@literal null}. @@ -54,7 +54,7 @@ public class QueryMethodParameterConversionException extends RuntimeException { /** * Returns the source value that we failed converting. - * + * * @return the source can be {@literal null}. */ public Object getSource() { @@ -63,7 +63,7 @@ public class QueryMethodParameterConversionException extends RuntimeException { /** * Returns the {@link MethodParameter} we tried to convert the source value for. - * + * * @return the parameter will never be {@literal null}. * @see #getSource() */ diff --git a/src/main/java/org/springframework/data/repository/support/ReflectionRepositoryInvoker.java b/src/main/java/org/springframework/data/repository/support/ReflectionRepositoryInvoker.java index 0a183cd5e..c9d3717ef 100644 --- a/src/main/java/org/springframework/data/repository/support/ReflectionRepositoryInvoker.java +++ b/src/main/java/org/springframework/data/repository/support/ReflectionRepositoryInvoker.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2015 the original author or authors. + * Copyright 2013-2018 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. @@ -39,7 +39,7 @@ import org.springframework.util.StringUtils; /** * Base {@link RepositoryInvoker} using reflection to invoke methods on Spring Data Repositories. - * + * * @author Oliver Gierke * @since 1.10 */ @@ -56,7 +56,7 @@ class ReflectionRepositoryInvoker implements RepositoryInvoker { /** * Creates a new {@link ReflectionRepositoryInvoker} for the given repository, {@link RepositoryMetadata} and * {@link ConversionService}. - * + * * @param repository must not be {@literal null}. * @param metadata must not be {@literal null}. * @param conversionService must not be {@literal null}. @@ -74,7 +74,7 @@ class ReflectionRepositoryInvoker implements RepositoryInvoker { this.conversionService = conversionService; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.invoke.RepositoryInvocationInformation#hasFindAllMethod() */ @@ -101,7 +101,7 @@ class ReflectionRepositoryInvoker implements RepositoryInvoker { return invokeFindAllReflectively(pageable); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.invoke.RepositoryInvocationInformation#hasSaveMethod() */ @@ -123,7 +123,7 @@ class ReflectionRepositoryInvoker implements RepositoryInvoker { return invokeForNonNullResult(method, object); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.invoke.RepositoryInvocationInformation#hasFindOneMethod() */ @@ -145,7 +145,7 @@ class ReflectionRepositoryInvoker implements RepositoryInvoker { return returnAsOptional(invoke(method, convertId(id))); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.invoke.RepositoryInvocationInformation#hasDeleteMethod() */ @@ -247,7 +247,7 @@ class ReflectionRepositoryInvoker implements RepositoryInvoker { /** * Invokes the given method with the given arguments on the backing repository. - * + * * @param method * @param arguments * @return @@ -280,7 +280,7 @@ class ReflectionRepositoryInvoker implements RepositoryInvoker { /** * Converts the given id into the id type of the backing repository. - * + * * @param id must not be {@literal null}. * @return */ @@ -329,7 +329,7 @@ class ReflectionRepositoryInvoker implements RepositoryInvoker { /** * Unwraps the first item if the given source has exactly one element. - * + * * @param source can be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/repository/support/Repositories.java b/src/main/java/org/springframework/data/repository/support/Repositories.java index efd8f7f42..9f5618ecb 100644 --- a/src/main/java/org/springframework/data/repository/support/Repositories.java +++ b/src/main/java/org/springframework/data/repository/support/Repositories.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -38,7 +38,7 @@ import org.springframework.util.ClassUtils; /** * Wrapper class to access repository instances obtained from a {@link ListableBeanFactory}. - * + * * @author Oliver Gierke * @author Thomas Darimont * @author Thomas Eizinger @@ -68,7 +68,7 @@ public class Repositories implements Iterable> { /** * Creates a new {@link Repositories} instance by looking up the repository instances and meta information from the * given {@link ListableBeanFactory}. - * + * * @param factory must not be {@literal null}. */ public Repositories(ListableBeanFactory factory) { @@ -114,7 +114,7 @@ public class Repositories implements Iterable> { /** * Returns whether we have a repository instance registered to manage instances of the given domain class. - * + * * @param domainClass must not be {@literal null}. * @return */ @@ -129,7 +129,7 @@ public class Repositories implements Iterable> { /** * Returns the repository managing the given domain class. - * + * * @param domainClass must not be {@literal null}. * @return */ @@ -146,7 +146,7 @@ public class Repositories implements Iterable> { /** * Returns the {@link RepositoryFactoryInformation} for the given domain class. The given code is * converted to the actual user class if necessary, @see ClassUtils#getUserClass. - * + * * @param domainClass must not be {@literal null}. * @return the {@link RepositoryFactoryInformation} for the given domain class or {@literal null} if no repository * registered for this domain class. @@ -171,7 +171,7 @@ public class Repositories implements Iterable> { /** * Returns the {@link EntityInformation} for the given domain class. - * + * * @param domainClass must not be {@literal null}. * @return */ @@ -185,7 +185,7 @@ public class Repositories implements Iterable> { /** * Returns the {@link RepositoryInformation} for the given domain class. - * + * * @param domainClass must not be {@literal null}. * @return the {@link RepositoryInformation} for the given domain class or {@literal Optional#empty()} if no * repository registered for this domain class. @@ -201,7 +201,7 @@ public class Repositories implements Iterable> { /** * Returns the {@link RepositoryInformation} for the given domain type. - * + * * @param domainType must not be {@literal null}. * @return the {@link RepositoryInformation} for the given domain type. * @throws IllegalArgumentException in case no {@link RepositoryInformation} could be found for the given domain type. @@ -214,7 +214,7 @@ public class Repositories implements Iterable> { /** * Returns the {@link RepositoryInformation} for the given repository interface. - * + * * @param repositoryInterface must not be {@literal null}. * @return the {@link RepositoryInformation} for the given repository interface or {@literal null} there's no * repository instance registered for the given interface. @@ -231,7 +231,7 @@ public class Repositories implements Iterable> { /** * Returns the {@link PersistentEntity} for the given domain class. Might return {@literal null} in case the module * storing the given domain class does not support the mapping subsystem. - * + * * @param domainClass must not be {@literal null}. * @return the {@link PersistentEntity} for the given domain class or {@literal null} if no repository is registered * for the domain class or the repository is not backed by a {@link MappingContext} implementation. @@ -244,7 +244,7 @@ public class Repositories implements Iterable> { /** * Returns the {@link QueryMethod}s contained in the repository managing the given domain class. - * + * * @param domainClass must not be {@literal null}. * @return */ @@ -254,7 +254,7 @@ public class Repositories implements Iterable> { return getRepositoryFactoryInfoFor(domainClass).getQueryMethods(); } - /* + /* * (non-Javadoc) * @see java.lang.Iterable#iterator() */ @@ -264,7 +264,7 @@ public class Repositories implements Iterable> { /** * Null-object to avoid nasty {@literal null} checks in cache lookups. - * + * * @author Thomas Darimont */ private static enum EmptyRepositoryFactoryInformation implements RepositoryFactoryInformation { diff --git a/src/main/java/org/springframework/data/repository/support/RepositoryInvocationInformation.java b/src/main/java/org/springframework/data/repository/support/RepositoryInvocationInformation.java index 4d5a8c3f0..9361d0f4b 100644 --- a/src/main/java/org/springframework/data/repository/support/RepositoryInvocationInformation.java +++ b/src/main/java/org/springframework/data/repository/support/RepositoryInvocationInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2014 the original author or authors. + * Copyright 2013-2018 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. @@ -17,7 +17,7 @@ package org.springframework.data.repository.support; /** * Meta-information about the methods a repository exposes. - * + * * @author Oliver Gierke * @since 1.10 */ @@ -25,28 +25,28 @@ public interface RepositoryInvocationInformation { /** * Returns whether the repository has a method to save objects. - * + * * @return */ boolean hasSaveMethod(); /** * Returns whether the repository has a method to delete objects. - * + * * @return */ boolean hasDeleteMethod(); /** * Returns whether the repository has a method to find a single object. - * + * * @return */ boolean hasFindOneMethod(); /** * Returns whether the repository has a method to find all objects. - * + * * @return */ boolean hasFindAllMethod(); diff --git a/src/main/java/org/springframework/data/repository/support/RepositoryInvoker.java b/src/main/java/org/springframework/data/repository/support/RepositoryInvoker.java index be25514c5..97958b788 100644 --- a/src/main/java/org/springframework/data/repository/support/RepositoryInvoker.java +++ b/src/main/java/org/springframework/data/repository/support/RepositoryInvoker.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2014 the original author or authors. + * Copyright 2013-2018 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. @@ -26,7 +26,7 @@ import org.springframework.util.MultiValueMap; * API to invoke (CRUD) methods on Spring Data repository instances independently of the base interface they expose. * Clients should check the availability of the methods before invoking them by using the methods of * {@link RepositoryInvocationInformation}. - * + * * @author Oliver Gierke * @since 1.10 */ @@ -35,7 +35,7 @@ public interface RepositoryInvoker extends RepositoryInvocationInformation { /** * Invokes the method equivalent to {@link org.springframework.data.repository.CrudRepository#save(Object)} on the * repository. - * + * * @param object * @return the result of the invocation of the save method * @throws IllegalStateException if the repository does not expose a save method. @@ -44,7 +44,7 @@ public interface RepositoryInvoker extends RepositoryInvocationInformation { /** * Invokes the method equivalent to {@link org.springframework.data.repository.CrudRepository#findById(Object)}. - * + * * @param id must not be {@literal null}. * @return the entity with the given id. * @throws IllegalStateException if the repository does not expose a find-one-method. @@ -59,7 +59,7 @@ public interface RepositoryInvoker extends RepositoryInvocationInformation { * {@link org.springframework.data.repository.PagingAndSortingRepository#findAll(Sort)} by extracting the {@link Sort} * contained in the given {@link Pageable}) or the plain equivalent to * {@link org.springframework.data.repository.CrudRepository#findAll()}. - * + * * @param pageable can be {@literal null}. * @return the result of the invocation of the find-all method. * @throws IllegalStateException if the repository does not expose a find-all-method. @@ -71,7 +71,7 @@ public interface RepositoryInvoker extends RepositoryInvocationInformation { * available (i.e. the equivalent to * {@link org.springframework.data.repository.PagingAndSortingRepository#findAll(Sort)}) or the plain equivalent to * {@link org.springframework.data.repository.CrudRepository#findAll()}. - * + * * @param pageable can be {@literal null}. * @return the result of the invocation of the find-all method. * @throws IllegalStateException if the repository does not expose a find-all-method. @@ -81,7 +81,7 @@ public interface RepositoryInvoker extends RepositoryInvocationInformation { /** * Invokes the method equivalent to {@link org.springframework.data.repository.CrudRepository#deleteById(Object)}. The * given id is assumed to be of a type convertible into the actual identifier type of the backing repository. - * + * * @param id must not be {@literal null}. * @throws {@link IllegalStateException} if the repository does not expose a delete-method. */ @@ -90,7 +90,7 @@ public interface RepositoryInvoker extends RepositoryInvocationInformation { /** * Invokes the query method backed by the given {@link Method} using the given parameters, {@link Pageable} and * {@link Sort}. - * + * * @param method must not be {@literal null}. * @param parameters must not be {@literal null}. * @param pageable must not be {@literal null}. diff --git a/src/main/java/org/springframework/data/repository/support/RepositoryInvokerFactory.java b/src/main/java/org/springframework/data/repository/support/RepositoryInvokerFactory.java index a55345a28..6a035c457 100644 --- a/src/main/java/org/springframework/data/repository/support/RepositoryInvokerFactory.java +++ b/src/main/java/org/springframework/data/repository/support/RepositoryInvokerFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2014 the original author or authors. + * Copyright 2013-2018 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. @@ -18,7 +18,7 @@ package org.springframework.data.repository.support; /** * Interface for a factory to create {@link RepositoryInvoker} instances for repositories managing a particular domain * type. - * + * * @author Oliver Gierke * @since 1.10 */ @@ -26,7 +26,7 @@ public interface RepositoryInvokerFactory { /** * Returns the {@link RepositoryInvoker} for a repository managing the given domain type. - * + * * @param domainType must not be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/repository/util/ClassUtils.java b/src/main/java/org/springframework/data/repository/util/ClassUtils.java index f46aefcc1..64d3192ae 100644 --- a/src/main/java/org/springframework/data/repository/util/ClassUtils.java +++ b/src/main/java/org/springframework/data/repository/util/ClassUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2015 the original author or authors. + * Copyright 2008-2018 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. @@ -30,7 +30,7 @@ import org.springframework.util.StringUtils; /** * Utility class to work with classes. - * + * * @author Oliver Gierke */ public abstract class ClassUtils { @@ -42,7 +42,7 @@ public abstract class ClassUtils { /** * Returns whether the given class contains a property with the given name. - * + * * @param type * @param property * @return @@ -58,7 +58,7 @@ public abstract class ClassUtils { /** * Returns wthere the given type is the {@link Repository} interface. - * + * * @param interfaze * @return */ @@ -69,7 +69,7 @@ public abstract class ClassUtils { /** * Returns whether the given type name is a repository interface name. - * + * * @param interfaceName * @return */ @@ -79,7 +79,7 @@ public abstract class ClassUtils { /** * Returns the number of occurences of the given type in the given {@link Method}s parameters. - * + * * @param method * @param type * @return @@ -99,7 +99,7 @@ public abstract class ClassUtils { /** * Asserts the given {@link Method}'s return type to be one of the given types. Will unwrap known wrapper types before * the assignment check (see {@link QueryExecutionConverters}). - * + * * @param method must not be {@literal null}. * @param types must not be {@literal null} or empty. */ @@ -118,7 +118,7 @@ public abstract class ClassUtils { /** * Returns whether the given object is of one of the given types. Will return {@literal false} for {@literal null}. - * + * * @param object * @param types * @return @@ -134,7 +134,7 @@ public abstract class ClassUtils { /** * Returns whether the given {@link Method} has a parameter of the given type. - * + * * @param method * @param type * @return @@ -145,7 +145,7 @@ public abstract class ClassUtils { /** * Helper method to extract the original exception that can possibly occur during a reflection call. - * + * * @param ex * @throws Throwable */ diff --git a/src/main/java/org/springframework/data/repository/util/JavaslangCollections.java b/src/main/java/org/springframework/data/repository/util/JavaslangCollections.java index c6cc36973..24313e6f5 100644 --- a/src/main/java/org/springframework/data/repository/util/JavaslangCollections.java +++ b/src/main/java/org/springframework/data/repository/util/JavaslangCollections.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -36,7 +36,7 @@ import org.springframework.lang.Nullable; /** * Converter implementations to map from and to Javaslang collections. - * + * * @author Oliver Gierke * @author Christoph Strobl * @since 1.13 @@ -51,7 +51,7 @@ class JavaslangCollections { return WrapperType.multiValue(javaslang.collection.Traversable.class); } - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.Converter#convert(java.lang.Object) */ @@ -79,7 +79,7 @@ class JavaslangCollections { INSTANCE { - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.GenericConverter#getConvertibleTypes() */ @@ -89,7 +89,7 @@ class JavaslangCollections { return CONVERTIBLE_PAIRS; } - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.ConditionalConverter#matches(org.springframework.core.convert.TypeDescriptor, org.springframework.core.convert.TypeDescriptor) */ diff --git a/src/main/java/org/springframework/data/repository/util/NullableWrapper.java b/src/main/java/org/springframework/data/repository/util/NullableWrapper.java index aed217f02..fd9549ee4 100644 --- a/src/main/java/org/springframework/data/repository/util/NullableWrapper.java +++ b/src/main/java/org/springframework/data/repository/util/NullableWrapper.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 the original author or authors. + * Copyright 2014-2018 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. @@ -21,7 +21,7 @@ import org.springframework.lang.Nullable; /** * Simple value object to wrap a nullable delegate. Used to be able to write {@link Converter} implementations that * convert {@literal null} into an object of some sort. - * + * * @author Oliver Gierke * @since 1.8 * @see QueryExecutionConverters @@ -32,7 +32,7 @@ public class NullableWrapper { /** * Creates a new {@link NullableWrapper} for the given value. - * + * * @param value can be {@literal null}. */ public NullableWrapper(@Nullable Object value) { @@ -41,7 +41,7 @@ public class NullableWrapper { /** * Returns the type of the contained value. WIll fall back to {@link Object} in case the value is {@literal null}. - * + * * @return will never be {@literal null}. */ public Class getValueType() { @@ -53,7 +53,7 @@ public class NullableWrapper { /** * Returns the backing value. - * + * * @return the value can be {@literal null}. */ @Nullable diff --git a/src/main/java/org/springframework/data/repository/util/QueryExecutionConverters.java b/src/main/java/org/springframework/data/repository/util/QueryExecutionConverters.java index dfc5d2377..971556944 100644 --- a/src/main/java/org/springframework/data/repository/util/QueryExecutionConverters.java +++ b/src/main/java/org/springframework/data/repository/util/QueryExecutionConverters.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -73,7 +73,7 @@ import com.google.common.base.Optional; *
  • {@code io.vavr.collection.Seq}, {@code io.vavr.collection.Map}, {@code io.vavr.collection.Set} - as of 2.0
  • *
  • Reactive wrappers supported by {@link ReactiveWrappers} - as of 2.0
  • * - * + * * @author Oliver Gierke * @author Mark Paluch * @author Christoph Strobl @@ -168,7 +168,7 @@ public abstract class QueryExecutionConverters { /** * Returns whether the given type is a supported wrapper type. - * + * * @param type must not be {@literal null}. * @return */ @@ -218,7 +218,7 @@ public abstract class QueryExecutionConverters { /** * Returns the types that are supported on paginating query methods. Will include custom collection types of e.g. * Javaslang. - * + * * @return */ public static Set> getAllowedPageableTypes() { @@ -227,7 +227,7 @@ public abstract class QueryExecutionConverters { /** * Registers converters for wrapper types found on the classpath. - * + * * @param conversionService must not be {@literal null}. */ public static void registerConvertersIn(ConfigurableConversionService conversionService) { @@ -265,7 +265,7 @@ public abstract class QueryExecutionConverters { /** * Unwraps the given source value in case it's one of the currently supported wrapper types detected at runtime. - * + * * @param source can be {@literal null}. * @return */ @@ -323,7 +323,7 @@ public abstract class QueryExecutionConverters { /** * Creates a new {@link AbstractWrapperTypeConverter} using the given {@link ConversionService} and wrapper type. - * + * * @param conversionService must not be {@literal null}. * @param nullValue must not be {@literal null}. */ @@ -337,7 +337,7 @@ public abstract class QueryExecutionConverters { this.wrapperTypes = Collections.singleton(nullValue.getClass()); } - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.GenericConverter#getConvertibleTypes() */ @@ -350,7 +350,7 @@ public abstract class QueryExecutionConverters { .stream().collect(StreamUtils.toUnmodifiableSet()); } - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.GenericConverter#convert(java.lang.Object, org.springframework.core.convert.TypeDescriptor, org.springframework.core.convert.TypeDescriptor) */ @@ -371,7 +371,7 @@ public abstract class QueryExecutionConverters { /** * Wrap the given, non-{@literal null} value into the wrapper type. - * + * * @param source will never be {@literal null}. * @return must not be {@literal null}. */ @@ -380,21 +380,21 @@ public abstract class QueryExecutionConverters { /** * A Spring {@link Converter} to support Google Guava's {@link Optional}. - * + * * @author Oliver Gierke */ private static class NullableWrapperToGuavaOptionalConverter extends AbstractWrapperTypeConverter { /** * Creates a new {@link NullableWrapperToGuavaOptionalConverter} using the given {@link ConversionService}. - * + * * @param conversionService must not be {@literal null}. */ public NullableWrapperToGuavaOptionalConverter(ConversionService conversionService) { super(conversionService, Optional.absent(), Collections.singleton(Optional.class)); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.util.QueryExecutionConverters.AbstractWrapperTypeConverter#wrap(java.lang.Object) */ @@ -410,21 +410,21 @@ public abstract class QueryExecutionConverters { /** * A Spring {@link Converter} to support JDK 8's {@link java.util.Optional}. - * + * * @author Oliver Gierke */ private static class NullableWrapperToJdk8OptionalConverter extends AbstractWrapperTypeConverter { /** * Creates a new {@link NullableWrapperToJdk8OptionalConverter} using the given {@link ConversionService}. - * + * * @param conversionService must not be {@literal null}. */ public NullableWrapperToJdk8OptionalConverter(ConversionService conversionService) { super(conversionService, java.util.Optional.empty()); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.util.QueryExecutionConverters.AbstractWrapperTypeConverter#wrap(java.lang.Object) */ @@ -440,21 +440,21 @@ public abstract class QueryExecutionConverters { /** * A Spring {@link Converter} to support returning {@link Future} instances from repository methods. - * + * * @author Oliver Gierke */ private static class NullableWrapperToFutureConverter extends AbstractWrapperTypeConverter { /** * Creates a new {@link NullableWrapperToFutureConverter} using the given {@link ConversionService}. - * + * * @param conversionService must not be {@literal null}. */ public NullableWrapperToFutureConverter(ConversionService conversionService) { super(conversionService, new AsyncResult<>(null), Arrays.asList(Future.class, ListenableFuture.class)); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.util.QueryExecutionConverters.AbstractWrapperTypeConverter#wrap(java.lang.Object) */ @@ -466,21 +466,21 @@ public abstract class QueryExecutionConverters { /** * A Spring {@link Converter} to support returning {@link CompletableFuture} instances from repository methods. - * + * * @author Oliver Gierke */ private static class NullableWrapperToCompletableFutureConverter extends AbstractWrapperTypeConverter { /** * Creates a new {@link NullableWrapperToCompletableFutureConverter} using the given {@link ConversionService}. - * + * * @param conversionService must not be {@literal null}. */ public NullableWrapperToCompletableFutureConverter(ConversionService conversionService) { super(conversionService, CompletableFuture.completedFuture(null)); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.util.QueryExecutionConverters.AbstractWrapperTypeConverter#wrap(java.lang.Object) */ @@ -506,7 +506,7 @@ public abstract class QueryExecutionConverters { super(conversionService, Option.empty(), Collections.singleton(Option.class)); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.util.QueryExecutionConverters.AbstractWrapperTypeConverter#wrap(java.lang.Object) */ @@ -530,7 +530,7 @@ public abstract class QueryExecutionConverters { /** * Creates a new {@link NullableWrapperToJavaslangOptionConverter} using the given {@link ConversionService}. - * + * * @param conversionService must not be {@literal null}. */ public NullableWrapperToJavaslangOptionConverter(ConversionService conversionService) { @@ -541,7 +541,7 @@ public abstract class QueryExecutionConverters { return WrapperType.singleValue(javaslang.control.Option.class); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.util.QueryExecutionConverters.AbstractWrapperTypeConverter#wrap(java.lang.Object) */ @@ -561,7 +561,7 @@ public abstract class QueryExecutionConverters { /** * Creates a new {@link NullableWrapperToJavaslangOptionConverter} using the given {@link ConversionService}. - * + * * @param conversionService must not be {@literal null}. */ public NullableWrapperToVavrOptionConverter(ConversionService conversionService) { @@ -572,7 +572,7 @@ public abstract class QueryExecutionConverters { return WrapperType.singleValue(io.vavr.control.Option.class); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.util.QueryExecutionConverters.AbstractWrapperTypeConverter#wrap(java.lang.Object) */ @@ -592,7 +592,7 @@ public abstract class QueryExecutionConverters { INSTANCE; - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.Converter#convert(java.lang.Object) */ @@ -613,7 +613,7 @@ public abstract class QueryExecutionConverters { INSTANCE; - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.Converter#convert(java.lang.Object) */ @@ -669,7 +669,7 @@ public abstract class QueryExecutionConverters { INSTANCE; - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.Converter#convert(java.lang.Object) */ @@ -700,7 +700,7 @@ public abstract class QueryExecutionConverters { INSTANCE; - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.Converter#convert(java.lang.Object) */ diff --git a/src/main/java/org/springframework/data/repository/util/ReactiveWrapperConverters.java b/src/main/java/org/springframework/data/repository/util/ReactiveWrapperConverters.java index cb0a66fe0..6bdf9d964 100644 --- a/src/main/java/org/springframework/data/repository/util/ReactiveWrapperConverters.java +++ b/src/main/java/org/springframework/data/repository/util/ReactiveWrapperConverters.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -51,7 +51,7 @@ import org.springframework.util.ClassUtils; *

    * This class discovers reactive wrapper availability and their conversion support based on the class path. Reactive * wrapper types might be supported/on the class path but conversion may require additional dependencies. - * + * * @author Mark Paluch * @author Oliver Gierke * @since 2.0 @@ -167,7 +167,7 @@ public class ReactiveWrapperConverters { * NOTE: A reactive wrapper type might be supported in general by {@link ReactiveWrappers#supports(Class)} but not * necessarily for conversion using this method. *

    - * + * * @param type must not be {@literal null}. * @return {@literal true} if the {@code type} is a supported reactive wrapper type. */ @@ -178,7 +178,7 @@ public class ReactiveWrapperConverters { /** * Casts or adopts the given wrapper type to a target wrapper type. - * + * * @param reactiveObject the stream, must not be {@literal null}. * @param targetWrapperType must not be {@literal null}. * @return @@ -199,7 +199,7 @@ public class ReactiveWrapperConverters { /** * Maps elements of a reactive element stream to other elements. - * + * * @param reactiveObject must not be {@literal null}. * @param converter must not be {@literal null}. * @return @@ -234,7 +234,7 @@ public class ReactiveWrapperConverters { /** * Returns the {@link ReactiveAdapter} for the given type. - * + * * @param type must not be {@literal null}. * @return * @throws IllegalStateException if no adapter registry could be found. diff --git a/src/main/java/org/springframework/data/repository/util/ReactiveWrappers.java b/src/main/java/org/springframework/data/repository/util/ReactiveWrappers.java index 8703d6b8a..f593a0a3d 100644 --- a/src/main/java/org/springframework/data/repository/util/ReactiveWrappers.java +++ b/src/main/java/org/springframework/data/repository/util/ReactiveWrappers.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 the original author or authors. + * Copyright 2016-2018 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. @@ -41,7 +41,7 @@ import org.springframework.util.ClassUtils; *

    * Supported types are discovered by their availability on the class path. This class is typically used to determine * multiplicity and whether a reactive wrapper type is acceptable for a specific operation. - * + * * @author Mark Paluch * @author Christoph Strobl * @author Oliver Gierke @@ -74,7 +74,7 @@ public class ReactiveWrappers { /** * Enumeration of supported reactive libraries. - * + * * @author Mark Paluch */ static enum ReactiveLibrary { @@ -149,7 +149,7 @@ public class ReactiveWrappers { /** * Returns {@literal true} if the {@code type} is a supported reactive wrapper type. - * + * * @param type must not be {@literal null}. * @return {@literal true} if the {@code type} is a supported reactive wrapper type. */ @@ -159,7 +159,7 @@ public class ReactiveWrappers { /** * Returns whether the given type uses any reactive wrapper type in its method signatures. - * + * * @param type must not be {@literal null}. * @return */ @@ -174,7 +174,7 @@ public class ReactiveWrappers { /** * Returns {@literal true} if {@code type} is a reactive wrapper type that contains no value. - * + * * @param type must not be {@literal null}. * @return {@literal true} if {@code type} is a reactive wrapper type that contains no value. */ @@ -187,7 +187,7 @@ public class ReactiveWrappers { /** * Returns {@literal true} if {@code type} is a reactive wrapper type for a single value. - * + * * @param type must not be {@literal null}. * @return {@literal true} if {@code type} is a reactive wrapper type for a single value. */ @@ -256,7 +256,7 @@ public class ReactiveWrappers { /** * Returns whether the given type is a reactive wrapper type. - * + * * @param type must not be {@literal null}. * @return */ @@ -269,7 +269,7 @@ public class ReactiveWrappers { /** * Looks up a {@link ReactiveTypeDescriptor} for the given wrapper type. - * + * * @param type must not be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/repository/util/TxUtils.java b/src/main/java/org/springframework/data/repository/util/TxUtils.java index eda72e51d..3d951ca93 100644 --- a/src/main/java/org/springframework/data/repository/util/TxUtils.java +++ b/src/main/java/org/springframework/data/repository/util/TxUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2010 the original author or authors. + * Copyright 2008-2018 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. @@ -17,7 +17,7 @@ package org.springframework.data.repository.util; /** * Simple constants holder. - * + * * @author Oliver Gierke */ public abstract class TxUtils { diff --git a/src/main/java/org/springframework/data/repository/util/VavrCollections.java b/src/main/java/org/springframework/data/repository/util/VavrCollections.java index 5fa1fb929..71a9fe120 100644 --- a/src/main/java/org/springframework/data/repository/util/VavrCollections.java +++ b/src/main/java/org/springframework/data/repository/util/VavrCollections.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -36,7 +36,7 @@ import org.springframework.lang.Nullable; /** * Converter implementations to map from and to Vavr collections. - * + * * @author Oliver Gierke * @author Christoph Strobl * @since 2.0 @@ -51,7 +51,7 @@ class VavrCollections { return WrapperType.multiValue(io.vavr.collection.Traversable.class); } - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.Converter#convert(java.lang.Object) */ @@ -79,7 +79,7 @@ class VavrCollections { INSTANCE { - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.GenericConverter#getConvertibleTypes() */ @@ -89,7 +89,7 @@ class VavrCollections { return CONVERTIBLE_PAIRS; } - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.ConditionalConverter#matches(org.springframework.core.convert.TypeDescriptor, org.springframework.core.convert.TypeDescriptor) */ @@ -110,7 +110,7 @@ class VavrCollections { return true; } - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.GenericConverter#convert(java.lang.Object, org.springframework.core.convert.TypeDescriptor, org.springframework.core.convert.TypeDescriptor) */ diff --git a/src/main/java/org/springframework/data/support/CachingIsNewStrategyFactory.java b/src/main/java/org/springframework/data/support/CachingIsNewStrategyFactory.java index bc57a5327..608f9b1d5 100644 --- a/src/main/java/org/springframework/data/support/CachingIsNewStrategyFactory.java +++ b/src/main/java/org/springframework/data/support/CachingIsNewStrategyFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; /** * {@link IsNewStrategyFactory} that caches resolved {@link IsNewStrategy} instances per type to avoid re-resolving them * on each and every request. - * + * * @author Oliver Gierke * @author Christoph Strobl */ @@ -34,7 +34,7 @@ public class CachingIsNewStrategyFactory implements IsNewStrategyFactory { private final @NonNull IsNewStrategyFactory delegate; private final Map, IsNewStrategy> cache = new ConcurrentHashMap<>(); - /* + /* * (non-Javadoc) * @see org.springframework.data.mapping.model.IsNewStrategyFactory#getIsNewStrategy(java.lang.Class) */ diff --git a/src/main/java/org/springframework/data/support/ExampleMatcherAccessor.java b/src/main/java/org/springframework/data/support/ExampleMatcherAccessor.java index db2337d7e..d656249d9 100644 --- a/src/main/java/org/springframework/data/support/ExampleMatcherAccessor.java +++ b/src/main/java/org/springframework/data/support/ExampleMatcherAccessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -40,7 +40,7 @@ public class ExampleMatcherAccessor { /** * Returns the {@link PropertySpecifier}s of the underlying {@link ExampleMatcher}. - * + * * @return unmodifiable {@link Collection} of {@link ExampleMatcher.PropertySpecifier}s. */ public Collection getPropertySpecifiers() { @@ -49,7 +49,7 @@ public class ExampleMatcherAccessor { /** * Returns whether the underlying {@link ExampleMatcher} contains a {@link PropertySpecifier} for the given path. - * + * * @param path the dot-path identifying a property. * @return {@literal true} in case {@link ExampleMatcher.PropertySpecifier} defined for given path. */ diff --git a/src/main/java/org/springframework/data/support/IsNewStrategy.java b/src/main/java/org/springframework/data/support/IsNewStrategy.java index 9e1a7f71d..f584adbc0 100644 --- a/src/main/java/org/springframework/data/support/IsNewStrategy.java +++ b/src/main/java/org/springframework/data/support/IsNewStrategy.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. @@ -17,7 +17,7 @@ package org.springframework.data.support; /** * Strategy interface to determine whether a given entity is to be considered new. - * + * * @author Oliver Gierke * @since 1.5 */ @@ -25,7 +25,7 @@ public interface IsNewStrategy { /** * Returns whether the given entity is new, i.e. has never been persisted before or not. - * + * * @param entity must not be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/support/IsNewStrategyFactory.java b/src/main/java/org/springframework/data/support/IsNewStrategyFactory.java index d570d4b7f..5a1a0b096 100644 --- a/src/main/java/org/springframework/data/support/IsNewStrategyFactory.java +++ b/src/main/java/org/springframework/data/support/IsNewStrategyFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. @@ -17,7 +17,7 @@ package org.springframework.data.support; /** * Factory interface to create {@link IsNewStrategy} instances for a given class. - * + * * @author Oliver Gierke * @since 1.5 */ @@ -25,7 +25,7 @@ public interface IsNewStrategyFactory { /** * Returns the {@link IsNewStrategy} to be used for the given type. - * + * * @param type must not be {@literal null}. * @return the {@link IsNewStrategy} to be used for the given type, will never be {@literal null}. * @throws IllegalArgumentException in case no {@link IsNewStrategy} could be determined. diff --git a/src/main/java/org/springframework/data/support/IsNewStrategyFactorySupport.java b/src/main/java/org/springframework/data/support/IsNewStrategyFactorySupport.java index c78b89203..f680902f7 100644 --- a/src/main/java/org/springframework/data/support/IsNewStrategyFactorySupport.java +++ b/src/main/java/org/springframework/data/support/IsNewStrategyFactorySupport.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -22,13 +22,13 @@ import org.springframework.util.Assert; /** * {@link IsNewStrategyFactory} that handles {@link Persistable} implementations directly by returning a * {@link PersistableIsNewStrategy} and delegating to {@link #doGetIsNewStrategy(Class)} for all other types. - * + * * @author Oliver Gierke * @since 1.5 */ public abstract class IsNewStrategyFactorySupport implements IsNewStrategyFactory { - /* + /* * (non-Javadoc) * @see org.springframework.data.support.IsNewStrategyFactory#getIsNewStrategy(java.lang.Class) */ @@ -52,7 +52,7 @@ public abstract class IsNewStrategyFactorySupport implements IsNewStrategyFactor /** * Determine the actual {@link IsNewStrategy} to be used for the given type. - * + * * @param type will never be {@literal null}. * @return the {@link IsNewStrategy} to be used for the given type or {@literal null} in case none can be resolved. */ diff --git a/src/main/java/org/springframework/data/support/PersistableIsNewStrategy.java b/src/main/java/org/springframework/data/support/PersistableIsNewStrategy.java index b62a34606..f0e8e8264 100644 --- a/src/main/java/org/springframework/data/support/PersistableIsNewStrategy.java +++ b/src/main/java/org/springframework/data/support/PersistableIsNewStrategy.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. @@ -20,14 +20,14 @@ import org.springframework.util.Assert; /** * {@link IsNewStrategy} that invokes {@link Persistable#isNew()} on the given object. - * + * * @author Oliver Gierke */ public enum PersistableIsNewStrategy implements IsNewStrategy { INSTANCE; - /* + /* * (non-Javadoc) * @see org.springframework.data.support.IsNewStrategy#isNew(java.lang.Object) */ diff --git a/src/main/java/org/springframework/data/transaction/ChainedTransactionManager.java b/src/main/java/org/springframework/data/transaction/ChainedTransactionManager.java index 1a2eebf7e..59b75be4a 100644 --- a/src/main/java/org/springframework/data/transaction/ChainedTransactionManager.java +++ b/src/main/java/org/springframework/data/transaction/ChainedTransactionManager.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2013 the original author or authors. + * Copyright 2011-2018 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. @@ -44,7 +44,7 @@ import org.springframework.util.Assert; * which means the {@link PlatformTransactionManager} most likely to break the transaction should be the last * in the list configured. A {@link PlatformTransactionManager} throwing an exception during commit will automatically * cause the remaining transaction managers to roll back instead of committing. - * + * * @author Michael Hunger * @author Oliver Gierke * @since 1.6 @@ -58,7 +58,7 @@ public class ChainedTransactionManager implements PlatformTransactionManager { /** * Creates a new {@link ChainedTransactionManager} delegating to the given {@link PlatformTransactionManager}s. - * + * * @param transactionManagers must not be {@literal null} or empty. */ public ChainedTransactionManager(PlatformTransactionManager... transactionManagers) { @@ -68,7 +68,7 @@ public class ChainedTransactionManager implements PlatformTransactionManager { /** * Creates a new {@link ChainedTransactionManager} using the given {@link SynchronizationManager} and * {@link PlatformTransactionManager}s. - * + * * @param synchronizationManager must not be {@literal null}. * @param transactionManagers must not be {@literal null} or empty. */ diff --git a/src/main/java/org/springframework/data/transaction/MultiTransactionStatus.java b/src/main/java/org/springframework/data/transaction/MultiTransactionStatus.java index 416d086b3..1562a1304 100644 --- a/src/main/java/org/springframework/data/transaction/MultiTransactionStatus.java +++ b/src/main/java/org/springframework/data/transaction/MultiTransactionStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -28,7 +28,7 @@ import org.springframework.util.Assert; /** * {@link TransactionStatus} implementation to orchestrate {@link TransactionStatus} instances for multiple * {@link PlatformTransactionManager} instances. - * + * * @author Michael Hunger * @author Oliver Gierke * @author Christoph Strobl @@ -44,7 +44,7 @@ class MultiTransactionStatus implements TransactionStatus { /** * Creates a new {@link MultiTransactionStatus} for the given {@link PlatformTransactionManager}. - * + * * @param mainTransactionManager must not be {@literal null}. */ public MultiTransactionStatus(PlatformTransactionManager mainTransactionManager) { @@ -76,7 +76,7 @@ class MultiTransactionStatus implements TransactionStatus { /** * Rolls back the {@link TransactionStatus} registered for the given {@link PlatformTransactionManager}. - * + * * @param transactionManager must not be {@literal null}. */ public void rollback(PlatformTransactionManager transactionManager) { diff --git a/src/main/java/org/springframework/data/transaction/SpringTransactionSynchronizationManager.java b/src/main/java/org/springframework/data/transaction/SpringTransactionSynchronizationManager.java index 96f6236e7..02bcaf9ca 100644 --- a/src/main/java/org/springframework/data/transaction/SpringTransactionSynchronizationManager.java +++ b/src/main/java/org/springframework/data/transaction/SpringTransactionSynchronizationManager.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2013 the original author or authors. + * Copyright 2011-2018 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. @@ -19,7 +19,7 @@ import org.springframework.transaction.support.TransactionSynchronizationManager /** * {@link SynchronizationManager} delegating calls to Spring's {@link TransactionSynchronizationManager}. - * + * * @author Michael Hunger * @author Oliver Gierke * @since 1.6 diff --git a/src/main/java/org/springframework/data/transaction/SynchronizationManager.java b/src/main/java/org/springframework/data/transaction/SynchronizationManager.java index 227b616c6..70fe4badd 100644 --- a/src/main/java/org/springframework/data/transaction/SynchronizationManager.java +++ b/src/main/java/org/springframework/data/transaction/SynchronizationManager.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2013 the original author or authors. + * Copyright 2011-2018 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. @@ -18,7 +18,7 @@ package org.springframework.data.transaction; /** * Strategy interface to allow providing a dedicated synchronization mechanism. - * + * * @author Michael Hunger * @author Oliver Gierke * @see SpringTransactionSynchronizationManager diff --git a/src/main/java/org/springframework/data/util/AnnotatedTypeScanner.java b/src/main/java/org/springframework/data/util/AnnotatedTypeScanner.java index 8a4c8ed0f..329af5645 100644 --- a/src/main/java/org/springframework/data/util/AnnotatedTypeScanner.java +++ b/src/main/java/org/springframework/data/util/AnnotatedTypeScanner.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -33,7 +33,7 @@ import org.springframework.util.ClassUtils; /** * Scanner to find types with annotations on the classpath. - * + * * @author Oliver Gierke * @author Christoph Strobl */ @@ -47,7 +47,7 @@ public class AnnotatedTypeScanner implements ResourceLoaderAware, EnvironmentAwa /** * Creates a new {@link AnnotatedTypeScanner} for the given annotation types. - * + * * @param annotationTypes the annotation types to scan for. */ @SafeVarargs @@ -57,7 +57,7 @@ public class AnnotatedTypeScanner implements ResourceLoaderAware, EnvironmentAwa /** * Creates a new {@link AnnotatedTypeScanner} for the given annotation types. - * + * * @param considerInterfaces whether to consider interfaces as well. * @param annotationTypes the annotations to scan for. */ @@ -68,7 +68,7 @@ public class AnnotatedTypeScanner implements ResourceLoaderAware, EnvironmentAwa this.considerInterfaces = considerInterfaces; } - /* + /* * (non-Javadoc) * @see org.springframework.context.ResourceLoaderAware#setResourceLoader(org.springframework.core.io.ResourceLoader) */ @@ -77,7 +77,7 @@ public class AnnotatedTypeScanner implements ResourceLoaderAware, EnvironmentAwa this.resourceLoader = resourceLoader; } - /* + /* * (non-Javadoc) * @see org.springframework.context.EnvironmentAware#setEnvironment(org.springframework.core.env.Environment) */ @@ -136,7 +136,7 @@ public class AnnotatedTypeScanner implements ResourceLoaderAware, EnvironmentAwa /** * Custom extension of {@link ClassPathScanningCandidateComponentProvider} to make sure interfaces to not get dropped * from scanning results. - * + * * @author Oliver Gierke */ private static class InterfaceAwareScanner extends ClassPathScanningCandidateComponentProvider { @@ -148,7 +148,7 @@ public class AnnotatedTypeScanner implements ResourceLoaderAware, EnvironmentAwa this.considerInterfaces = considerInterfaces; } - /* + /* * (non-Javadoc) * @see org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider#isCandidateComponent(org.springframework.beans.factory.annotation.AnnotatedBeanDefinition) */ diff --git a/src/main/java/org/springframework/data/util/AnnotationDetectionFieldCallback.java b/src/main/java/org/springframework/data/util/AnnotationDetectionFieldCallback.java index a7cadfbdf..a990f7342 100755 --- a/src/main/java/org/springframework/data/util/AnnotationDetectionFieldCallback.java +++ b/src/main/java/org/springframework/data/util/AnnotationDetectionFieldCallback.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -27,7 +27,7 @@ import org.springframework.util.ReflectionUtils.FieldCallback; /** * A {@link FieldCallback} that will inspect each field for a given annotation. This field's type can then be accessed * afterwards. - * + * * @author Oliver Gierke * @author Christoph Strobl */ @@ -38,7 +38,7 @@ public class AnnotationDetectionFieldCallback implements FieldCallback { /** * Creates a new {@link AnnotationDetectionFieldCallback} scanning for an annotation of the given type. - * + * * @param annotationType must not be {@literal null}. */ public AnnotationDetectionFieldCallback(Class annotationType) { @@ -67,7 +67,7 @@ public class AnnotationDetectionFieldCallback implements FieldCallback { /** * Returns the detected field. - * + * * @return the field */ @Nullable @@ -77,7 +77,7 @@ public class AnnotationDetectionFieldCallback implements FieldCallback { /** * Returns the field that was detected. - * + * * @return * @throws IllegalStateException in case no field with the configured annotation was found. */ @@ -94,7 +94,7 @@ public class AnnotationDetectionFieldCallback implements FieldCallback { /** * Returns the type of the field. - * + * * @return */ @Nullable @@ -107,7 +107,7 @@ public class AnnotationDetectionFieldCallback implements FieldCallback { /** * Returns the type of the field or throws an {@link IllegalArgumentException} if no field could be found. - * + * * @return * @throws IllegalStateException in case no field with the configured annotation was found. */ @@ -117,7 +117,7 @@ public class AnnotationDetectionFieldCallback implements FieldCallback { /** * Retrieves the value of the field by reflection. - * + * * @param source must not be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/util/AnnotationDetectionMethodCallback.java b/src/main/java/org/springframework/data/util/AnnotationDetectionMethodCallback.java index fe63bdbc5..401599459 100644 --- a/src/main/java/org/springframework/data/util/AnnotationDetectionMethodCallback.java +++ b/src/main/java/org/springframework/data/util/AnnotationDetectionMethodCallback.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2016 the original author or authors. + * Copyright 2014-2018 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. @@ -25,7 +25,7 @@ import org.springframework.util.ReflectionUtils.MethodCallback; /** * {@link MethodCallback} to find annotations of a given type. - * + * * @author Oliver Gierke * @author Christoph Strobl */ @@ -41,7 +41,7 @@ public class AnnotationDetectionMethodCallback implements /** * Creates a new {@link AnnotationDetectionMethodCallback} for the given annotation type. - * + * * @param annotationType must not be {@literal null}. */ public AnnotationDetectionMethodCallback(Class annotationType) { @@ -50,7 +50,7 @@ public class AnnotationDetectionMethodCallback implements /** * Creates a new {@link AnnotationDetectionMethodCallback} for the given annotation type. - * + * * @param annotationType must not be {@literal null}. * @param enforceUniqueness whether to fail if multiple methods with the annotation are found. */ @@ -72,7 +72,7 @@ public class AnnotationDetectionMethodCallback implements /** * Returns the method with the configured annotation. - * + * * @return * @throws IllegalStateException in case no method with the configured annotation was found. */ @@ -97,14 +97,14 @@ public class AnnotationDetectionMethodCallback implements /** * Returns whether an annotation was found. - * + * * @return */ public boolean hasFoundAnnotation() { return annotation != null; } - /* + /* * (non-Javadoc) * @see org.springframework.util.ReflectionUtils.MethodCallback#doWith(java.lang.reflect.Method) */ diff --git a/src/main/java/org/springframework/data/util/CastUtils.java b/src/main/java/org/springframework/data/util/CastUtils.java index c9e5bbdd0..c445aedbe 100644 --- a/src/main/java/org/springframework/data/util/CastUtils.java +++ b/src/main/java/org/springframework/data/util/CastUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/main/java/org/springframework/data/util/ClassTypeInformation.java b/src/main/java/org/springframework/data/util/ClassTypeInformation.java index 452d65cbc..77d82bd84 100644 --- a/src/main/java/org/springframework/data/util/ClassTypeInformation.java +++ b/src/main/java/org/springframework/data/util/ClassTypeInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -35,7 +35,7 @@ import org.springframework.util.ConcurrentReferenceHashMap; /** * {@link TypeInformation} for a plain {@link Class}. - * + * * @author Oliver Gierke * @author Christoph Strobl */ @@ -58,7 +58,7 @@ public class ClassTypeInformation extends TypeDiscoverer { /** * Simple factory method to easily create new instances of {@link ClassTypeInformation}. - * + * * @param * @param type must not be {@literal null}. * @return @@ -72,7 +72,7 @@ public class ClassTypeInformation extends TypeDiscoverer { /** * Creates a {@link TypeInformation} from the given method's return type. - * + * * @param method must not be {@literal null}. * @return */ @@ -85,7 +85,7 @@ public class ClassTypeInformation extends TypeDiscoverer { /** * Creates {@link ClassTypeInformation} for the given type. - * + * * @param type */ ClassTypeInformation(Class type) { @@ -95,7 +95,7 @@ public class ClassTypeInformation extends TypeDiscoverer { /** * Little helper to allow us to create a generified map, actually just to satisfy the compiler. - * + * * @param type must not be {@literal null}. * @return */ @@ -141,7 +141,7 @@ public class ClassTypeInformation extends TypeDiscoverer { return type; } - /* + /* * (non-Javadoc) * @see org.springframework.data.util.TypeDiscoverer#getRawTypeInformation() */ @@ -150,7 +150,7 @@ public class ClassTypeInformation extends TypeDiscoverer { return this; } - /* + /* * (non-Javadoc) * @see org.springframework.data.util.TypeDiscoverer#isAssignableFrom(org.springframework.data.util.TypeInformation) */ @@ -168,7 +168,7 @@ public class ClassTypeInformation extends TypeDiscoverer { return (TypeInformation) type; } - /* + /* * (non-Javadoc) * @see java.lang.Object#toString() */ diff --git a/src/main/java/org/springframework/data/util/CloseableIterator.java b/src/main/java/org/springframework/data/util/CloseableIterator.java index 57c50d792..254c98de7 100644 --- a/src/main/java/org/springframework/data/util/CloseableIterator.java +++ b/src/main/java/org/springframework/data/util/CloseableIterator.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2015-2018 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. @@ -22,7 +22,7 @@ import java.util.Iterator; * A {@link CloseableIterator} serves as a bridging data structure for the underlying data store specific results that * can be wrapped in a Java 8 {@link java.util.stream.Stream}. This allows implementations to clean up any resources * they need to keep open to iterate over elements. - * + * * @author Thomas Darimont * @param * @since 1.10 diff --git a/src/main/java/org/springframework/data/util/DirectFieldAccessFallbackBeanWrapper.java b/src/main/java/org/springframework/data/util/DirectFieldAccessFallbackBeanWrapper.java index da8e4e1b1..f3429bd5b 100644 --- a/src/main/java/org/springframework/data/util/DirectFieldAccessFallbackBeanWrapper.java +++ b/src/main/java/org/springframework/data/util/DirectFieldAccessFallbackBeanWrapper.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2014 the original author or authors. + * Copyright 2012-2018 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. @@ -27,7 +27,7 @@ import org.springframework.lang.Nullable; /** * Custom extension of {@link BeanWrapperImpl} that falls back to direct field access in case the object or type being * wrapped does not use accessor methods. - * + * * @author Oliver Gierke */ public class DirectFieldAccessFallbackBeanWrapper extends BeanWrapperImpl { @@ -40,7 +40,7 @@ public class DirectFieldAccessFallbackBeanWrapper extends BeanWrapperImpl { super(type); } - /* + /* * (non-Javadoc) * @see org.springframework.beans.BeanWrapperImpl#getPropertyValue(java.lang.String) */ @@ -64,7 +64,7 @@ public class DirectFieldAccessFallbackBeanWrapper extends BeanWrapperImpl { } } - /* + /* * (non-Javadoc) * @see org.springframework.beans.BeanWrapperImpl#setPropertyValue(java.lang.String, java.lang.Object) */ diff --git a/src/main/java/org/springframework/data/util/GenericArrayTypeInformation.java b/src/main/java/org/springframework/data/util/GenericArrayTypeInformation.java index 155054d0e..7f06de574 100644 --- a/src/main/java/org/springframework/data/util/GenericArrayTypeInformation.java +++ b/src/main/java/org/springframework/data/util/GenericArrayTypeInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/util/Lazy.java b/src/main/java/org/springframework/data/util/Lazy.java index 42ff67466..789f966f7 100644 --- a/src/main/java/org/springframework/data/util/Lazy.java +++ b/src/main/java/org/springframework/data/util/Lazy.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -72,7 +72,7 @@ public class Lazy implements Supplier { /** * Returns the value of the lazy computation or the given default value in case the computation yields * {@literal null}. - * + * * @param value * @return */ @@ -84,7 +84,7 @@ public class Lazy implements Supplier { /** * Returns the value of the lazy computation or the value produced by the given {@link Supplier} in case the original * value is {@literal null}. - * + * * @param supplier must not be {@literal null}. * @return */ @@ -126,7 +126,7 @@ public class Lazy implements Supplier { /** * Returns the value of the lazy evaluation. - * + * * @return */ @Nullable diff --git a/src/main/java/org/springframework/data/util/LazyStreamable.java b/src/main/java/org/springframework/data/util/LazyStreamable.java index 812409631..41d4f31d7 100644 --- a/src/main/java/org/springframework/data/util/LazyStreamable.java +++ b/src/main/java/org/springframework/data/util/LazyStreamable.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. @@ -23,7 +23,7 @@ import java.util.stream.Stream; /** * Lazy implementation of {@link Streamable} obtains a {@link Stream} from a given {@link Supplier}. - * + * * @author Oliver Gierke * @since 2.0 */ @@ -41,7 +41,7 @@ class LazyStreamable implements Streamable { return stream().iterator(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.util.Streamable#stream() */ diff --git a/src/main/java/org/springframework/data/util/MultiValueMapCollector.java b/src/main/java/org/springframework/data/util/MultiValueMapCollector.java index 556bf49ae..3960cf852 100644 --- a/src/main/java/org/springframework/data/util/MultiValueMapCollector.java +++ b/src/main/java/org/springframework/data/util/MultiValueMapCollector.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/main/java/org/springframework/data/util/NullableUtils.java b/src/main/java/org/springframework/data/util/NullableUtils.java index dc47e6cee..914376aec 100644 --- a/src/main/java/org/springframework/data/util/NullableUtils.java +++ b/src/main/java/org/springframework/data/util/NullableUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/main/java/org/springframework/data/util/Optionals.java b/src/main/java/org/springframework/data/util/Optionals.java index 90f3ac186..2d0e0c4d9 100644 --- a/src/main/java/org/springframework/data/util/Optionals.java +++ b/src/main/java/org/springframework/data/util/Optionals.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -193,7 +193,7 @@ public interface Optionals { /** * Invokes the given {@link Consumer} if the {@link Optional} is present or the {@link Runnable} if not. - * + * * @param optional must not be {@literal null}. * @param consumer must not be {@literal null}. * @param runnable must not be {@literal null}. diff --git a/src/main/java/org/springframework/data/util/Pair.java b/src/main/java/org/springframework/data/util/Pair.java index 6346b710a..c68798282 100644 --- a/src/main/java/org/springframework/data/util/Pair.java +++ b/src/main/java/org/springframework/data/util/Pair.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -28,7 +28,7 @@ import java.util.stream.Stream; /** * A tuple of things. - * + * * @author Tobias Trelle * @author Oliver Gierke * @author Christoph Strobl @@ -46,7 +46,7 @@ public final class Pair { /** * Creates a new {@link Pair} for the given elements. - * + * * @param first must not be {@literal null}. * @param second must not be {@literal null}. * @return @@ -57,7 +57,7 @@ public final class Pair { /** * Returns the first element of the {@link Pair}. - * + * * @return */ public S getFirst() { @@ -66,7 +66,7 @@ public final class Pair { /** * Returns the second element of the {@link Pair}. - * + * * @return */ public T getSecond() { diff --git a/src/main/java/org/springframework/data/util/ParameterizedTypeInformation.java b/src/main/java/org/springframework/data/util/ParameterizedTypeInformation.java index 80319965f..597b554f0 100644 --- a/src/main/java/org/springframework/data/util/ParameterizedTypeInformation.java +++ b/src/main/java/org/springframework/data/util/ParameterizedTypeInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -159,7 +159,7 @@ class ParameterizedTypeInformation extends ParentTypeAwareTypeInformation return createInfo(type.getActualTypeArguments()[0]); } - /* + /* * (non-Javadoc) * @see org.springframework.data.util.TypeDiscoverer#specialize(org.springframework.data.util.ClassTypeInformation) */ @@ -246,7 +246,7 @@ class ParameterizedTypeInformation extends ParentTypeAwareTypeInformation /** * Resolves the type variables to be used. Uses the parent's type variable map but overwrites variables locally * declared. - * + * * @param type must not be {@literal null}. * @param parent must not be {@literal null}. * @return will never be {@literal null}. @@ -269,7 +269,7 @@ class ParameterizedTypeInformation extends ParentTypeAwareTypeInformation /** * Recursively resolves the type bound to the given {@link Type} in case it's a {@link TypeVariable} and there's an * entry in the given type variables. - * + * * @param source must not be {@literal null}. * @param variables must not be {@literal null}. * @return will never be {@literal null}. diff --git a/src/main/java/org/springframework/data/util/ParentTypeAwareTypeInformation.java b/src/main/java/org/springframework/data/util/ParentTypeAwareTypeInformation.java index b6fd9f4c7..ecea709a7 100644 --- a/src/main/java/org/springframework/data/util/ParentTypeAwareTypeInformation.java +++ b/src/main/java/org/springframework/data/util/ParentTypeAwareTypeInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2015 the original author or authors. + * Copyright 2011-2018 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. @@ -23,7 +23,7 @@ import org.springframework.lang.Nullable; /** * Base class for {@link TypeInformation} implementations that need parent type awareness. - * + * * @author Oliver Gierke */ public abstract class ParentTypeAwareTypeInformation extends TypeDiscoverer { @@ -33,7 +33,7 @@ public abstract class ParentTypeAwareTypeInformation extends TypeDiscoverer extends TypeDiscoverer extends TypeDiscoverer extends TypeDiscoverer Collector> toUnmodifiableList() { @@ -78,7 +78,7 @@ public interface StreamUtils { /** * Returns a {@link Collector} to create an unmodifiable {@link Set}. - * + * * @return will never be {@literal null}. */ public static Collector> toUnmodifiableSet() { diff --git a/src/main/java/org/springframework/data/util/Streamable.java b/src/main/java/org/springframework/data/util/Streamable.java index ae6d30f4c..68aed2ac7 100644 --- a/src/main/java/org/springframework/data/util/Streamable.java +++ b/src/main/java/org/springframework/data/util/Streamable.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -27,7 +27,7 @@ import org.springframework.util.Assert; /** * Simple interface to ease streamability of {@link Iterable}s. - * + * * @author Oliver Gierke * @author Christoph Strobl */ @@ -36,7 +36,7 @@ public interface Streamable extends Iterable { /** * Returns an empty {@link Streamable}. - * + * * @return will never be {@literal null}. */ static Streamable empty() { @@ -45,7 +45,7 @@ public interface Streamable extends Iterable { /** * Returns a {@link Streamable} with the given elements. - * + * * @param t the elements to return. * @return */ @@ -56,7 +56,7 @@ public interface Streamable extends Iterable { /** * Returns a {@link Streamable} for the given {@link Iterable}. - * + * * @param iterable must not be {@literal null}. * @return */ @@ -73,7 +73,7 @@ public interface Streamable extends Iterable { /** * Creates a non-parallel {@link Stream} of the underlying {@link Iterable}. - * + * * @return will never be {@literal null}. */ default Stream stream() { @@ -82,7 +82,7 @@ public interface Streamable extends Iterable { /** * Returns a new {@link Streamable} that will apply the given {@link Function} to the current one. - * + * * @param mapper must not be {@literal null}. * @return * @see Stream#map(Function) @@ -96,7 +96,7 @@ public interface Streamable extends Iterable { /** * Returns a new {@link Streamable} that will apply the given {@link Function} to the current one. - * + * * @param mapper must not be {@literal null}. * @return * @see Stream#flatMap(Function) @@ -110,7 +110,7 @@ public interface Streamable extends Iterable { /** * Returns a new {@link Streamable} that will apply the given filter {@link Predicate} to the current one. - * + * * @param predicate must not be {@literal null}. * @return * @see Stream#filter(Predicate) diff --git a/src/main/java/org/springframework/data/util/TypeDiscoverer.java b/src/main/java/org/springframework/data/util/TypeDiscoverer.java index a97f7a5a2..1c2566ee4 100644 --- a/src/main/java/org/springframework/data/util/TypeDiscoverer.java +++ b/src/main/java/org/springframework/data/util/TypeDiscoverer.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/main/java/org/springframework/data/util/TypeInformation.java b/src/main/java/org/springframework/data/util/TypeInformation.java index 23d1218dd..de16747df 100644 --- a/src/main/java/org/springframework/data/util/TypeInformation.java +++ b/src/main/java/org/springframework/data/util/TypeInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. diff --git a/src/main/java/org/springframework/data/util/TypeVariableTypeInformation.java b/src/main/java/org/springframework/data/util/TypeVariableTypeInformation.java index 265e74586..82b3e949c 100644 --- a/src/main/java/org/springframework/data/util/TypeVariableTypeInformation.java +++ b/src/main/java/org/springframework/data/util/TypeVariableTypeInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2014 the original author or authors. + * Copyright 2011-2018 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. @@ -26,7 +26,7 @@ import org.springframework.util.Assert; /** * Special {@link TypeDiscoverer} to determine the actual type for a {@link TypeVariable}. Will consider the context the * {@link TypeVariable} is being used in. - * + * * @author Oliver Gierke */ class TypeVariableTypeInformation extends ParentTypeAwareTypeInformation { @@ -36,7 +36,7 @@ class TypeVariableTypeInformation extends ParentTypeAwareTypeInformation { /** * Creates a new {@link TypeVariableTypeInformation} for the given {@link TypeVariable} owning {@link Type} and parent * {@link TypeDiscoverer}. - * + * * @param variable must not be {@literal null} * @param owningType must not be {@literal null} * @param parent diff --git a/src/main/java/org/springframework/data/util/Version.java b/src/main/java/org/springframework/data/util/Version.java index df38cbad2..23251f19a 100644 --- a/src/main/java/org/springframework/data/util/Version.java +++ b/src/main/java/org/springframework/data/util/Version.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2015 the original author or authors. + * Copyright 2013-2018 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. @@ -24,7 +24,7 @@ import org.springframework.util.StringUtils; /** * Value object to represent a Version consisting of major, minor and bugfix part. - * + * * @author Oliver Gierke */ public class Version implements Comparable { @@ -38,7 +38,7 @@ public class Version implements Comparable { /** * Creates a new {@link Version} from the given integer values. At least one value has to be given but a maximum of 4. - * + * * @param parts must not be {@literal null} or empty. */ public Version(int... parts) { @@ -60,7 +60,7 @@ public class Version implements Comparable { /** * Parses the given string representation of a version into a {@link Version} object. - * + * * @param version must not be {@literal null} or empty. * @return */ @@ -89,7 +89,7 @@ public class Version implements Comparable { /** * Returns whether the current {@link Version} is greater (newer) than the given one. - * + * * @param version * @return */ @@ -99,7 +99,7 @@ public class Version implements Comparable { /** * Returns whether the current {@link Version} is greater (newer) or the same as the given one. - * + * * @param version * @return */ @@ -109,7 +109,7 @@ public class Version implements Comparable { /** * Returns whether the current {@link Version} is the same as the given one. - * + * * @param version * @return */ @@ -119,7 +119,7 @@ public class Version implements Comparable { /** * Returns whether the current {@link Version} is less (older) than the given one. - * + * * @param version * @return */ @@ -129,7 +129,7 @@ public class Version implements Comparable { /** * Returns whether the current {@link Version} is less (older) or equal to the current one. - * + * * @param version * @return */ diff --git a/src/main/java/org/springframework/data/web/HateoasPageableHandlerMethodArgumentResolver.java b/src/main/java/org/springframework/data/web/HateoasPageableHandlerMethodArgumentResolver.java index 5c9143b98..9fcae8a01 100644 --- a/src/main/java/org/springframework/data/web/HateoasPageableHandlerMethodArgumentResolver.java +++ b/src/main/java/org/springframework/data/web/HateoasPageableHandlerMethodArgumentResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2014 the original author or authors. + * Copyright 2013-2018 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. @@ -35,7 +35,7 @@ import org.springframework.web.util.UriComponentsBuilder; /** * Extension of {@link PageableHandlerMethodArgumentResolver} that also supports enhancing URIs using Spring HATEOAS * support. - * + * * @since 1.6 * @author Oliver Gierke * @author Nick Williams @@ -58,7 +58,7 @@ public class HateoasPageableHandlerMethodArgumentResolver extends PageableHandle /** * Creates a new {@link HateoasPageableHandlerMethodArgumentResolver} using the given * {@link HateoasSortHandlerMethodArgumentResolver}.. - * + * * @param sortResolver */ public HateoasPageableHandlerMethodArgumentResolver(@Nullable HateoasSortHandlerMethodArgumentResolver sortResolver) { @@ -69,7 +69,7 @@ public class HateoasPageableHandlerMethodArgumentResolver extends PageableHandle /** * Returns the template variable for the pagination parameters. - * + * * @param parameter can be {@literal null}. * @return * @since 1.7 diff --git a/src/main/java/org/springframework/data/web/HateoasSortHandlerMethodArgumentResolver.java b/src/main/java/org/springframework/data/web/HateoasSortHandlerMethodArgumentResolver.java index 028654c34..63a24c436 100644 --- a/src/main/java/org/springframework/data/web/HateoasSortHandlerMethodArgumentResolver.java +++ b/src/main/java/org/springframework/data/web/HateoasSortHandlerMethodArgumentResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2014 the original author or authors. + * Copyright 2013-2018 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. @@ -30,7 +30,7 @@ import org.springframework.web.util.UriComponentsBuilder; /** * Extension of {@link SortHandlerMethodArgumentResolver} that also supports enhancing URIs using Spring HATEOAS * support. - * + * * @since 1.6 * @author Oliver Gierke * @author Thomas Darimont @@ -42,7 +42,7 @@ public class HateoasSortHandlerMethodArgumentResolver extends SortHandlerMethodA /** * Returns the template variables for the sort parameter. - * + * * @param parameter must not be {@literal null}. * @return * @since 1.7 diff --git a/src/main/java/org/springframework/data/web/JsonPath.java b/src/main/java/org/springframework/data/web/JsonPath.java index 6e2bcbc29..dfcba3593 100644 --- a/src/main/java/org/springframework/data/web/JsonPath.java +++ b/src/main/java/org/springframework/data/web/JsonPath.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * Annotation to explicitly declare a JSON Path expression on a projection interface. - * + * * @author Oliver Gierke * @soundtrack Andy McKee - RyLynn (Live book) * @since 1.13 @@ -36,7 +36,7 @@ public @interface JsonPath { /** * The JSON Path expressions to be evaluated when the annotated method is invoked. If multiple ones are defined, the * value of the first one actually present in the payload will be returned. - * + * * @return */ String[] value(); diff --git a/src/main/java/org/springframework/data/web/JsonProjectingMethodInterceptorFactory.java b/src/main/java/org/springframework/data/web/JsonProjectingMethodInterceptorFactory.java index 1fd64ead6..5e9987635 100644 --- a/src/main/java/org/springframework/data/web/JsonProjectingMethodInterceptorFactory.java +++ b/src/main/java/org/springframework/data/web/JsonProjectingMethodInterceptorFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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,7 +62,7 @@ public class JsonProjectingMethodInterceptorFactory implements MethodInterceptor /** * Creates a new {@link JsonProjectingMethodInterceptorFactory} using the given {@link ObjectMapper}. - * + * * @param mapper must not be {@literal null}. */ public JsonProjectingMethodInterceptorFactory(MappingProvider mappingProvider) { @@ -77,7 +77,7 @@ public class JsonProjectingMethodInterceptorFactory implements MethodInterceptor this.context = JsonPath.using(build); } - /* + /* * (non-Javadoc) * @see org.springframework.data.projection.MethodInterceptorFactory#createMethodInterceptor(java.lang.Object, java.lang.Class) */ @@ -90,7 +90,7 @@ public class JsonProjectingMethodInterceptorFactory implements MethodInterceptor return new InputMessageProjecting(context); } - /* + /* * (non-Javadoc) * @see org.springframework.data.projection.MethodInterceptorFactory#supports(java.lang.Object, java.lang.Class) */ @@ -107,7 +107,7 @@ public class JsonProjectingMethodInterceptorFactory implements MethodInterceptor /** * Returns whether the given type contains a method with a {@link org.springframework.data.web.JsonPath} annotation. - * + * * @param type must not be {@literal null}. * @return */ @@ -127,7 +127,7 @@ public class JsonProjectingMethodInterceptorFactory implements MethodInterceptor private final DocumentContext context; - /* + /* * (non-Javadoc) * @see org.aopalliance.intercept.MethodInterceptor#invoke(org.aopalliance.intercept.MethodInvocation) */ @@ -175,7 +175,7 @@ public class JsonProjectingMethodInterceptorFactory implements MethodInterceptor /** * Returns the JSONPath expression to be used for the given method. - * + * * @param method * @return */ @@ -196,7 +196,7 @@ public class JsonProjectingMethodInterceptorFactory implements MethodInterceptor private final ResolvableType type; - /* + /* * (non-Javadoc) * @see com.jayway.jsonpath.TypeRef#getType() */ diff --git a/src/main/java/org/springframework/data/web/MapDataBinder.java b/src/main/java/org/springframework/data/web/MapDataBinder.java index edaa37863..ad479f29a 100644 --- a/src/main/java/org/springframework/data/web/MapDataBinder.java +++ b/src/main/java/org/springframework/data/web/MapDataBinder.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2015-2018 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. @@ -64,7 +64,7 @@ class MapDataBinder extends WebDataBinder { /** * Creates a new {@link MapDataBinder} for the given type and {@link ConversionService}. - * + * * @param type target type to detect property that need to be bound. * @param conversionService the {@link ConversionService} to be used to preprocess values. */ @@ -76,7 +76,7 @@ class MapDataBinder extends WebDataBinder { this.conversionService = conversionService; } - /* + /* * (non-Javadoc) * @see org.springframework.validation.DataBinder#getTarget() */ @@ -94,7 +94,7 @@ class MapDataBinder extends WebDataBinder { return (Map) target; } - /* + /* * (non-Javadoc) * @see org.springframework.validation.DataBinder#getPropertyAccessor() */ @@ -120,7 +120,7 @@ class MapDataBinder extends WebDataBinder { private final @NonNull Map map; private final @NonNull ConversionService conversionService; - /* + /* * (non-Javadoc) * @see org.springframework.beans.PropertyAccessor#isReadableProperty(java.lang.String) */ @@ -129,7 +129,7 @@ class MapDataBinder extends WebDataBinder { throw new UnsupportedOperationException(); } - /* + /* * (non-Javadoc) * @see org.springframework.beans.PropertyAccessor#isWritableProperty(java.lang.String) */ @@ -143,7 +143,7 @@ class MapDataBinder extends WebDataBinder { } } - /* + /* * (non-Javadoc) * @see org.springframework.beans.PropertyAccessor#getPropertyTypeDescriptor(java.lang.String) */ @@ -153,7 +153,7 @@ class MapDataBinder extends WebDataBinder { throw new UnsupportedOperationException(); } - /* + /* * (non-Javadoc) * @see org.springframework.beans.AbstractPropertyAccessor#getPropertyValue(java.lang.String) */ @@ -163,7 +163,7 @@ class MapDataBinder extends WebDataBinder { throw new UnsupportedOperationException(); } - /* + /* * (non-Javadoc) * @see org.springframework.beans.AbstractPropertyAccessor#setPropertyValue(java.lang.String, java.lang.Object) */ @@ -229,7 +229,7 @@ class MapDataBinder extends WebDataBinder { /** * A special {@link MapAccessor} that traverses properties on the configured type to automatically create nested Map * and collection values as necessary. - * + * * @author Oliver Gierke * @since 1.10 */ @@ -240,7 +240,7 @@ class MapDataBinder extends WebDataBinder { /** * Creates a new {@link PropertyTraversingMapAccessor} for the given type and {@link ConversionService}. - * + * * @param type must not be {@literal null}. * @param conversionService must not be {@literal null}. */ @@ -262,7 +262,7 @@ class MapDataBinder extends WebDataBinder { return true; } - /* + /* * (non-Javadoc) * @see org.springframework.context.expression.MapAccessor#read(org.springframework.expression.EvaluationContext, java.lang.Object, java.lang.String) */ @@ -293,7 +293,7 @@ class MapDataBinder extends WebDataBinder { /** * Returns the type descriptor for the given {@link PropertyPath} and empty value for that path. - * + * * @param path must not be {@literal null}. * @param emptyValue must not be {@literal null}. * @return diff --git a/src/main/java/org/springframework/data/web/MethodParameterAwarePagedResourcesAssembler.java b/src/main/java/org/springframework/data/web/MethodParameterAwarePagedResourcesAssembler.java index 024ee7fa9..56fe4a30e 100644 --- a/src/main/java/org/springframework/data/web/MethodParameterAwarePagedResourcesAssembler.java +++ b/src/main/java/org/springframework/data/web/MethodParameterAwarePagedResourcesAssembler.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 the original author or authors. + * Copyright 2014-2018 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. @@ -24,7 +24,7 @@ import org.springframework.web.util.UriComponents; /** * Custom {@link PagedResourcesAssembler} that is aware of the {@link MethodParameter} it shall create links for. - * + * * @author Oliver Gierke * @since 1.7 */ @@ -35,7 +35,7 @@ class MethodParameterAwarePagedResourcesAssembler extends PagedResourcesAssem /** * Creates a new {@link MethodParameterAwarePagedResourcesAssembler} using the given {@link MethodParameter}, * {@link HateoasPageableHandlerMethodArgumentResolver} and base URI. - * + * * @param parameter must not be {@literal null}. * @param resolver can be {@literal null}. * @param baseUri can be {@literal null}. @@ -49,7 +49,7 @@ class MethodParameterAwarePagedResourcesAssembler extends PagedResourcesAssem this.parameter = parameter; } - /* + /* * (non-Javadoc) * @see org.springframework.data.web.PagedResourcesAssembler#getMethodParameter() */ diff --git a/src/main/java/org/springframework/data/web/PageableArgumentResolver.java b/src/main/java/org/springframework/data/web/PageableArgumentResolver.java index 4e448971c..4ac22ac3a 100644 --- a/src/main/java/org/springframework/data/web/PageableArgumentResolver.java +++ b/src/main/java/org/springframework/data/web/PageableArgumentResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/main/java/org/springframework/data/web/PageableDefault.java b/src/main/java/org/springframework/data/web/PageableDefault.java index 288d63289..7ae0dfa17 100644 --- a/src/main/java/org/springframework/data/web/PageableDefault.java +++ b/src/main/java/org/springframework/data/web/PageableDefault.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 the original author or authors. + * Copyright 2013-2018 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. @@ -28,7 +28,7 @@ import org.springframework.data.web.SortDefault.SortDefaults; * Annotation to set defaults when injecting a {@link org.springframework.data.domain.Pageable} into a controller * method. Instead of configuring {@link #sort()} and {@link #direction()} you can also use {@link SortDefault} or * {@link SortDefaults}. - * + * * @since 1.6 * @author Oliver Gierke */ @@ -40,7 +40,7 @@ public @interface PageableDefault { /** * Alias for {@link #size()}. Prefer to use the {@link #size()} method as it makes the annotation declaration more * expressive and you'll probably want to configure the {@link #page()} anyway. - * + * * @return */ int value() default 10; @@ -59,14 +59,14 @@ public @interface PageableDefault { /** * The properties to sort by by default. If unset, no sorting will be applied at all. - * + * * @return */ String[] sort() default {}; /** * The direction to sort by. Defaults to {@link Direction#ASC}. - * + * * @return */ Direction direction() default Direction.ASC; diff --git a/src/main/java/org/springframework/data/web/PageableHandlerMethodArgumentResolver.java b/src/main/java/org/springframework/data/web/PageableHandlerMethodArgumentResolver.java index 0627e9bf9..fa708600a 100644 --- a/src/main/java/org/springframework/data/web/PageableHandlerMethodArgumentResolver.java +++ b/src/main/java/org/springframework/data/web/PageableHandlerMethodArgumentResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -36,7 +36,7 @@ import org.springframework.web.method.support.ModelAndViewContainer; * Extracts paging information from web requests and thus allows injecting {@link Pageable} instances into controller * methods. Request properties to be parsed can be configured. Default configuration uses request parameters beginning * with {@link #DEFAULT_PAGE_PARAMETER}{@link #DEFAULT_QUALIFIER_DELIMITER}. - * + * * @since 1.6 * @author Oliver Gierke * @author Nick Williams @@ -73,7 +73,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe /** * Constructs an instance of this resolver with the specified {@link SortHandlerMethodArgumentResolver}. - * + * * @param sortResolver the sort resolver to use */ public PageableHandlerMethodArgumentResolver(SortHandlerMethodArgumentResolver sortResolver) { @@ -99,7 +99,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe * handed into them in case no {@link Pageable} data can be found in the request. Note, that doing so will require you * supply bot the page and the size parameter with the requests as there will be no default for any of the * parameters available. - * + * * @param fallbackPageable the {@link Pageable} to be used as general fallback. */ public void setFallbackPageable(Pageable fallbackPageable) { @@ -111,7 +111,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe /** * Returns whether the given {@link Pageable} is the fallback one. - * + * * @param pageable can be {@literal null}. * @since 1.9 * @return @@ -123,7 +123,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe /** * Configures the maximum page size to be accepted. This allows to put an upper boundary of the page size to prevent * potential attacks trying to issue an {@link OutOfMemoryError}. Defaults to {@link #DEFAULT_MAX_PAGE_SIZE}. - * + * * @param maxPageSize the maxPageSize to set */ public void setMaxPageSize(int maxPageSize) { @@ -133,7 +133,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe /** * Retrieves the maximum page size to be accepted. This allows to put an upper boundary of the page size to prevent * potential attacks trying to issue an {@link OutOfMemoryError}. Defaults to {@link #DEFAULT_MAX_PAGE_SIZE}. - * + * * @return the maximum page size allowed. */ protected int getMaxPageSize() { @@ -142,7 +142,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe /** * Configures the parameter name to be used to find the page number in the request. Defaults to {@code page}. - * + * * @param pageParameterName the parameter name to be used, must not be {@literal null} or empty. */ public void setPageParameterName(String pageParameterName) { @@ -153,7 +153,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe /** * Retrieves the parameter name to be used to find the page number in the request. Defaults to {@code page}. - * + * * @return the parameter name to be used, never {@literal null} or empty. */ protected String getPageParameterName() { @@ -162,7 +162,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe /** * Configures the parameter name to be used to find the page size in the request. Defaults to {@code size}. - * + * * @param sizeParameterName the parameter name to be used, must not be {@literal null} or empty. */ public void setSizeParameterName(String sizeParameterName) { @@ -173,7 +173,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe /** * Retrieves the parameter name to be used to find the page size in the request. Defaults to {@code size}. - * + * * @return the parameter name to be used, never {@literal null} or empty. */ protected String getSizeParameterName() { @@ -183,7 +183,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe /** * Configures a general prefix to be prepended to the page number and page size parameters. Useful to namespace the * property names used in case they are clashing with ones used by your application. By default, no prefix is used. - * + * * @param prefix the prefix to be used or {@literal null} to reset to the default. */ public void setPrefix(String prefix) { @@ -193,7 +193,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe /** * The delimiter to be used between the qualifier and the actual page number and size properties. Defaults to * {@code _}. So a qualifier of {@code foo} will result in a page number parameter of {@code foo_page}. - * + * * @param qualifierDelimiter the delimiter to be used or {@literal null} to reset to the default. */ public void setQualifierDelimiter(String qualifierDelimiter) { @@ -204,7 +204,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe * Configures whether to expose and assume 1-based page number indexes in the request parameters. Defaults to * {@literal false}, meaning a page number of 0 in the request equals the first page. If this is set to * {@literal true}, a page number of 1 in the request will be considered the first page. - * + * * @param oneIndexedParameters the oneIndexedParameters to set */ public void setOneIndexedParameters(boolean oneIndexedParameters) { @@ -215,14 +215,14 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe * Indicates whether to expose and assume 1-based page number indexes in the request parameters. Defaults to * {@literal false}, meaning a page number of 0 in the request equals the first page. If this is set to * {@literal true}, a page number of 1 in the request will be considered the first page. - * + * * @return whether to assume 1-based page number indexes in the request parameters. */ protected boolean isOneIndexedParameters() { return this.oneIndexedParameters; } - /* + /* * (non-Javadoc) * @see org.springframework.web.method.support.HandlerMethodArgumentResolver#supportsParameter(org.springframework.core.MethodParameter) */ @@ -272,7 +272,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe /** * Returns the name of the request parameter to find the {@link Pageable} information in. Inspects the given * {@link MethodParameter} for {@link Qualifier} present and prefixes the given source parameter name with it. - * + * * @param source the basic parameter name. * @param parameter the {@link MethodParameter} potentially qualified. * @return the name of the request parameter. @@ -322,7 +322,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe /** * Tries to parse the given {@link String} into an integer and applies the given boundaries. Will return 0 if the * {@link String} cannot be parsed. - * + * * @param parameter the parameter value. * @param upper the upper bound to be applied. * @param shiftIndex whether to shift the index if {@link #oneIndexedParameters} is set to true. diff --git a/src/main/java/org/springframework/data/web/PagedResourcesAssembler.java b/src/main/java/org/springframework/data/web/PagedResourcesAssembler.java index 0b00f5309..75e52f152 100644 --- a/src/main/java/org/springframework/data/web/PagedResourcesAssembler.java +++ b/src/main/java/org/springframework/data/web/PagedResourcesAssembler.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -43,7 +43,7 @@ import org.springframework.web.util.UriComponentsBuilder; /** * {@link ResourceAssembler} to easily convert {@link Page} instances into {@link PagedResources}. - * + * * @since 1.6 * @author Oliver Gierke * @author Nick Williams @@ -61,7 +61,7 @@ public class PagedResourcesAssembler implements ResourceAssembler, Pa * Creates a new {@link PagedResourcesAssembler} using the given {@link PageableHandlerMethodArgumentResolver} and * base URI. If the former is {@literal null}, a default one will be created. If the latter is {@literal null}, calls * to {@link #toResource(Page)} will use the current request's URI to build the relevant previous and next links. - * + * * @param resolver can be {@literal null}. * @param baseUri can be {@literal null}. */ @@ -76,7 +76,7 @@ public class PagedResourcesAssembler implements ResourceAssembler, Pa * Configures whether to always add {@code first} and {@code last} links to the {@link PagedResources} created. * Defaults to {@literal false} which means that {@code first} and {@code last} links only appear in conjunction with * {@code prev} and {@code next} links. - * + * * @param forceFirstAndLastRels whether to always add {@code first} and {@code last} links to the * {@link PagedResources} created. * @since 1.11 @@ -85,7 +85,7 @@ public class PagedResourcesAssembler implements ResourceAssembler, Pa this.forceFirstAndLastRels = forceFirstAndLastRels; } - /* + /* * (non-Javadoc) * @see org.springframework.hateoas.ResourceAssembler#toResource(java.lang.Object) */ @@ -99,7 +99,7 @@ public class PagedResourcesAssembler implements ResourceAssembler, Pa * Creates a new {@link PagedResources} by converting the given {@link Page} into a {@link PageMetadata} instance and * wrapping the contained elements into {@link Resource} instances. Will add pagination links based on the given the * self link. - * + * * @param page must not be {@literal null}. * @param selfLink must not be {@literal null}. * @return @@ -111,7 +111,7 @@ public class PagedResourcesAssembler implements ResourceAssembler, Pa /** * Creates a new {@link PagedResources} by converting the given {@link Page} into a {@link PageMetadata} instance and * using the given {@link ResourceAssembler} to turn elements of the {@link Page} into resources. - * + * * @param page must not be {@literal null}. * @param assembler must not be {@literal null}. * @return @@ -124,7 +124,7 @@ public class PagedResourcesAssembler implements ResourceAssembler, Pa * Creates a new {@link PagedResources} by converting the given {@link Page} into a {@link PageMetadata} instance and * using the given {@link ResourceAssembler} to turn elements of the {@link Page} into resources. Will add pagination * links based on the given the self link. - * + * * @param page must not be {@literal null}. * @param assembler must not be {@literal null}. * @param link must not be {@literal null}. @@ -140,7 +140,7 @@ public class PagedResourcesAssembler implements ResourceAssembler, Pa /** * Creates a {@link PagedResources} with an empt collection {@link EmbeddedWrapper} for the given domain type. - * + * * @param page must not be {@literal null}, content must be empty. * @param type must not be {@literal null}. * @return @@ -152,7 +152,7 @@ public class PagedResourcesAssembler implements ResourceAssembler, Pa /** * Creates a {@link PagedResources} with an empt collection {@link EmbeddedWrapper} for the given domain type. - * + * * @param page must not be {@literal null}, content must be empty. * @param type must not be {@literal null}. * @param link must not be {@literal null}. @@ -180,7 +180,7 @@ public class PagedResourcesAssembler implements ResourceAssembler, Pa /** * Creates the {@link PagedResources} to be equipped with pagination links downstream. - * + * * @param resources the original page's elements mapped into {@link ResourceSupport} instances. * @param metadata the calculated {@link PageMetadata}, must not be {@literal null}. * @param page the original page handed to the assembler, must not be {@literal null}. @@ -249,7 +249,7 @@ public class PagedResourcesAssembler implements ResourceAssembler, Pa /** * Returns a default URI string either from the one configured on assembler creatino or by looking it up from the * current request. - * + * * @return */ private UriTemplate getUriTemplate(Optional baseLink) { @@ -259,7 +259,7 @@ public class PagedResourcesAssembler implements ResourceAssembler, Pa /** * Creates a {@link Link} with the given rel that will be based on the given {@link UriTemplate} but enriched with the * values of the given {@link Pageable} (if not {@literal null}). - * + * * @param base must not be {@literal null}. * @param pageable can be {@literal null} * @param rel must not be {@literal null} or empty. @@ -276,7 +276,7 @@ public class PagedResourcesAssembler implements ResourceAssembler, Pa /** * Return the {@link MethodParameter} to be used to potentially qualify the paging and sorting request parameters to. * Default implementations returns {@literal null}, which means the parameters will not be qualified. - * + * * @return * @since 1.7 */ @@ -287,7 +287,7 @@ public class PagedResourcesAssembler implements ResourceAssembler, Pa /** * Creates a new {@link PageMetadata} instance from the given {@link Page}. - * + * * @param page must not be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/web/PagedResourcesAssemblerArgumentResolver.java b/src/main/java/org/springframework/data/web/PagedResourcesAssemblerArgumentResolver.java index 1ac8ad507..5d76b90fa 100644 --- a/src/main/java/org/springframework/data/web/PagedResourcesAssemblerArgumentResolver.java +++ b/src/main/java/org/springframework/data/web/PagedResourcesAssemblerArgumentResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -39,7 +39,7 @@ import org.springframework.web.util.UriComponentsBuilder; /** * {@link HandlerMethodArgumentResolver} to allow injection of {@link PagedResourcesAssembler} into Spring MVC * controller methods. - * + * * @since 1.6 * @author Oliver Gierke * @author Nick Williams @@ -58,7 +58,7 @@ public class PagedResourcesAssemblerArgumentResolver implements HandlerMethodArg /** * Creates a new {@link PagedResourcesAssemblerArgumentResolver} using the given * {@link PageableHandlerMethodArgumentResolver} and {@link MethodLinkBuilderFactory}. - * + * * @param resolver can be {@literal null}. * @param linkBuilderFactory can be {@literal null}, will be defaulted to a {@link ControllerLinkBuilderFactory}. */ @@ -69,7 +69,7 @@ public class PagedResourcesAssemblerArgumentResolver implements HandlerMethodArg this.linkBuilderFactory = linkBuilderFactory == null ? new ControllerLinkBuilderFactory() : linkBuilderFactory; } - /* + /* * (non-Javadoc) * @see org.springframework.web.method.support.HandlerMethodArgumentResolver#supportsParameter(org.springframework.core.MethodParameter) */ @@ -78,7 +78,7 @@ public class PagedResourcesAssemblerArgumentResolver implements HandlerMethodArg return PagedResourcesAssembler.class.equals(parameter.getParameterType()); } - /* + /* * (non-Javadoc) * @see org.springframework.web.method.support.HandlerMethodArgumentResolver#resolveArgument(org.springframework.core.MethodParameter, org.springframework.web.method.support.ModelAndViewContainer, org.springframework.web.context.request.NativeWebRequest, org.springframework.web.bind.support.WebDataBinderFactory) */ @@ -99,7 +99,7 @@ public class PagedResourcesAssemblerArgumentResolver implements HandlerMethodArg /** * Eagerly resolve a base URI for the given {@link MethodParameter} to be handed to the assembler. - * + * * @param parameter must not be {@literal null}. * @return the {@link UriComponents} representing the base URI, or {@literal null} if it can't be resolved eagerly. */ @@ -117,7 +117,7 @@ public class PagedResourcesAssemblerArgumentResolver implements HandlerMethodArg /** * Returns finds the {@link MethodParameter} for a {@link Pageable} instance matching the given * {@link MethodParameter} requesting a {@link PagedResourcesAssembler}. - * + * * @param parameter must not be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/web/ProjectedPayload.java b/src/main/java/org/springframework/data/web/ProjectedPayload.java index 7400c640a..4b5127d82 100644 --- a/src/main/java/org/springframework/data/web/ProjectedPayload.java +++ b/src/main/java/org/springframework/data/web/ProjectedPayload.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 the original author or authors. + * Copyright 2016-2018 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. @@ -25,7 +25,7 @@ import java.lang.annotation.Target; /** * Annotation to mark projection interfaces that are supposed to be used as projection interface to bind request or * response payloads to. - * + * * @author Oliver Gierke * @soundtrack * @since 1.13 diff --git a/src/main/java/org/springframework/data/web/ProjectingJackson2HttpMessageConverter.java b/src/main/java/org/springframework/data/web/ProjectingJackson2HttpMessageConverter.java index c75df529c..c75083817 100644 --- a/src/main/java/org/springframework/data/web/ProjectingJackson2HttpMessageConverter.java +++ b/src/main/java/org/springframework/data/web/ProjectingJackson2HttpMessageConverter.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -41,7 +41,7 @@ import com.jayway.jsonpath.spi.mapper.JacksonMappingProvider; /** * {@link HttpMessageConverter} implementation to enable projected JSON binding to interfaces annotated with * {@link ProjectedPayload}. - * + * * @author Oliver Gierke * @author Christoph Strobl * @soundtrack Richard Spaven - Ice Is Nice (Spaven's 5ive) @@ -62,7 +62,7 @@ public class ProjectingJackson2HttpMessageConverter extends MappingJackson2HttpM /** * Creates a new {@link ProjectingJackson2HttpMessageConverter} for the given {@link ObjectMapper}. - * + * * @param mapper must not be {@literal null}. */ public ProjectingJackson2HttpMessageConverter(ObjectMapper mapper) { @@ -75,7 +75,7 @@ public class ProjectingJackson2HttpMessageConverter extends MappingJackson2HttpM /** * Creates a new {@link SpelAwareProxyProjectionFactory} with the {@link JsonProjectingMethodInterceptorFactory} * registered for the given {@link ObjectMapper}. - * + * * @param mapper must not be {@literal null}. * @return */ @@ -90,7 +90,7 @@ public class ProjectingJackson2HttpMessageConverter extends MappingJackson2HttpM return projectionFactory; } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.BeanClassLoaderAware#setBeanClassLoader(java.lang.ClassLoader) */ @@ -99,7 +99,7 @@ public class ProjectingJackson2HttpMessageConverter extends MappingJackson2HttpM projectionFactory.setBeanClassLoader(classLoader); } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.BeanFactoryAware#setBeanFactory(org.springframework.beans.factory.BeanFactory) */ @@ -108,7 +108,7 @@ public class ProjectingJackson2HttpMessageConverter extends MappingJackson2HttpM projectionFactory.setBeanFactory(beanFactory); } - /* + /* * (non-Javadoc) * @see org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter#canRead(java.lang.reflect.Type, java.lang.Class, org.springframework.http.MediaType) */ @@ -133,7 +133,7 @@ public class ProjectingJackson2HttpMessageConverter extends MappingJackson2HttpM return result; } - /* + /* * (non-Javadoc) * @see org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter#canWrite(java.lang.Class, org.springframework.http.MediaType) */ @@ -142,7 +142,7 @@ public class ProjectingJackson2HttpMessageConverter extends MappingJackson2HttpM return false; } - /* + /* * (non-Javadoc) * @see org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter#read(java.lang.reflect.Type, java.lang.Class, org.springframework.http.HttpInputMessage) */ diff --git a/src/main/java/org/springframework/data/web/ProxyingHandlerMethodArgumentResolver.java b/src/main/java/org/springframework/data/web/ProxyingHandlerMethodArgumentResolver.java index 9ab8a76f6..e24f55686 100644 --- a/src/main/java/org/springframework/data/web/ProxyingHandlerMethodArgumentResolver.java +++ b/src/main/java/org/springframework/data/web/ProxyingHandlerMethodArgumentResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2015-2018 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. @@ -38,7 +38,7 @@ import org.springframework.web.method.support.HandlerMethodArgumentResolver; /** * {@link HandlerMethodArgumentResolver} to create Proxy instances for interface based controller method parameters. - * + * * @author Oliver Gierke * @since 1.10 */ @@ -53,7 +53,7 @@ public class ProxyingHandlerMethodArgumentResolver extends ModelAttributeMethodP /** * Creates a new {@link PageableHandlerMethodArgumentResolver} using the given {@link ConversionService} and the * {@link ModelAttribute} annotation not required. - * + * * @param conversionService must not be {@literal null}. * @deprecated use {@link #ProxyingHandlerMethodArgumentResolver(ObjectFactory, boolean)} instead. */ @@ -64,7 +64,7 @@ public class ProxyingHandlerMethodArgumentResolver extends ModelAttributeMethodP /** * Creates a new {@link PageableHandlerMethodArgumentResolver} using the given {@link ConversionService}. - * + * * @param conversionService must not be {@literal null}. */ public ProxyingHandlerMethodArgumentResolver(ObjectFactory conversionService, @@ -76,7 +76,7 @@ public class ProxyingHandlerMethodArgumentResolver extends ModelAttributeMethodP this.conversionService = conversionService; } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.BeanFactoryAware#setBeanFactory(org.springframework.beans.factory.BeanFactory) */ @@ -85,7 +85,7 @@ public class ProxyingHandlerMethodArgumentResolver extends ModelAttributeMethodP this.proxyFactory.setBeanFactory(beanFactory); } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.BeanClassLoaderAware#setBeanClassLoader(java.lang.ClassLoader) */ @@ -94,7 +94,7 @@ public class ProxyingHandlerMethodArgumentResolver extends ModelAttributeMethodP this.proxyFactory.setBeanClassLoader(classLoader); } - /* + /* * (non-Javadoc) * @see org.springframework.web.method.support.HandlerMethodArgumentResolver#supportsParameter(org.springframework.core.MethodParameter) */ @@ -127,7 +127,7 @@ public class ProxyingHandlerMethodArgumentResolver extends ModelAttributeMethodP return !IGNORED_PACKAGES.stream().anyMatch(it -> packageName.startsWith(it)); } - /* + /* * (non-Javadoc) * @see org.springframework.web.method.annotation.ModelAttributeMethodProcessor#createAttribute(java.lang.String, org.springframework.core.MethodParameter, org.springframework.web.bind.support.WebDataBinderFactory, org.springframework.web.context.request.NativeWebRequest) */ @@ -141,7 +141,7 @@ public class ProxyingHandlerMethodArgumentResolver extends ModelAttributeMethodP return proxyFactory.createProjection(parameter.getParameterType(), binder.getTarget()); } - /* + /* * (non-Javadoc) * @see org.springframework.web.method.annotation.ModelAttributeMethodProcessor#bindRequestParameters(org.springframework.web.bind.WebDataBinder, org.springframework.web.context.request.NativeWebRequest) */ diff --git a/src/main/java/org/springframework/data/web/SortArgumentResolver.java b/src/main/java/org/springframework/data/web/SortArgumentResolver.java index 98a55df2c..c68df6fbc 100644 --- a/src/main/java/org/springframework/data/web/SortArgumentResolver.java +++ b/src/main/java/org/springframework/data/web/SortArgumentResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 the original author or authors. + * Copyright 2016-2018 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. @@ -40,7 +40,7 @@ public interface SortArgumentResolver extends HandlerMethodArgumentResolver { /** * Resolves a {@link Sort} method parameter into an argument value from a given request. - * + * * @param parameter the method parameter to resolve. This parameter must have previously been passed to * {@link #supportsParameter} which must have returned {@code true}. * @param mavContainer the ModelAndViewContainer for the current request diff --git a/src/main/java/org/springframework/data/web/SortDefault.java b/src/main/java/org/springframework/data/web/SortDefault.java index 8ceeb6bc3..5329890e5 100644 --- a/src/main/java/org/springframework/data/web/SortDefault.java +++ b/src/main/java/org/springframework/data/web/SortDefault.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 the original author or authors. + * Copyright 2013-2018 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. @@ -27,7 +27,7 @@ import org.springframework.data.domain.Sort.Direction; /** * Annotation to define the default {@link Sort} options to be used when injecting a {@link Sort} instance into a * controller handler method. - * + * * @since 1.6 * @author Oliver Gierke */ @@ -38,28 +38,28 @@ public @interface SortDefault { /** * Alias for {@link #sort()} to make a declaration configuring fields only more concise. - * + * * @return */ String[] value() default {}; /** * The properties to sort by by default. If unset, no sorting will be applied at all. - * + * * @return */ String[] sort() default {}; /** * The direction to sort by. Defaults to {@link Direction#ASC}. - * + * * @return */ Direction direction() default Direction.ASC; /** * Wrapper annotation to allow declaring multiple {@link SortDefault} annotations on a method parameter. - * + * * @since 1.6 * @author Oliver Gierke */ @@ -70,7 +70,7 @@ public @interface SortDefault { /** * The individual {@link SortDefault} declarations to be sorted by. - * + * * @return */ SortDefault[] value(); diff --git a/src/main/java/org/springframework/data/web/SortHandlerMethodArgumentResolver.java b/src/main/java/org/springframework/data/web/SortHandlerMethodArgumentResolver.java index 728159c89..4a095f326 100644 --- a/src/main/java/org/springframework/data/web/SortHandlerMethodArgumentResolver.java +++ b/src/main/java/org/springframework/data/web/SortHandlerMethodArgumentResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -38,7 +38,7 @@ import org.springframework.web.method.support.ModelAndViewContainer; /** * {@link HandlerMethodArgumentResolver} to automatically create {@link Sort} instances from request parameters or * {@link SortDefault} annotations. - * + * * @since 1.6 * @author Oliver Gierke * @author Thomas Darimont @@ -63,7 +63,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver { /** * Configure the request parameter to lookup sort information from. Defaults to {@code sort}. - * + * * @param sortParameter must not be {@literal null} or empty. */ public void setSortParameter(String sortParameter) { @@ -75,7 +75,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver { /** * Configures the delimiter used to separate property references and the direction to be sorted by. Defaults to * {@code}, which means sort values look like this: {@code firstname,lastname,asc}. - * + * * @param propertyDelimiter must not be {@literal null} or empty. */ public void setPropertyDelimiter(String propertyDelimiter) { @@ -87,14 +87,14 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver { /** * Configures the delimiter used to separate the qualifier from the sort parameter. Defaults to {@code _}, so a * qualified sort property would look like {@code qualifier_sort}. - * + * * @param qualifierDelimiter the qualifier delimiter to be used or {@literal null} to reset to the default. */ public void setQualifierDelimiter(String qualifierDelimiter) { this.qualifierDelimiter = qualifierDelimiter == null ? DEFAULT_QUALIFIER_DELIMITER : qualifierDelimiter; } - /* + /* * (non-Javadoc) * @see org.springframework.web.method.support.HandlerMethodArgumentResolver#supportsParameter(org.springframework.core.MethodParameter) */ @@ -130,7 +130,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver { * Reads the default {@link Sort} to be used from the given {@link MethodParameter}. Rejects the parameter if both an * {@link SortDefaults} and {@link SortDefault} annotation is found as we cannot build a reliable {@link Sort} * instance then (property ordering). - * + * * @param parameter will never be {@literal null}. * @return the default {@link Sort} instance derived from the parameter annotations or the configured fallback-sort * {@link #setFallbackSort(Sort)}. @@ -167,7 +167,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver { /** * Creates a new {@link Sort} instance from the given {@link SortDefault} or appends it to the given {@link Sort} * instance if it's not {@literal null}. - * + * * @param sortDefault * @param sortOrNull * @return @@ -185,7 +185,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver { /** * Returns the sort parameter to be looked up from the request. Potentially applies qualifiers to it. - * + * * @param parameter can be {@literal null}. * @return */ @@ -206,7 +206,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver { * Parses the given sort expressions into a {@link Sort} instance. The implementation expects the sources to be a * concatenation of Strings using the given delimiter. If the last element can be parsed into a {@link Direction} it's * considered a {@link Direction} and a simple property otherwise. - * + * * @param source will never be {@literal null}. * @param delimiter the delimiter to be used to split up the source elements, will never be {@literal null}. * @return @@ -248,7 +248,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver { /** * Folds the given {@link Sort} instance into a {@link List} of sort expressions, accumulating {@link Order} instances * of the same direction into a single expression if they are in order. - * + * * @param sort must not be {@literal null}. * @return */ @@ -277,7 +277,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver { /** * Folds the given {@link Sort} instance into two expressions. The first being the property list, the second being the * direction. - * + * * @throws IllegalArgumentException if a {@link Sort} with multiple {@link Direction}s has been handed in. * @param sort must not be {@literal null}. * @return @@ -306,7 +306,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver { /** * Helper to easily build request parameter expressions for {@link Sort} instances. - * + * * @author Oliver Gierke */ class ExpressionBuilder { @@ -316,7 +316,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver { /** * Sets up a new {@link ExpressionBuilder} for properties to be sorted in the given {@link Direction}. - * + * * @param direction must not be {@literal null}. */ public ExpressionBuilder(Direction direction) { @@ -327,7 +327,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver { /** * Returns whether the given {@link Order} has the same direction as the current {@link ExpressionBuilder}. - * + * * @param order must not be {@literal null}. * @return */ @@ -337,7 +337,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver { /** * Adds the given property to the expression to be built. - * + * * @param property */ public void add(String property) { @@ -347,7 +347,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver { /** * Dumps the expression currently in build into the given {@link List} of {@link String}s. Will only dump it in case * there are properties piled up currently. - * + * * @param expressions * @return */ @@ -370,7 +370,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver { *

    * If you set this to {@literal null}, be aware that you controller methods will get {@literal null} handed into them * in case no {@link Sort} data can be found in the request. - * + * * @param fallbackSort the {@link Sort} to be used as general fallback. */ public void setFallbackSort(Sort fallbackSort) { diff --git a/src/main/java/org/springframework/data/web/SpringDataAnnotationUtils.java b/src/main/java/org/springframework/data/web/SpringDataAnnotationUtils.java index 520d7265e..f06542b42 100644 --- a/src/main/java/org/springframework/data/web/SpringDataAnnotationUtils.java +++ b/src/main/java/org/springframework/data/web/SpringDataAnnotationUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 the original author or authors. + * Copyright 2013-2018 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. @@ -30,7 +30,7 @@ import org.springframework.util.ObjectUtils; /** * Helper class to ease sharing code between legacy {@link PageableArgumentResolver} and * {@link PageableHandlerMethodArgumentResolver}. - * + * * @author Oliver Gierke */ abstract class SpringDataAnnotationUtils { @@ -39,7 +39,7 @@ abstract class SpringDataAnnotationUtils { /** * Asserts uniqueness of all {@link Pageable} parameters of the method of the given {@link MethodParameter}. - * + * * @param parameter must not be {@literal null}. */ public static void assertPageableUniqueness(MethodParameter parameter) { @@ -58,7 +58,7 @@ abstract class SpringDataAnnotationUtils { /** * Returns whether the given {@link Method} has more than one {@link Pageable} parameter. - * + * * @param method must not be {@literal null}. * @return */ @@ -83,7 +83,7 @@ abstract class SpringDataAnnotationUtils { /** * Returns the value of the given specific property of the given annotation. If the value of that property is the * properties default, we fall back to the value of the {@code value} attribute. - * + * * @param annotation must not be {@literal null}. * @param property must not be {@literal null} or empty. * @return @@ -108,7 +108,7 @@ abstract class SpringDataAnnotationUtils { /** * Asserts that every {@link Pageable} parameter of the given parameters carries an {@link Qualifier} annotation to * distinguish them from each other. - * + * * @param parameterTypes must not be {@literal null}. * @param annotations must not be {@literal null}. */ @@ -139,7 +139,7 @@ abstract class SpringDataAnnotationUtils { /** * Returns a {@link Qualifier} annotation from the given array of {@link Annotation}s. Returns {@literal null} if the * array does not contain a {@link Qualifier} annotation. - * + * * @param annotations must not be {@literal null}. * @return */ diff --git a/src/main/java/org/springframework/data/web/XmlBeamHttpMessageConverter.java b/src/main/java/org/springframework/data/web/XmlBeamHttpMessageConverter.java index 9f6107d6c..eb300b43f 100644 --- a/src/main/java/org/springframework/data/web/XmlBeamHttpMessageConverter.java +++ b/src/main/java/org/springframework/data/web/XmlBeamHttpMessageConverter.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -34,7 +34,7 @@ import org.xmlbeam.XBProjector; /** * A read-only {@link HttpMessageConverter} to create XMLBeam-based projection instances for interfaces. - * + * * @author Oliver Gierke * @author Christoph Strobl * @see http://www.xmlbeam.org @@ -76,7 +76,7 @@ public class XmlBeamHttpMessageConverter extends AbstractHttpMessageConverter{@link org.springframework.data.web.SortHandlerMethodArgumentResolver} - for injection of * {@link org.springframework.data.web.PagedResourcesAssembler} into controller methods *

      - * + * * @since 1.6 * @see SpringDataWebConfiguration * @see HateoasAwareSpringDataWebConfiguration @@ -77,7 +77,7 @@ public @interface EnableSpringDataWebSupport { * classpath. We need to register the HATEOAS specific class first as apparently only the first class implementing * {@link org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport} gets callbacks invoked (see * https://jira.springsource.org/browse/SPR-10565). - * + * * @author Oliver Gierke * @author Jens Schauder */ @@ -85,7 +85,7 @@ public @interface EnableSpringDataWebSupport { private Optional resourceLoader = Optional.empty(); - /* + /* * (non-Javadoc) * @see org.springframework.context.ResourceLoaderAware#setResourceLoader(org.springframework.core.io.ResourceLoader) */ @@ -94,7 +94,7 @@ public @interface EnableSpringDataWebSupport { this.resourceLoader = Optional.of(resourceLoader).map(ResourceLoader::getClassLoader); } - /* + /* * (non-Javadoc) * @see org.springframework.context.annotation.ImportSelector#selectImports(org.springframework.core.type.AnnotationMetadata) */ @@ -129,7 +129,7 @@ public @interface EnableSpringDataWebSupport { */ static class QuerydslActivator implements ImportSelector { - /* + /* * (non-Javadoc) * @see org.springframework.context.annotation.ImportSelector#selectImports(org.springframework.core.type.AnnotationMetadata) */ diff --git a/src/main/java/org/springframework/data/web/config/HateoasAwareSpringDataWebConfiguration.java b/src/main/java/org/springframework/data/web/config/HateoasAwareSpringDataWebConfiguration.java index d9875dac7..f9cc07434 100644 --- a/src/main/java/org/springframework/data/web/config/HateoasAwareSpringDataWebConfiguration.java +++ b/src/main/java/org/springframework/data/web/config/HateoasAwareSpringDataWebConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -31,7 +31,7 @@ import org.springframework.web.method.support.HandlerMethodArgumentResolver; /** * JavaConfig class to register {@link PagedResourcesAssembler} and {@link PagedResourcesAssemblerArgumentResolver}. - * + * * @since 1.6 * @author Oliver Gierke * @author Nick Williams @@ -87,7 +87,7 @@ public class HateoasAwareSpringDataWebConfiguration extends SpringDataWebConfigu return new PagedResourcesAssemblerArgumentResolver(pageableResolver(), null); } - /* + /* * (non-Javadoc) * @see org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#addArgumentResolvers(java.util.List) */ diff --git a/src/main/java/org/springframework/data/web/config/PageableHandlerMethodArgumentResolverCustomizer.java b/src/main/java/org/springframework/data/web/config/PageableHandlerMethodArgumentResolverCustomizer.java index 89a74a718..d9e53e03e 100644 --- a/src/main/java/org/springframework/data/web/config/PageableHandlerMethodArgumentResolverCustomizer.java +++ b/src/main/java/org/springframework/data/web/config/PageableHandlerMethodArgumentResolverCustomizer.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/main/java/org/springframework/data/web/config/ProjectingArgumentResolverRegistrar.java b/src/main/java/org/springframework/data/web/config/ProjectingArgumentResolverRegistrar.java index 99e4b4b7b..4d4ad0088 100644 --- a/src/main/java/org/springframework/data/web/config/ProjectingArgumentResolverRegistrar.java +++ b/src/main/java/org/springframework/data/web/config/ProjectingArgumentResolverRegistrar.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. @@ -36,7 +36,7 @@ import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandl /** * Configuration class to register a {@link BeanPostProcessor} to augment {@link RequestMappingHandlerAdapter} with a * {@link ProxyingHandlerMethodArgumentResolver}. - * + * * @author Oliver Gierke * @soundtrack Apparat With Soap & Skin - Goodbye (Dark Theme Song - https://www.youtube.com/watch?v=66VnOdk6oto) */ @@ -47,7 +47,7 @@ public class ProjectingArgumentResolverRegistrar { * Registers a {@link BeanPostProcessor} to modify {@link RequestMappingHandlerAdapter} beans in the application * context to get a {@link ProxyingHandlerMethodArgumentResolver} configured as first * {@link HandlerMethodArgumentResolver}. - * + * * @param conversionService the Spring MVC {@link ConversionService} in a lazy fashion, so that its initialization is * not triggered yet. * @return @@ -73,7 +73,7 @@ public class ProjectingArgumentResolverRegistrar { /** * A {@link BeanPostProcessor} to modify {@link RequestMappingHandlerAdapter} beans in the application context to * get a {@link ProxyingHandlerMethodArgumentResolver} configured as first {@link HandlerMethodArgumentResolver}. - * + * * @param conversionService the Spring MVC {@link ConversionService} in a lazy fashion, so that its initialization * is not triggered yet. */ @@ -82,7 +82,7 @@ public class ProjectingArgumentResolverRegistrar { this.resolver = new ProxyingHandlerMethodArgumentResolver(conversionService, false); } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.BeanFactoryAware#setBeanFactory(org.springframework.beans.factory.BeanFactory) */ @@ -91,7 +91,7 @@ public class ProjectingArgumentResolverRegistrar { this.resolver.setBeanFactory(beanFactory); } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.BeanClassLoaderAware#setBeanClassLoader(java.lang.ClassLoader) */ @@ -100,7 +100,7 @@ public class ProjectingArgumentResolverRegistrar { this.resolver.setBeanClassLoader(classLoader); } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.config.BeanPostProcessor#postProcessBeforeInitialization(java.lang.Object, java.lang.String) */ @@ -110,7 +110,7 @@ public class ProjectingArgumentResolverRegistrar { return bean; } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.config.BeanPostProcessor#postProcessAfterInitialization(java.lang.Object, java.lang.String) */ diff --git a/src/main/java/org/springframework/data/web/config/QuerydslWebConfiguration.java b/src/main/java/org/springframework/data/web/config/QuerydslWebConfiguration.java index 8a8949308..92fa995b2 100644 --- a/src/main/java/org/springframework/data/web/config/QuerydslWebConfiguration.java +++ b/src/main/java/org/springframework/data/web/config/QuerydslWebConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2015-2018 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. @@ -36,7 +36,7 @@ import com.querydsl.core.types.Predicate; /** * Querydsl-specific web configuration for Spring Data. Registers a {@link HandlerMethodArgumentResolver} that builds up * {@link Predicate}s from web requests. - * + * * @author Oliver Gierke * @since 1.11 * @soundtrack Anika Nilles - Alter Ego @@ -49,7 +49,7 @@ public class QuerydslWebConfiguration implements WebMvcConfigurer { /** * Default {@link QuerydslPredicateArgumentResolver} to create Querydsl {@link Predicate} instances for Spring MVC * controller methods. - * + * * @return */ @Lazy @@ -64,7 +64,7 @@ public class QuerydslWebConfiguration implements WebMvcConfigurer { return new QuerydslBindingsFactory(SimpleEntityPathResolver.INSTANCE); } - /* + /* * (non-Javadoc) * @see org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter#addArgumentResolvers(java.util.List) */ diff --git a/src/main/java/org/springframework/data/web/config/SortHandlerMethodArgumentResolverCustomizer.java b/src/main/java/org/springframework/data/web/config/SortHandlerMethodArgumentResolverCustomizer.java index dedd11658..cb5e29ccd 100644 --- a/src/main/java/org/springframework/data/web/config/SortHandlerMethodArgumentResolverCustomizer.java +++ b/src/main/java/org/springframework/data/web/config/SortHandlerMethodArgumentResolverCustomizer.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/main/java/org/springframework/data/web/config/SpringDataJacksonConfiguration.java b/src/main/java/org/springframework/data/web/config/SpringDataJacksonConfiguration.java index 5d9d60334..7b6906211 100644 --- a/src/main/java/org/springframework/data/web/config/SpringDataJacksonConfiguration.java +++ b/src/main/java/org/springframework/data/web/config/SpringDataJacksonConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2016 the original author or authors. + * Copyright 2014-2018 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. @@ -20,7 +20,7 @@ import org.springframework.data.geo.GeoModule; /** * JavaConfig class to export Jackson specific configuration. - * + * * @author Oliver Gierke */ public class SpringDataJacksonConfiguration implements SpringDataJacksonModules { diff --git a/src/main/java/org/springframework/data/web/config/SpringDataJacksonModules.java b/src/main/java/org/springframework/data/web/config/SpringDataJacksonModules.java index ef030a84b..c388814e7 100644 --- a/src/main/java/org/springframework/data/web/config/SpringDataJacksonModules.java +++ b/src/main/java/org/springframework/data/web/config/SpringDataJacksonModules.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/main/java/org/springframework/data/web/config/SpringDataWebConfiguration.java b/src/main/java/org/springframework/data/web/config/SpringDataWebConfiguration.java index c7beccf48..603078871 100644 --- a/src/main/java/org/springframework/data/web/config/SpringDataWebConfiguration.java +++ b/src/main/java/org/springframework/data/web/config/SpringDataWebConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -76,7 +76,7 @@ public class SpringDataWebConfiguration implements WebMvcConfigurer, BeanClassLo this.conversionService = conversionService; } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.BeanClassLoaderAware#setBeanClassLoader(java.lang.ClassLoader) */ @@ -189,7 +189,7 @@ public class SpringDataWebConfiguration implements WebMvcConfigurer, BeanClassLo /** * Returns the uniquely available bean of the given type from the given {@link ApplicationContext} or the one provided * by the given {@link Supplier} in case the initial lookup fails. - * + * * @param type must not be {@literal null}. * @param context must not be {@literal null}. * @param fallback must not be {@literal null}. diff --git a/src/main/java/org/springframework/data/web/querydsl/QuerydslPredicateArgumentResolver.java b/src/main/java/org/springframework/data/web/querydsl/QuerydslPredicateArgumentResolver.java index 272f0397f..cc37af033 100644 --- a/src/main/java/org/springframework/data/web/querydsl/QuerydslPredicateArgumentResolver.java +++ b/src/main/java/org/springframework/data/web/querydsl/QuerydslPredicateArgumentResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -43,7 +43,7 @@ import com.querydsl.core.types.Predicate; /** * {@link HandlerMethodArgumentResolver} to allow injection of {@link com.mysema.query.types.Predicate} into Spring MVC * controller methods. - * + * * @author Christoph Strobl * @author Oliver Gierke * @since 1.11 @@ -55,7 +55,7 @@ public class QuerydslPredicateArgumentResolver implements HandlerMethodArgumentR /** * Creates a new {@link QuerydslPredicateArgumentResolver} using the given {@link ConversionService}. - * + * * @param factory * @param conversionService defaults to {@link DefaultConversionService} if {@literal null}. */ @@ -117,7 +117,7 @@ public class QuerydslPredicateArgumentResolver implements HandlerMethodArgumentR /** * Obtains the domain type information from the given method parameter. Will favor an explicitly registered on through * {@link QuerydslPredicate#root()} but use the actual type of the method's return type as fallback. - * + * * @param parameter must not be {@literal null}. * @return */ diff --git a/src/test/java/SampleInterface.java b/src/test/java/SampleInterface.java index f774b9ec6..147af21e7 100644 --- a/src/test/java/SampleInterface.java +++ b/src/test/java/SampleInterface.java @@ -1,7 +1,7 @@ import org.springframework.data.web.ProxyingHandlerMethodArgumentResolverUnitTests; /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/TypeInDefaultPackage.java b/src/test/java/TypeInDefaultPackage.java index 46e7d8c4a..7725b1b48 100644 --- a/src/test/java/TypeInDefaultPackage.java +++ b/src/test/java/TypeInDefaultPackage.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 the original author or authors. + * Copyright 2014-2018 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. @@ -17,7 +17,7 @@ import org.springframework.data.repository.config.EnableRepositories; /** * Dummy type to be able to reference the default package. - * + * * @author Oliver Gierke */ @EnableRepositories diff --git a/src/test/java/org/springframework/data/DependencyTests.java b/src/test/java/org/springframework/data/DependencyTests.java index 2f7a754cf..b7ad1d0bc 100644 --- a/src/test/java/org/springframework/data/DependencyTests.java +++ b/src/test/java/org/springframework/data/DependencyTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/annotation/TypeAliasUnitTests.java b/src/test/java/org/springframework/data/annotation/TypeAliasUnitTests.java index eeacc49be..981bc955a 100755 --- a/src/test/java/org/springframework/data/annotation/TypeAliasUnitTests.java +++ b/src/test/java/org/springframework/data/annotation/TypeAliasUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -24,7 +24,7 @@ import org.springframework.data.util.AnnotatedTypeScanner; /** * Unit tests for {@link TypeAlias}. - * + * * @author Oliver Gierke */ public class TypeAliasUnitTests { diff --git a/src/test/java/org/springframework/data/auditing/AnnotationAuditingMetadataUnitTests.java b/src/test/java/org/springframework/data/auditing/AnnotationAuditingMetadataUnitTests.java index 720b22b45..1e6c3c42b 100755 --- a/src/test/java/org/springframework/data/auditing/AnnotationAuditingMetadataUnitTests.java +++ b/src/test/java/org/springframework/data/auditing/AnnotationAuditingMetadataUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. @@ -27,7 +27,7 @@ import org.springframework.util.ReflectionUtils; /** * Unit test for {@link org.springframework.data.auditing.AnnotationAuditingMetadata}. - * + * * @author Ranie Jade Ramiso * @author Oliver Gierke * @since 1.5 diff --git a/src/test/java/org/springframework/data/auditing/AuditedUser.java b/src/test/java/org/springframework/data/auditing/AuditedUser.java index cef8cd880..8c1623269 100644 --- a/src/test/java/org/springframework/data/auditing/AuditedUser.java +++ b/src/test/java/org/springframework/data/auditing/AuditedUser.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. @@ -22,7 +22,7 @@ import org.springframework.data.domain.Auditable; /** * Sample implementation of {@link Auditable}. - * + * * @author Oliver Gierke * @since 1.5 */ diff --git a/src/test/java/org/springframework/data/auditing/AuditingHandlerUnitTests.java b/src/test/java/org/springframework/data/auditing/AuditingHandlerUnitTests.java index 8842bcb67..dac4dc5b5 100755 --- a/src/test/java/org/springframework/data/auditing/AuditingHandlerUnitTests.java +++ b/src/test/java/org/springframework/data/auditing/AuditingHandlerUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. @@ -28,7 +28,7 @@ import org.springframework.data.mapping.context.PersistentEntities; /** * Unit test for {@code AuditingHandler}. - * + * * @author Oliver Gierke * @since 1.5 */ diff --git a/src/test/java/org/springframework/data/auditing/DefaultAuditableBeanWrapperFactoryUnitTests.java b/src/test/java/org/springframework/data/auditing/DefaultAuditableBeanWrapperFactoryUnitTests.java index 7b0aff482..3879817b7 100755 --- a/src/test/java/org/springframework/data/auditing/DefaultAuditableBeanWrapperFactoryUnitTests.java +++ b/src/test/java/org/springframework/data/auditing/DefaultAuditableBeanWrapperFactoryUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -27,7 +27,7 @@ import org.springframework.data.auditing.DefaultAuditableBeanWrapperFactory.Refl /** * Unit tests for {@link DefaultAuditableBeanWrapperFactory}. - * + * * @author Oliver Gierke * @author Christoph Strobl * @since 1.5 diff --git a/src/test/java/org/springframework/data/auditing/EnableAuditing.java b/src/test/java/org/springframework/data/auditing/EnableAuditing.java index 64543e18a..69e2431e9 100644 --- a/src/test/java/org/springframework/data/auditing/EnableAuditing.java +++ b/src/test/java/org/springframework/data/auditing/EnableAuditing.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 the original author or authors. + * Copyright 2013-2018 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. @@ -22,7 +22,7 @@ import java.lang.annotation.Target; /** * Dummy Annotation to test auditing annotation configuration. - * + * * @author Thomas Darimont */ @Retention(RetentionPolicy.RUNTIME) diff --git a/src/test/java/org/springframework/data/auditing/IsNewAwareAuditingHandlerUnitTests.java b/src/test/java/org/springframework/data/auditing/IsNewAwareAuditingHandlerUnitTests.java index 4d17329ad..c9a8be1c4 100755 --- a/src/test/java/org/springframework/data/auditing/IsNewAwareAuditingHandlerUnitTests.java +++ b/src/test/java/org/springframework/data/auditing/IsNewAwareAuditingHandlerUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. @@ -31,7 +31,7 @@ import org.springframework.data.mapping.context.SampleMappingContext; /** * Unit test for {@code AuditingHandler}. - * + * * @author Oliver Gierke * @since 1.5 */ diff --git a/src/test/java/org/springframework/data/auditing/Jsr310ThreeTenBpAuditedUser.java b/src/test/java/org/springframework/data/auditing/Jsr310ThreeTenBpAuditedUser.java index 655fc519f..7cc14d29e 100644 --- a/src/test/java/org/springframework/data/auditing/Jsr310ThreeTenBpAuditedUser.java +++ b/src/test/java/org/springframework/data/auditing/Jsr310ThreeTenBpAuditedUser.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2015-2018 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. diff --git a/src/test/java/org/springframework/data/auditing/MappingAuditableBeanWrapperFactoryUnitTests.java b/src/test/java/org/springframework/data/auditing/MappingAuditableBeanWrapperFactoryUnitTests.java index 27ddb0394..c72ea24ec 100755 --- a/src/test/java/org/springframework/data/auditing/MappingAuditableBeanWrapperFactoryUnitTests.java +++ b/src/test/java/org/springframework/data/auditing/MappingAuditableBeanWrapperFactoryUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -43,7 +43,7 @@ import org.springframework.data.mapping.context.SampleMappingContext; /** * Unit tests for {@link MappingAuditableBeanWrapperFactory}. - * + * * @author Oliver Gierke * @since 1.8 */ diff --git a/src/test/java/org/springframework/data/auditing/ReflectionAuditingBeanWrapperUnitTests.java b/src/test/java/org/springframework/data/auditing/ReflectionAuditingBeanWrapperUnitTests.java index 6345a3d60..b9a213403 100755 --- a/src/test/java/org/springframework/data/auditing/ReflectionAuditingBeanWrapperUnitTests.java +++ b/src/test/java/org/springframework/data/auditing/ReflectionAuditingBeanWrapperUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2018 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. @@ -30,7 +30,7 @@ import org.springframework.data.convert.Jsr310Converters.LocalDateTimeToDateConv /** * Unit tests for {@link ReflectionAuditingBeanWrapper}. - * + * * @author Oliver Gierke * @since 1.5 */ diff --git a/src/test/java/org/springframework/data/auditing/config/AuditingBeanDefinitionRegistrarSupportUnitTests.java b/src/test/java/org/springframework/data/auditing/config/AuditingBeanDefinitionRegistrarSupportUnitTests.java index b663dfc5a..f4fc70669 100755 --- a/src/test/java/org/springframework/data/auditing/config/AuditingBeanDefinitionRegistrarSupportUnitTests.java +++ b/src/test/java/org/springframework/data/auditing/config/AuditingBeanDefinitionRegistrarSupportUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. * You may obtain a copy of the License at @@ -30,7 +30,7 @@ import org.springframework.data.auditing.EnableAuditing; /** * Unit tests for {@link AuditingBeanDefinitionRegistrarSupport}. - * + * * @author Ranie Jade Ramiso * @author Thomas Darimont * @author Oliver Gierke @@ -85,7 +85,7 @@ public class AuditingBeanDefinitionRegistrarSupportUnitTests { }; } - /* + /* * (non-Javadoc) * @see org.springframework.data.auditing.config.AuditingBeanDefinitionRegistrarSupport#getAuditingHandlerBeanName() */ diff --git a/src/test/java/org/springframework/data/authentication/UserCredentialsUnitTests.java b/src/test/java/org/springframework/data/authentication/UserCredentialsUnitTests.java index 624b11577..b7241b536 100755 --- a/src/test/java/org/springframework/data/authentication/UserCredentialsUnitTests.java +++ b/src/test/java/org/springframework/data/authentication/UserCredentialsUnitTests.java @@ -1,11 +1,11 @@ /* - * Copyright 2011-2017 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -21,7 +21,7 @@ import org.junit.Test; /** * Unit tests for {@link UserCredentials}. - * + * * @author Oliver Gierke */ public class UserCredentialsUnitTests { diff --git a/src/test/java/org/springframework/data/classloadersupport/HidingClassLoader.java b/src/test/java/org/springframework/data/classloadersupport/HidingClassLoader.java index b84790c65..c82cd26a5 100644 --- a/src/test/java/org/springframework/data/classloadersupport/HidingClassLoader.java +++ b/src/test/java/org/springframework/data/classloadersupport/HidingClassLoader.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. @@ -47,7 +47,7 @@ public class HidingClassLoader extends ShadowingClassLoader { /** * Creates a new {@link HidingClassLoader} with the packages of the given classes hidden. - * + * * @param packages must not be {@literal null}. * @return */ diff --git a/src/test/java/org/springframework/data/classloadersupport/ShadowingClassLoader.java b/src/test/java/org/springframework/data/classloadersupport/ShadowingClassLoader.java index 0da59f9e7..46351008a 100644 --- a/src/test/java/org/springframework/data/classloadersupport/ShadowingClassLoader.java +++ b/src/test/java/org/springframework/data/classloadersupport/ShadowingClassLoader.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 the original author or authors. + * Copyright 2002-2018 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. @@ -57,7 +57,7 @@ public class ShadowingClassLoader extends DecoratingClassLoader { /** * Create a new ShadowingClassLoader, decorating the given ClassLoader. - * + * * @param enclosingClassLoader the ClassLoader to decorate */ public ShadowingClassLoader(ClassLoader enclosingClassLoader) { @@ -67,7 +67,7 @@ public class ShadowingClassLoader extends DecoratingClassLoader { /** * Add the given ClassFileTransformer to the list of transformers that this ClassLoader will apply. - * + * * @param transformer the ClassFileTransformer */ public void addTransformer(ClassFileTransformer transformer) { @@ -78,7 +78,7 @@ public class ShadowingClassLoader extends DecoratingClassLoader { /** * Copy all ClassFileTransformers from the given ClassLoader to the list of transformers that this ClassLoader will * apply. - * + * * @param other the ClassLoader to copy from */ public void copyTransformers(ShadowingClassLoader other) { @@ -102,7 +102,7 @@ public class ShadowingClassLoader extends DecoratingClassLoader { /** * Determine whether the given class should be excluded from shadowing. - * + * * @param className the name of the class * @return whether the specified class should be shadowed */ @@ -113,7 +113,7 @@ public class ShadowingClassLoader extends DecoratingClassLoader { /** * Determine whether the specified class is eligible for shadowing by this class loader. - * + * * @param className the class name to check * @return whether the specified class is eligible * @see #isExcluded diff --git a/src/test/java/org/springframework/data/config/TypeFilterParserUnitTests.java b/src/test/java/org/springframework/data/config/TypeFilterParserUnitTests.java index e2f086054..44f2133e7 100755 --- a/src/test/java/org/springframework/data/config/TypeFilterParserUnitTests.java +++ b/src/test/java/org/springframework/data/config/TypeFilterParserUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2012 the original author or authors. + * Copyright 2010-2018 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. @@ -40,7 +40,7 @@ import org.xml.sax.SAXException; /** * Unit test for {@link TypeFilterParser}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/src/test/java/org/springframework/data/convert/ClassGeneratingEntityInstantiatorUnitTests.java b/src/test/java/org/springframework/data/convert/ClassGeneratingEntityInstantiatorUnitTests.java index bb3f263cd..4de3b357e 100755 --- a/src/test/java/org/springframework/data/convert/ClassGeneratingEntityInstantiatorUnitTests.java +++ b/src/test/java/org/springframework/data/convert/ClassGeneratingEntityInstantiatorUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. diff --git a/src/test/java/org/springframework/data/convert/ConfigurableTypeInformationMapperUnitTests.java b/src/test/java/org/springframework/data/convert/ConfigurableTypeInformationMapperUnitTests.java index fc6b399e1..e2d059244 100755 --- a/src/test/java/org/springframework/data/convert/ConfigurableTypeInformationMapperUnitTests.java +++ b/src/test/java/org/springframework/data/convert/ConfigurableTypeInformationMapperUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/test/java/org/springframework/data/convert/ConverterBuilderUnitTests.java b/src/test/java/org/springframework/data/convert/ConverterBuilderUnitTests.java index 7213e9408..3fa49bc63 100644 --- a/src/test/java/org/springframework/data/convert/ConverterBuilderUnitTests.java +++ b/src/test/java/org/springframework/data/convert/ConverterBuilderUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. @@ -28,7 +28,7 @@ import org.springframework.data.convert.ConverterBuilder.WritingConverterBuilder /** * Unit tests for {@link DefaultConverterBuilder}. - * + * * @author Oliver Gierke * @since 2.0 * @soundtrack John Mayer - In the Blood (The Search for Everything) diff --git a/src/test/java/org/springframework/data/convert/CustomConversionsUnitTests.java b/src/test/java/org/springframework/data/convert/CustomConversionsUnitTests.java index f5dcf244d..df37e126f 100644 --- a/src/test/java/org/springframework/data/convert/CustomConversionsUnitTests.java +++ b/src/test/java/org/springframework/data/convert/CustomConversionsUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/test/java/org/springframework/data/convert/DefaultTypeMapperUnitTests.java b/src/test/java/org/springframework/data/convert/DefaultTypeMapperUnitTests.java index 96edb202a..8415e3fd3 100755 --- a/src/test/java/org/springframework/data/convert/DefaultTypeMapperUnitTests.java +++ b/src/test/java/org/springframework/data/convert/DefaultTypeMapperUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. diff --git a/src/test/java/org/springframework/data/convert/EntityInstantiatorsUnitTests.java b/src/test/java/org/springframework/data/convert/EntityInstantiatorsUnitTests.java index b955feecd..a0db5dbeb 100755 --- a/src/test/java/org/springframework/data/convert/EntityInstantiatorsUnitTests.java +++ b/src/test/java/org/springframework/data/convert/EntityInstantiatorsUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2018 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. @@ -29,7 +29,7 @@ import org.springframework.data.mapping.PersistentEntity; /** * Unit tests for {@link EntityInstantiators}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/src/test/java/org/springframework/data/convert/Jsr310ConvertersUnitTests.java b/src/test/java/org/springframework/data/convert/Jsr310ConvertersUnitTests.java index d15768d54..83686ad91 100644 --- a/src/test/java/org/springframework/data/convert/Jsr310ConvertersUnitTests.java +++ b/src/test/java/org/springframework/data/convert/Jsr310ConvertersUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. diff --git a/src/test/java/org/springframework/data/convert/MappingContextTypeInformationMapperUnitTests.java b/src/test/java/org/springframework/data/convert/MappingContextTypeInformationMapperUnitTests.java index d6ea408c3..f820ee598 100755 --- a/src/test/java/org/springframework/data/convert/MappingContextTypeInformationMapperUnitTests.java +++ b/src/test/java/org/springframework/data/convert/MappingContextTypeInformationMapperUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/test/java/org/springframework/data/convert/ReflectionEntityInstantiatorUnitTests.java b/src/test/java/org/springframework/data/convert/ReflectionEntityInstantiatorUnitTests.java index 355e3f178..bd2c5d88b 100755 --- a/src/test/java/org/springframework/data/convert/ReflectionEntityInstantiatorUnitTests.java +++ b/src/test/java/org/springframework/data/convert/ReflectionEntityInstantiatorUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/test/java/org/springframework/data/convert/SimpleTypeInformationMapperUnitTests.java b/src/test/java/org/springframework/data/convert/SimpleTypeInformationMapperUnitTests.java index 5f583735d..8a88227db 100755 --- a/src/test/java/org/springframework/data/convert/SimpleTypeInformationMapperUnitTests.java +++ b/src/test/java/org/springframework/data/convert/SimpleTypeInformationMapperUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2013 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/test/java/org/springframework/data/convert/ThreeTenBackPortConvertersUnitTests.java b/src/test/java/org/springframework/data/convert/ThreeTenBackPortConvertersUnitTests.java index fe733a071..dfde7cdca 100755 --- a/src/test/java/org/springframework/data/convert/ThreeTenBackPortConvertersUnitTests.java +++ b/src/test/java/org/springframework/data/convert/ThreeTenBackPortConvertersUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -36,7 +36,7 @@ import org.threeten.bp.ZoneId; /** * Unit tests for {@link ThreeTenBackPortConverters}. - * + * * @author Oliver Gierke * @since 1.10 */ diff --git a/src/test/java/org/springframework/data/domain/AbstractAggregateRootUnitTests.java b/src/test/java/org/springframework/data/domain/AbstractAggregateRootUnitTests.java index 75d70f374..45525d092 100644 --- a/src/test/java/org/springframework/data/domain/AbstractAggregateRootUnitTests.java +++ b/src/test/java/org/springframework/data/domain/AbstractAggregateRootUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. @@ -21,7 +21,7 @@ import org.junit.Test; /** * Unit tests for {@link AbstractAggregateRoot}. - * + * * @author Oliver Gierke */ public class AbstractAggregateRootUnitTests { diff --git a/src/test/java/org/springframework/data/domain/AbstractPageRequestUnitTests.java b/src/test/java/org/springframework/data/domain/AbstractPageRequestUnitTests.java index f263eee51..85a38a127 100755 --- a/src/test/java/org/springframework/data/domain/AbstractPageRequestUnitTests.java +++ b/src/test/java/org/springframework/data/domain/AbstractPageRequestUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. diff --git a/src/test/java/org/springframework/data/domain/ExampleMatcherUnitTests.java b/src/test/java/org/springframework/data/domain/ExampleMatcherUnitTests.java index 71a1fbe12..e43ec8a26 100755 --- a/src/test/java/org/springframework/data/domain/ExampleMatcherUnitTests.java +++ b/src/test/java/org/springframework/data/domain/ExampleMatcherUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/test/java/org/springframework/data/domain/ExampleUnitTests.java b/src/test/java/org/springframework/data/domain/ExampleUnitTests.java index 6e7c88aea..e87bcd928 100755 --- a/src/test/java/org/springframework/data/domain/ExampleUnitTests.java +++ b/src/test/java/org/springframework/data/domain/ExampleUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/test/java/org/springframework/data/domain/PageImplUnitTests.java b/src/test/java/org/springframework/data/domain/PageImplUnitTests.java index e074ca1b3..f6ec72d67 100755 --- a/src/test/java/org/springframework/data/domain/PageImplUnitTests.java +++ b/src/test/java/org/springframework/data/domain/PageImplUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. @@ -26,7 +26,7 @@ import org.junit.Test; /** * Unit test for {@link PageImpl}. - * + * * @author Oliver Gierke */ public class PageImplUnitTests { diff --git a/src/test/java/org/springframework/data/domain/PageRequestUnitTests.java b/src/test/java/org/springframework/data/domain/PageRequestUnitTests.java index 21e324613..2ecd528bd 100755 --- a/src/test/java/org/springframework/data/domain/PageRequestUnitTests.java +++ b/src/test/java/org/springframework/data/domain/PageRequestUnitTests.java @@ -1,12 +1,12 @@ /* - * Copyright 2008-2013 the original author or authors. - * + * Copyright 2008-2018 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. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -22,12 +22,12 @@ import org.springframework.data.domain.Sort.Direction; /** * Unit test for {@link PageRequest}. - * + * * @author Oliver Gierke */ public class PageRequestUnitTests extends AbstractPageRequestUnitTests { - /* + /* * (non-Javadoc) * @see org.springframework.data.domain.AbstractPageRequestUnitTests#newPageRequest(int, int) */ diff --git a/src/test/java/org/springframework/data/domain/RangeUnitTests.java b/src/test/java/org/springframework/data/domain/RangeUnitTests.java index fbceabfcf..8d4519ded 100755 --- a/src/test/java/org/springframework/data/domain/RangeUnitTests.java +++ b/src/test/java/org/springframework/data/domain/RangeUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. diff --git a/src/test/java/org/springframework/data/domain/SortUnitTests.java b/src/test/java/org/springframework/data/domain/SortUnitTests.java index c56cc6a46..e79c06960 100755 --- a/src/test/java/org/springframework/data/domain/SortUnitTests.java +++ b/src/test/java/org/springframework/data/domain/SortUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. @@ -24,7 +24,7 @@ import org.springframework.data.domain.Sort.Order; /** * Unit test for {@link Sort}. - * + * * @author Oliver Gierke * @author Kevin Raymond * @author Thomas Darimont @@ -34,7 +34,7 @@ public class SortUnitTests { /** * Asserts that the class applies the default sort order if no order or {@code null} was provided. - * + * * @throws Exception */ @Test @@ -44,7 +44,7 @@ public class SortUnitTests { /** * Asserts that the class rejects {@code null} as properties array. - * + * * @throws Exception */ @SuppressWarnings("null") @@ -56,7 +56,7 @@ public class SortUnitTests { /** * Asserts that the class rejects {@code null} values in the properties array. - * + * * @throws Exception */ @Test(expected = IllegalArgumentException.class) @@ -67,7 +67,7 @@ public class SortUnitTests { /** * Asserts that the class rejects empty strings in the properties array. - * + * * @throws Exception */ @Test(expected = IllegalArgumentException.class) @@ -78,7 +78,7 @@ public class SortUnitTests { /** * Asserts that the class rejects no properties given at all. - * + * * @throws Exception */ @Test(expected = IllegalArgumentException.class) diff --git a/src/test/java/org/springframework/data/domain/jaxb/SpringDataJaxbUnitTests.java b/src/test/java/org/springframework/data/domain/jaxb/SpringDataJaxbUnitTests.java index 68b2f580d..3b1c991a9 100755 --- a/src/test/java/org/springframework/data/domain/jaxb/SpringDataJaxbUnitTests.java +++ b/src/test/java/org/springframework/data/domain/jaxb/SpringDataJaxbUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2014 the original author or authors. + * Copyright 2012-2018 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. @@ -49,7 +49,7 @@ import org.springframework.hateoas.Link; /** * Unit test for custom JAXB conversions for Spring Data value objects. - * + * * @author Oliver Gierke */ public class SpringDataJaxbUnitTests { diff --git a/src/test/java/org/springframework/data/geo/BoxUnitTests.java b/src/test/java/org/springframework/data/geo/BoxUnitTests.java index d688652bb..27b11537f 100755 --- a/src/test/java/org/springframework/data/geo/BoxUnitTests.java +++ b/src/test/java/org/springframework/data/geo/BoxUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -22,7 +22,7 @@ import org.springframework.util.SerializationUtils; /** * Unit tests for {@link Box}. - * + * * @author Oliver Gierke * @author Thomas Darimont */ diff --git a/src/test/java/org/springframework/data/geo/CircleUnitTests.java b/src/test/java/org/springframework/data/geo/CircleUnitTests.java index 9f4b1da2d..77d4f2ba1 100755 --- a/src/test/java/org/springframework/data/geo/CircleUnitTests.java +++ b/src/test/java/org/springframework/data/geo/CircleUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -22,7 +22,7 @@ import org.springframework.util.SerializationUtils; /** * Unit tests for {@link Circle}. - * + * * @author Oliver Gierke * @author Thomas Darimont */ diff --git a/src/test/java/org/springframework/data/geo/DistanceUnitTests.java b/src/test/java/org/springframework/data/geo/DistanceUnitTests.java index 90e514bde..0c537889b 100755 --- a/src/test/java/org/springframework/data/geo/DistanceUnitTests.java +++ b/src/test/java/org/springframework/data/geo/DistanceUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -26,7 +26,7 @@ import org.springframework.util.SerializationUtils; /** * Unit tests for {@link Distance}. - * + * * @author Oliver Gierke * @author Thomas Darimont * @author Mark Paluch diff --git a/src/test/java/org/springframework/data/geo/GeoModuleIntegrationTests.java b/src/test/java/org/springframework/data/geo/GeoModuleIntegrationTests.java index 813048030..381788fda 100755 --- a/src/test/java/org/springframework/data/geo/GeoModuleIntegrationTests.java +++ b/src/test/java/org/springframework/data/geo/GeoModuleIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -24,7 +24,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; /** * Integration tests for {@link GeoModule}. - * + * * @author Oliver Gierke */ public class GeoModuleIntegrationTests { diff --git a/src/test/java/org/springframework/data/geo/GeoResultUnitTests.java b/src/test/java/org/springframework/data/geo/GeoResultUnitTests.java index bd29f9300..789d4c5e6 100755 --- a/src/test/java/org/springframework/data/geo/GeoResultUnitTests.java +++ b/src/test/java/org/springframework/data/geo/GeoResultUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -22,7 +22,7 @@ import org.springframework.util.SerializationUtils; /** * Unit tests for {@link GeoResult}. - * + * * @author Oliver Gierke * @author Thomas Darimont */ diff --git a/src/test/java/org/springframework/data/geo/GeoResultsUnitTests.java b/src/test/java/org/springframework/data/geo/GeoResultsUnitTests.java index 8e91d8b5f..cbf95f590 100755 --- a/src/test/java/org/springframework/data/geo/GeoResultsUnitTests.java +++ b/src/test/java/org/springframework/data/geo/GeoResultsUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -25,7 +25,7 @@ import org.springframework.util.SerializationUtils; /** * Unit tests for {@link GeoResults}. - * + * * @author Oliver Gierke * @author Thomas Darimont */ diff --git a/src/test/java/org/springframework/data/geo/PointUnitTests.java b/src/test/java/org/springframework/data/geo/PointUnitTests.java index 1cbb6f442..aba41942d 100755 --- a/src/test/java/org/springframework/data/geo/PointUnitTests.java +++ b/src/test/java/org/springframework/data/geo/PointUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -22,7 +22,7 @@ import org.springframework.util.SerializationUtils; /** * Unit tests for {@link Point}. - * + * * @author Oliver Gierke * @author Thomas Darimont */ diff --git a/src/test/java/org/springframework/data/geo/PolygonUnitTests.java b/src/test/java/org/springframework/data/geo/PolygonUnitTests.java index ea879249d..2a1423066 100755 --- a/src/test/java/org/springframework/data/geo/PolygonUnitTests.java +++ b/src/test/java/org/springframework/data/geo/PolygonUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -22,7 +22,7 @@ import org.springframework.util.SerializationUtils; /** * Unit tests for {@link Polygon}. - * + * * @author Oliver Gierke * @author Thomas Darimont */ diff --git a/src/test/java/org/springframework/data/geo/format/DistanceFormatterUnitTests.java b/src/test/java/org/springframework/data/geo/format/DistanceFormatterUnitTests.java index 88bd214bc..78ba2e920 100755 --- a/src/test/java/org/springframework/data/geo/format/DistanceFormatterUnitTests.java +++ b/src/test/java/org/springframework/data/geo/format/DistanceFormatterUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -34,7 +34,7 @@ import org.springframework.data.geo.Metrics; /** * Unit tests for {@link DistanceFormatter}. - * + * * @author Oliver Gierke */ @RunWith(Enclosed.class) diff --git a/src/test/java/org/springframework/data/geo/format/PointFormatterUnitTests.java b/src/test/java/org/springframework/data/geo/format/PointFormatterUnitTests.java index 2016e0476..87ffdb212 100755 --- a/src/test/java/org/springframework/data/geo/format/PointFormatterUnitTests.java +++ b/src/test/java/org/springframework/data/geo/format/PointFormatterUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -35,7 +35,7 @@ import org.springframework.data.geo.Point; /** * Unit tests for {@link PointFormatter}. - * + * * @author Oliver Gierke */ @RunWith(Enclosed.class) diff --git a/src/test/java/org/springframework/data/history/AnnotationRevisionMetadataUnitTests.java b/src/test/java/org/springframework/data/history/AnnotationRevisionMetadataUnitTests.java index 8f5f0531a..115224040 100644 --- a/src/test/java/org/springframework/data/history/AnnotationRevisionMetadataUnitTests.java +++ b/src/test/java/org/springframework/data/history/AnnotationRevisionMetadataUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. @@ -25,7 +25,7 @@ import org.springframework.data.annotation.Reference; /** * Unit tests for {@link AnnotationRevisionMetadata}. - * + * * @author Oliver Gierke */ public class AnnotationRevisionMetadataUnitTests { diff --git a/src/test/java/org/springframework/data/history/RevisionUnitTests.java b/src/test/java/org/springframework/data/history/RevisionUnitTests.java index 03487ce03..24a57d73d 100755 --- a/src/test/java/org/springframework/data/history/RevisionUnitTests.java +++ b/src/test/java/org/springframework/data/history/RevisionUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -31,7 +31,7 @@ import org.mockito.junit.MockitoJUnitRunner; /** * Unit tests for {@link RevisionMetadata}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/src/test/java/org/springframework/data/history/RevisionsUnitTests.java b/src/test/java/org/springframework/data/history/RevisionsUnitTests.java index 1e5ec9154..ce395a584 100755 --- a/src/test/java/org/springframework/data/history/RevisionsUnitTests.java +++ b/src/test/java/org/springframework/data/history/RevisionsUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. @@ -30,7 +30,7 @@ import org.mockito.junit.MockitoJUnitRunner; /** * Unit tests for {@link Revisions}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/src/test/java/org/springframework/data/mapping/Child.java b/src/test/java/org/springframework/data/mapping/Child.java index 5f0fbae28..c5758dc65 100644 --- a/src/test/java/org/springframework/data/mapping/Child.java +++ b/src/test/java/org/springframework/data/mapping/Child.java @@ -1,11 +1,11 @@ /* - * Copyright (c) 2011 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.springframework.data.mapping; import org.springframework.data.annotation.Persistent; diff --git a/src/test/java/org/springframework/data/mapping/Document.java b/src/test/java/org/springframework/data/mapping/Document.java index c657d05b5..496c847ad 100644 --- a/src/test/java/org/springframework/data/mapping/Document.java +++ b/src/test/java/org/springframework/data/mapping/Document.java @@ -1,11 +1,11 @@ /* - * Copyright (c) 2011 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.springframework.data.mapping; import java.lang.annotation.ElementType; diff --git a/src/test/java/org/springframework/data/mapping/MappingMetadataTests.java b/src/test/java/org/springframework/data/mapping/MappingMetadataTests.java index a4e9ade0e..ddea2367b 100755 --- a/src/test/java/org/springframework/data/mapping/MappingMetadataTests.java +++ b/src/test/java/org/springframework/data/mapping/MappingMetadataTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2013 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/test/java/org/springframework/data/mapping/ParameterUnitTests.java b/src/test/java/org/springframework/data/mapping/ParameterUnitTests.java index cc760008a..f5c52ae2c 100755 --- a/src/test/java/org/springframework/data/mapping/ParameterUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/ParameterUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/test/java/org/springframework/data/mapping/PersistentEntitySpec.java b/src/test/java/org/springframework/data/mapping/PersistentEntitySpec.java index 93400ec2f..5ee361477 100644 --- a/src/test/java/org/springframework/data/mapping/PersistentEntitySpec.java +++ b/src/test/java/org/springframework/data/mapping/PersistentEntitySpec.java @@ -1,11 +1,11 @@ /* - * Copyright (c) 2011 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -20,7 +20,7 @@ import static org.assertj.core.api.Assertions.*; /** * Some test methods that define expected behaviour for {@link PersistentEntity} interface. Implementation test classes * can simply extend that class to get the specs tested against an instance of their implementation. - * + * * @author Oliver Gierke */ public abstract class PersistentEntitySpec { diff --git a/src/test/java/org/springframework/data/mapping/Person.java b/src/test/java/org/springframework/data/mapping/Person.java index e85815832..fcb126489 100644 --- a/src/test/java/org/springframework/data/mapping/Person.java +++ b/src/test/java/org/springframework/data/mapping/Person.java @@ -1,11 +1,11 @@ /* - * Copyright (c) 2011 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.springframework.data.mapping; /** diff --git a/src/test/java/org/springframework/data/mapping/PersonDocument.java b/src/test/java/org/springframework/data/mapping/PersonDocument.java index d5ad1bee2..051169990 100644 --- a/src/test/java/org/springframework/data/mapping/PersonDocument.java +++ b/src/test/java/org/springframework/data/mapping/PersonDocument.java @@ -1,11 +1,11 @@ /* - * Copyright (c) 2011 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.springframework.data.mapping; /** diff --git a/src/test/java/org/springframework/data/mapping/PersonNoId.java b/src/test/java/org/springframework/data/mapping/PersonNoId.java index 39d0c6163..baf95c20a 100644 --- a/src/test/java/org/springframework/data/mapping/PersonNoId.java +++ b/src/test/java/org/springframework/data/mapping/PersonNoId.java @@ -1,11 +1,11 @@ /* - * Copyright (c) 2011 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.springframework.data.mapping; /** diff --git a/src/test/java/org/springframework/data/mapping/PersonPersistent.java b/src/test/java/org/springframework/data/mapping/PersonPersistent.java index a7f0758bc..df14eb5f3 100644 --- a/src/test/java/org/springframework/data/mapping/PersonPersistent.java +++ b/src/test/java/org/springframework/data/mapping/PersonPersistent.java @@ -1,11 +1,11 @@ /* - * Copyright (c) 2011 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.springframework.data.mapping; import org.springframework.data.annotation.Persistent; diff --git a/src/test/java/org/springframework/data/mapping/PersonWithChildren.java b/src/test/java/org/springframework/data/mapping/PersonWithChildren.java index 6ba1dd005..79ab9d3a5 100644 --- a/src/test/java/org/springframework/data/mapping/PersonWithChildren.java +++ b/src/test/java/org/springframework/data/mapping/PersonWithChildren.java @@ -1,11 +1,11 @@ /* - * Copyright (c) 2011 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.springframework.data.mapping; import java.util.List; diff --git a/src/test/java/org/springframework/data/mapping/PersonWithId.java b/src/test/java/org/springframework/data/mapping/PersonWithId.java index dab827caa..ed45ed35e 100644 --- a/src/test/java/org/springframework/data/mapping/PersonWithId.java +++ b/src/test/java/org/springframework/data/mapping/PersonWithId.java @@ -1,11 +1,11 @@ /* - * Copyright (c) 2011 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.springframework.data.mapping; import org.springframework.data.annotation.Id; diff --git a/src/test/java/org/springframework/data/mapping/PreferredConstructorDiscovererUnitTests.java b/src/test/java/org/springframework/data/mapping/PreferredConstructorDiscovererUnitTests.java index 40f1ed324..9d18c32ee 100755 --- a/src/test/java/org/springframework/data/mapping/PreferredConstructorDiscovererUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/PreferredConstructorDiscovererUnitTests.java @@ -1,11 +1,11 @@ /* - * Copyright 2011-2017 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, diff --git a/src/test/java/org/springframework/data/mapping/PropertyPathUnitTests.java b/src/test/java/org/springframework/data/mapping/PropertyPathUnitTests.java index 71853d5e0..f79cee857 100755 --- a/src/test/java/org/springframework/data/mapping/PropertyPathUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/PropertyPathUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -31,7 +31,7 @@ import org.springframework.data.util.TypeInformation; /** * Unit tests for {@link PropertyPath}. - * + * * @author Oliver Gierke * @author Christoph Strobl */ diff --git a/src/test/java/org/springframework/data/mapping/PropertyReferenceExceptionUnitTests.java b/src/test/java/org/springframework/data/mapping/PropertyReferenceExceptionUnitTests.java index c466cd601..be754487c 100755 --- a/src/test/java/org/springframework/data/mapping/PropertyReferenceExceptionUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/PropertyReferenceExceptionUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/test/java/org/springframework/data/mapping/SimpleTypeHolderUnitTests.java b/src/test/java/org/springframework/data/mapping/SimpleTypeHolderUnitTests.java index 34caed74e..ebb0b43d0 100755 --- a/src/test/java/org/springframework/data/mapping/SimpleTypeHolderUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/SimpleTypeHolderUnitTests.java @@ -1,11 +1,11 @@ /* - * Copyright 2011-2017 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, diff --git a/src/test/java/org/springframework/data/mapping/TargetAwareIdentifierAccessorUnitTests.java b/src/test/java/org/springframework/data/mapping/TargetAwareIdentifierAccessorUnitTests.java index a0984aa11..8435d9037 100644 --- a/src/test/java/org/springframework/data/mapping/TargetAwareIdentifierAccessorUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/TargetAwareIdentifierAccessorUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/mapping/context/AbstractMappingContextIntegrationTests.java b/src/test/java/org/springframework/data/mapping/context/AbstractMappingContextIntegrationTests.java index 68c5a026b..be029dd1e 100755 --- a/src/test/java/org/springframework/data/mapping/context/AbstractMappingContextIntegrationTests.java +++ b/src/test/java/org/springframework/data/mapping/context/AbstractMappingContextIntegrationTests.java @@ -1,11 +1,11 @@ /* - * Copyright 2011-2017 by the original author(s). + * Copyright 2011-2018 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -33,7 +33,7 @@ import org.springframework.data.util.TypeInformation; /** * Integration tests for {@link AbstractMappingContext}. - * + * * @author Oliver Gierke */ public class AbstractMappingContextIntegrationTests> { diff --git a/src/test/java/org/springframework/data/mapping/context/AbstractMappingContextUnitTests.java b/src/test/java/org/springframework/data/mapping/context/AbstractMappingContextUnitTests.java index 418f7a689..23f63b7b3 100755 --- a/src/test/java/org/springframework/data/mapping/context/AbstractMappingContextUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/context/AbstractMappingContextUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/test/java/org/springframework/data/mapping/context/DefaultPersistenPropertyPathUnitTests.java b/src/test/java/org/springframework/data/mapping/context/DefaultPersistenPropertyPathUnitTests.java index 27d4ed54f..86fab1b5a 100755 --- a/src/test/java/org/springframework/data/mapping/context/DefaultPersistenPropertyPathUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/context/DefaultPersistenPropertyPathUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -31,7 +31,7 @@ import org.springframework.data.mapping.PersistentProperty; /** * Unit tests for {@link DefaultPersistentPropertyPath}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/src/test/java/org/springframework/data/mapping/context/MappingContextEventUnitTests.java b/src/test/java/org/springframework/data/mapping/context/MappingContextEventUnitTests.java index c56182c6d..58cb8f046 100755 --- a/src/test/java/org/springframework/data/mapping/context/MappingContextEventUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/context/MappingContextEventUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. @@ -26,7 +26,7 @@ import org.springframework.data.mapping.PersistentProperty; /** * Unit tests for {@link MappingContextEvent}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/src/test/java/org/springframework/data/mapping/context/MappingContextIsNewStrategyFactoryUnitTests.java b/src/test/java/org/springframework/data/mapping/context/MappingContextIsNewStrategyFactoryUnitTests.java index c4b9cb9f3..087ab8731 100755 --- a/src/test/java/org/springframework/data/mapping/context/MappingContextIsNewStrategyFactoryUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/context/MappingContextIsNewStrategyFactoryUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2018 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. @@ -31,7 +31,7 @@ import org.springframework.data.support.IsNewStrategyFactory; /** * Unit tests for {@link MappingContextIsNewStrategyFactory}. - * + * * @author Oliver Gierke */ public class MappingContextIsNewStrategyFactoryUnitTests { diff --git a/src/test/java/org/springframework/data/mapping/context/PersistentEntitiesUnitTests.java b/src/test/java/org/springframework/data/mapping/context/PersistentEntitiesUnitTests.java index e7b37f900..c05f6a509 100755 --- a/src/test/java/org/springframework/data/mapping/context/PersistentEntitiesUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/context/PersistentEntitiesUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -29,7 +29,7 @@ import org.springframework.data.util.ClassTypeInformation; /** * Unit tests for {@link PersistentEntities}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/src/test/java/org/springframework/data/mapping/context/PropertyMatchUnitTests.java b/src/test/java/org/springframework/data/mapping/context/PropertyMatchUnitTests.java index 6ad46a62f..abdb38c1c 100755 --- a/src/test/java/org/springframework/data/mapping/context/PropertyMatchUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/context/PropertyMatchUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2014 the original author or authors. + * Copyright 2012-2018 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. @@ -22,7 +22,7 @@ import org.springframework.data.mapping.context.AbstractMappingContext.Persisten /** * Unit tests for {@link PropertyMatch}. Introduced for DATACMNS-228. - * + * * @since 1.4 * @author Oliver Gierke */ diff --git a/src/test/java/org/springframework/data/mapping/context/SamplePersistentProperty.java b/src/test/java/org/springframework/data/mapping/context/SamplePersistentProperty.java index 0651ef030..8f5196b22 100644 --- a/src/test/java/org/springframework/data/mapping/context/SamplePersistentProperty.java +++ b/src/test/java/org/springframework/data/mapping/context/SamplePersistentProperty.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/test/java/org/springframework/data/mapping/model/AbstractPersistentPropertyUnitTests.java b/src/test/java/org/springframework/data/mapping/model/AbstractPersistentPropertyUnitTests.java index d0556dc8e..ad9e1909b 100755 --- a/src/test/java/org/springframework/data/mapping/model/AbstractPersistentPropertyUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/model/AbstractPersistentPropertyUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/test/java/org/springframework/data/mapping/model/AnnotationBasedPersistentPropertyUnitTests.java b/src/test/java/org/springframework/data/mapping/model/AnnotationBasedPersistentPropertyUnitTests.java index ae3100f4e..faa55499c 100755 --- a/src/test/java/org/springframework/data/mapping/model/AnnotationBasedPersistentPropertyUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/model/AnnotationBasedPersistentPropertyUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. diff --git a/src/test/java/org/springframework/data/mapping/model/BasicPersistentEntityUnitTests.java b/src/test/java/org/springframework/data/mapping/model/BasicPersistentEntityUnitTests.java index bd3601ff5..f16857e99 100755 --- a/src/test/java/org/springframework/data/mapping/model/BasicPersistentEntityUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/model/BasicPersistentEntityUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/test/java/org/springframework/data/mapping/model/CamelCaseAbbreviatingFieldNamingStrategyUnitTests.java b/src/test/java/org/springframework/data/mapping/model/CamelCaseAbbreviatingFieldNamingStrategyUnitTests.java index 9cc27a091..a6dbea83a 100755 --- a/src/test/java/org/springframework/data/mapping/model/CamelCaseAbbreviatingFieldNamingStrategyUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/model/CamelCaseAbbreviatingFieldNamingStrategyUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -26,7 +26,7 @@ import org.springframework.data.mapping.PersistentProperty; /** * Unit tests for {@link CamelCaseAbbreviatingFieldNamingStrategy}. - * + * * @author Oliver Gierke * @since 1.9 */ diff --git a/src/test/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorFactoryDatatypeTests.java b/src/test/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorFactoryDatatypeTests.java index 28c34c523..5fd0f8eda 100755 --- a/src/test/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorFactoryDatatypeTests.java +++ b/src/test/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorFactoryDatatypeTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/test/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorFactoryEntityTypeTests.java b/src/test/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorFactoryEntityTypeTests.java index 70aa4332e..11c876491 100755 --- a/src/test/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorFactoryEntityTypeTests.java +++ b/src/test/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorFactoryEntityTypeTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/test/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorFactoryTests.java b/src/test/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorFactoryTests.java index f21025560..bf745aa69 100755 --- a/src/test/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorFactoryTests.java +++ b/src/test/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorFactoryTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/test/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorPackageDefaultType.java b/src/test/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorPackageDefaultType.java index 846bb0cf6..349b9bacd 100644 --- a/src/test/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorPackageDefaultType.java +++ b/src/test/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorPackageDefaultType.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/test/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorPublicType.java b/src/test/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorPublicType.java index bf2d26df8..5dd739d49 100644 --- a/src/test/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorPublicType.java +++ b/src/test/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorPublicType.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/test/java/org/springframework/data/mapping/model/ConvertingPropertyAccessorUnitTests.java b/src/test/java/org/springframework/data/mapping/model/ConvertingPropertyAccessorUnitTests.java index 8715f2029..1d49b270e 100755 --- a/src/test/java/org/springframework/data/mapping/model/ConvertingPropertyAccessorUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/model/ConvertingPropertyAccessorUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. diff --git a/src/test/java/org/springframework/data/mapping/model/IdPropertyIdentifierAccessorUnitTests.java b/src/test/java/org/springframework/data/mapping/model/IdPropertyIdentifierAccessorUnitTests.java index 567c72770..6b34f26fb 100755 --- a/src/test/java/org/springframework/data/mapping/model/IdPropertyIdentifierAccessorUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/model/IdPropertyIdentifierAccessorUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. diff --git a/src/test/java/org/springframework/data/mapping/model/PersistentEntityParameterValueProviderUnitTests.java b/src/test/java/org/springframework/data/mapping/model/PersistentEntityParameterValueProviderUnitTests.java index 0b7869b07..323eccbb1 100755 --- a/src/test/java/org/springframework/data/mapping/model/PersistentEntityParameterValueProviderUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/model/PersistentEntityParameterValueProviderUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/test/java/org/springframework/data/mapping/model/SnakeCaseFieldNamingStrategyUnitTests.java b/src/test/java/org/springframework/data/mapping/model/SnakeCaseFieldNamingStrategyUnitTests.java index fabf2430f..6c7f49652 100755 --- a/src/test/java/org/springframework/data/mapping/model/SnakeCaseFieldNamingStrategyUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/model/SnakeCaseFieldNamingStrategyUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -26,7 +26,7 @@ import org.springframework.data.mapping.PersistentProperty; /** * Unit tests for {@link SnakeCaseFieldNamingStrategy}. - * + * * @author Ryan Tenney * @author Oliver Gierke * @since 1.9 diff --git a/src/test/java/org/springframework/data/mapping/model/SpelExpressionParameterProviderUnitTests.java b/src/test/java/org/springframework/data/mapping/model/SpelExpressionParameterProviderUnitTests.java index 27c9aa2f0..0a9ab9459 100755 --- a/src/test/java/org/springframework/data/mapping/model/SpelExpressionParameterProviderUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/model/SpelExpressionParameterProviderUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/test/java/org/springframework/data/mapping/model/subpackage/TypeInOtherPackage.java b/src/test/java/org/springframework/data/mapping/model/subpackage/TypeInOtherPackage.java index e127fd1ce..29480c08a 100644 --- a/src/test/java/org/springframework/data/mapping/model/subpackage/TypeInOtherPackage.java +++ b/src/test/java/org/springframework/data/mapping/model/subpackage/TypeInOtherPackage.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/test/java/org/springframework/data/projection/DefaultProjectionInformationUnitTests.java b/src/test/java/org/springframework/data/projection/DefaultProjectionInformationUnitTests.java index 016ee2be2..a00cecc44 100755 --- a/src/test/java/org/springframework/data/projection/DefaultProjectionInformationUnitTests.java +++ b/src/test/java/org/springframework/data/projection/DefaultProjectionInformationUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -26,7 +26,7 @@ import org.junit.Test; /** * Unit tests for {@link DefaultProjectionInformation}. - * + * * @author Oliver Gierke */ public class DefaultProjectionInformationUnitTests { diff --git a/src/test/java/org/springframework/data/projection/MapAccessingMethodInterceptorUnitTests.java b/src/test/java/org/springframework/data/projection/MapAccessingMethodInterceptorUnitTests.java index 5b428814b..1cf2bb1da 100755 --- a/src/test/java/org/springframework/data/projection/MapAccessingMethodInterceptorUnitTests.java +++ b/src/test/java/org/springframework/data/projection/MapAccessingMethodInterceptorUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -30,7 +30,7 @@ import org.mockito.junit.MockitoJUnitRunner; /** * Unit tests for {@link MapAccessingMethodInterceptor}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/src/test/java/org/springframework/data/projection/ProjectingMethodInterceptorUnitTests.java b/src/test/java/org/springframework/data/projection/ProjectingMethodInterceptorUnitTests.java index fd51c5e75..7d279678a 100755 --- a/src/test/java/org/springframework/data/projection/ProjectingMethodInterceptorUnitTests.java +++ b/src/test/java/org/springframework/data/projection/ProjectingMethodInterceptorUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -36,7 +36,7 @@ import org.springframework.core.convert.support.DefaultConversionService; /** * Unit tests for {@link ProjectingMethodInterceptor}. - * + * * @author Oliver Gierke * @author Saulo Medeiros de Araujo */ @@ -179,7 +179,7 @@ public class ProjectingMethodInterceptorUnitTests { /** * Mocks the {@link Helper} method of the given name to return the given value. - * + * * @param methodName * @param returnValue * @return diff --git a/src/test/java/org/springframework/data/projection/ProjectionIntegrationTests.java b/src/test/java/org/springframework/data/projection/ProjectionIntegrationTests.java index a20325dc1..8fdcaf7e2 100755 --- a/src/test/java/org/springframework/data/projection/ProjectionIntegrationTests.java +++ b/src/test/java/org/springframework/data/projection/ProjectionIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -28,7 +28,7 @@ import com.jayway.jsonpath.ParseContext; /** * Integration tests for projections. - * + * * @author Oliver Gierke */ public class ProjectionIntegrationTests { diff --git a/src/test/java/org/springframework/data/projection/PropertyAccessingMethodInterceptorUnitTests.java b/src/test/java/org/springframework/data/projection/PropertyAccessingMethodInterceptorUnitTests.java index ebb8aa5c5..106fc24f2 100755 --- a/src/test/java/org/springframework/data/projection/PropertyAccessingMethodInterceptorUnitTests.java +++ b/src/test/java/org/springframework/data/projection/PropertyAccessingMethodInterceptorUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -29,7 +29,7 @@ import org.springframework.beans.NotWritablePropertyException; /** * Unit tests for {@link PropertyAccessingMethodInterceptor}. - * + * * @author Oliver Gierke * @author Mark Paluch */ diff --git a/src/test/java/org/springframework/data/projection/ProxyProjectionFactoryUnitTests.java b/src/test/java/org/springframework/data/projection/ProxyProjectionFactoryUnitTests.java index 239e649aa..46ed43d9d 100755 --- a/src/test/java/org/springframework/data/projection/ProxyProjectionFactoryUnitTests.java +++ b/src/test/java/org/springframework/data/projection/ProxyProjectionFactoryUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -32,7 +32,7 @@ import org.springframework.test.util.ReflectionTestUtils; /** * Unit tests for {@link ProxyProjectionFactory}. - * + * * @author Oliver Gierke */ public class ProxyProjectionFactoryUnitTests { diff --git a/src/test/java/org/springframework/data/projection/SpelAwareProxyProjectionFactoryUnitTests.java b/src/test/java/org/springframework/data/projection/SpelAwareProxyProjectionFactoryUnitTests.java index 46facf61a..296cccfc7 100755 --- a/src/test/java/org/springframework/data/projection/SpelAwareProxyProjectionFactoryUnitTests.java +++ b/src/test/java/org/springframework/data/projection/SpelAwareProxyProjectionFactoryUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -29,7 +29,7 @@ import org.springframework.beans.factory.annotation.Value; /** * Unit tests for {@link SpelAwareProxyProjectionFactory}. - * + * * @author Oliver Gierke * @author Thomas Darimont * @author Mark Paluch diff --git a/src/test/java/org/springframework/data/projection/SpelEvaluatingMethodInterceptorUnitTests.java b/src/test/java/org/springframework/data/projection/SpelEvaluatingMethodInterceptorUnitTests.java index ad7504233..70454e296 100755 --- a/src/test/java/org/springframework/data/projection/SpelEvaluatingMethodInterceptorUnitTests.java +++ b/src/test/java/org/springframework/data/projection/SpelEvaluatingMethodInterceptorUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -33,7 +33,7 @@ import org.springframework.expression.spel.standard.SpelExpressionParser; /** * Unit tests for {@link SpelEvaluatingMethodInterceptor}. - * + * * @author Oliver Gierke * @author Thomas Darimont */ diff --git a/src/test/java/org/springframework/data/querydsl/Address.java b/src/test/java/org/springframework/data/querydsl/Address.java index 0cbaea323..da1515b99 100644 --- a/src/test/java/org/springframework/data/querydsl/Address.java +++ b/src/test/java/org/springframework/data/querydsl/Address.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2015-2018 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. diff --git a/src/test/java/org/springframework/data/querydsl/QPageRequestUnitTests.java b/src/test/java/org/springframework/data/querydsl/QPageRequestUnitTests.java index 5281bada0..915e7dba8 100755 --- a/src/test/java/org/springframework/data/querydsl/QPageRequestUnitTests.java +++ b/src/test/java/org/springframework/data/querydsl/QPageRequestUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2015 the original author or authors. + * Copyright 2013-2018 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. @@ -25,7 +25,7 @@ import org.springframework.data.domain.AbstractPageRequestUnitTests; * @author Thomas Darimont */ public class QPageRequestUnitTests extends AbstractPageRequestUnitTests { - /* + /* * (non-Javadoc) * @see org.springframework.data.domain.AbstractPageRequestUnitTests#newPageRequest(int, int) */ diff --git a/src/test/java/org/springframework/data/querydsl/QSortUnitTests.java b/src/test/java/org/springframework/data/querydsl/QSortUnitTests.java index e160bf9e6..f3039e247 100755 --- a/src/test/java/org/springframework/data/querydsl/QSortUnitTests.java +++ b/src/test/java/org/springframework/data/querydsl/QSortUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -34,7 +34,7 @@ import com.querydsl.core.types.dsl.StringPath; /** * Unit tests for {@link QSort}. - * + * * @author Thomas Darimont * @author Oliver Gierke * @author Christoph Strobl diff --git a/src/test/java/org/springframework/data/querydsl/QuerydslRepositoryInvokerAdapterUnitTests.java b/src/test/java/org/springframework/data/querydsl/QuerydslRepositoryInvokerAdapterUnitTests.java index b61fd8e62..6bf90fe92 100755 --- a/src/test/java/org/springframework/data/querydsl/QuerydslRepositoryInvokerAdapterUnitTests.java +++ b/src/test/java/org/springframework/data/querydsl/QuerydslRepositoryInvokerAdapterUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -32,7 +32,7 @@ import com.querydsl.core.types.Predicate; /** * Unit tests for {@link QuerydslRepositoryInvokerAdapter}. - * + * * @author Oliver Gierke * @soundtrack Emilie Nicolas - Grown Up */ diff --git a/src/test/java/org/springframework/data/querydsl/QuerydslUtilsUnitTests.java b/src/test/java/org/springframework/data/querydsl/QuerydslUtilsUnitTests.java index aa8070397..cba96cad2 100755 --- a/src/test/java/org/springframework/data/querydsl/QuerydslUtilsUnitTests.java +++ b/src/test/java/org/springframework/data/querydsl/QuerydslUtilsUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/test/java/org/springframework/data/querydsl/SimpleEntityPathResolverUnitTests.java b/src/test/java/org/springframework/data/querydsl/SimpleEntityPathResolverUnitTests.java index e45ce2dd7..276c3a93c 100755 --- a/src/test/java/org/springframework/data/querydsl/SimpleEntityPathResolverUnitTests.java +++ b/src/test/java/org/springframework/data/querydsl/SimpleEntityPathResolverUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2015 the original author or authors. + * Copyright 2011-2018 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. @@ -23,7 +23,7 @@ import com.querydsl.core.annotations.QueryEntity; /** * Unit test for {@link SimpleEntityPathResolver}. - * + * * @author Oliver Gierke */ public class SimpleEntityPathResolverUnitTests { diff --git a/src/test/java/org/springframework/data/querydsl/User.java b/src/test/java/org/springframework/data/querydsl/User.java index 3a4d63bcf..a83ad8592 100644 --- a/src/test/java/org/springframework/data/querydsl/User.java +++ b/src/test/java/org/springframework/data/querydsl/User.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2016 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/test/java/org/springframework/data/querydsl/Users.java b/src/test/java/org/springframework/data/querydsl/Users.java index 56c1a9f2c..f09648829 100644 --- a/src/test/java/org/springframework/data/querydsl/Users.java +++ b/src/test/java/org/springframework/data/querydsl/Users.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2015-2018 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. diff --git a/src/test/java/org/springframework/data/querydsl/binding/QuerydslBindingsFactoryUnitTests.java b/src/test/java/org/springframework/data/querydsl/binding/QuerydslBindingsFactoryUnitTests.java index 58fcf0ffe..7c1601e8b 100755 --- a/src/test/java/org/springframework/data/querydsl/binding/QuerydslBindingsFactoryUnitTests.java +++ b/src/test/java/org/springframework/data/querydsl/binding/QuerydslBindingsFactoryUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -38,7 +38,7 @@ import com.querydsl.core.types.Predicate; /** * Unit tests for {@link QuerydslBindingsFactory}. - * + * * @author Oliver Gierke * @soundtrack Miles Davis - All Blues (Kind of Blue) */ diff --git a/src/test/java/org/springframework/data/querydsl/binding/QuerydslBindingsUnitTests.java b/src/test/java/org/springframework/data/querydsl/binding/QuerydslBindingsUnitTests.java index 42cc5bdce..90caf56c1 100755 --- a/src/test/java/org/springframework/data/querydsl/binding/QuerydslBindingsUnitTests.java +++ b/src/test/java/org/springframework/data/querydsl/binding/QuerydslBindingsUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -34,7 +34,7 @@ import com.querydsl.core.types.dsl.StringPath; /** * Unit tests for {@link QuerydslBindings}. - * + * * @author Oliver Gierke * @author Christoph Strobl */ diff --git a/src/test/java/org/springframework/data/querydsl/binding/QuerydslDefaultBindingUnitTests.java b/src/test/java/org/springframework/data/querydsl/binding/QuerydslDefaultBindingUnitTests.java index f114e8a2f..f8670feb7 100755 --- a/src/test/java/org/springframework/data/querydsl/binding/QuerydslDefaultBindingUnitTests.java +++ b/src/test/java/org/springframework/data/querydsl/binding/QuerydslDefaultBindingUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. diff --git a/src/test/java/org/springframework/data/querydsl/binding/QuerydslPredicateBuilderUnitTests.java b/src/test/java/org/springframework/data/querydsl/binding/QuerydslPredicateBuilderUnitTests.java index fb759ffdb..397749d58 100755 --- a/src/test/java/org/springframework/data/querydsl/binding/QuerydslPredicateBuilderUnitTests.java +++ b/src/test/java/org/springframework/data/querydsl/binding/QuerydslPredicateBuilderUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -44,7 +44,7 @@ import com.querydsl.core.types.Predicate; /** * Unit tests for {@link QuerydslPredicateBuilder}. - * + * * @author Christoph Strobl * @author Oliver Gierke */ diff --git a/src/test/java/org/springframework/data/repository/cdi/AnotherRepository.java b/src/test/java/org/springframework/data/repository/cdi/AnotherRepository.java index feeeda0c6..a4823d40f 100644 --- a/src/test/java/org/springframework/data/repository/cdi/AnotherRepository.java +++ b/src/test/java/org/springframework/data/repository/cdi/AnotherRepository.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 the original author or authors. + * Copyright 2014-2018 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. diff --git a/src/test/java/org/springframework/data/repository/cdi/AnotherRepositoryCustom.java b/src/test/java/org/springframework/data/repository/cdi/AnotherRepositoryCustom.java index 1c50e68d0..874e8a534 100644 --- a/src/test/java/org/springframework/data/repository/cdi/AnotherRepositoryCustom.java +++ b/src/test/java/org/springframework/data/repository/cdi/AnotherRepositoryCustom.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 the original author or authors. + * Copyright 2014-2018 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. diff --git a/src/test/java/org/springframework/data/repository/cdi/AnotherRepositoryImpl.java b/src/test/java/org/springframework/data/repository/cdi/AnotherRepositoryImpl.java index e8a0448f8..33e5075f4 100644 --- a/src/test/java/org/springframework/data/repository/cdi/AnotherRepositoryImpl.java +++ b/src/test/java/org/springframework/data/repository/cdi/AnotherRepositoryImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 the original author or authors. + * Copyright 2014-2018 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. diff --git a/src/test/java/org/springframework/data/repository/cdi/CdiRepositoryBeanUnitTests.java b/src/test/java/org/springframework/data/repository/cdi/CdiRepositoryBeanUnitTests.java index e9f31090e..c2abd7115 100755 --- a/src/test/java/org/springframework/data/repository/cdi/CdiRepositoryBeanUnitTests.java +++ b/src/test/java/org/springframework/data/repository/cdi/CdiRepositoryBeanUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -42,7 +42,7 @@ import org.springframework.data.repository.config.CustomRepositoryImplementation /** * Unit tests for {@link CdiRepositoryBean}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/src/test/java/org/springframework/data/repository/cdi/CdiRepositoryExtensionSupportIntegrationTests.java b/src/test/java/org/springframework/data/repository/cdi/CdiRepositoryExtensionSupportIntegrationTests.java index 85fe7bad3..459b154c6 100755 --- a/src/test/java/org/springframework/data/repository/cdi/CdiRepositoryExtensionSupportIntegrationTests.java +++ b/src/test/java/org/springframework/data/repository/cdi/CdiRepositoryExtensionSupportIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -21,7 +21,7 @@ import org.junit.Test; /** * Common integration tests for Spring Data repository CDI extension. - * + * * @author Oliver Gierke */ public abstract class CdiRepositoryExtensionSupportIntegrationTests { diff --git a/src/test/java/org/springframework/data/repository/cdi/DummyCdiExtension.java b/src/test/java/org/springframework/data/repository/cdi/DummyCdiExtension.java index 473a38693..fd681dde5 100644 --- a/src/test/java/org/springframework/data/repository/cdi/DummyCdiExtension.java +++ b/src/test/java/org/springframework/data/repository/cdi/DummyCdiExtension.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2014 the original author or authors. + * Copyright 2011-2018 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. @@ -38,7 +38,7 @@ import org.springframework.data.repository.config.CustomRepositoryImplementation /** * Dummy extension of {@link CdiRepositoryExtensionSupport} to allow integration tests. Will create mocks for repository * interfaces being found. - * + * * @author Oliver Gierke * @author Mark Paluch */ diff --git a/src/test/java/org/springframework/data/repository/cdi/RepositoryClient.java b/src/test/java/org/springframework/data/repository/cdi/RepositoryClient.java index fef98a289..1111a42c7 100644 --- a/src/test/java/org/springframework/data/repository/cdi/RepositoryClient.java +++ b/src/test/java/org/springframework/data/repository/cdi/RepositoryClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2011 the original author or authors. + * Copyright 2011-2018 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. @@ -18,7 +18,7 @@ package org.springframework.data.repository.cdi; import javax.inject.Inject; /** - * + * * @author Oliver Gierke */ class RepositoryClient { diff --git a/src/test/java/org/springframework/data/repository/cdi/SampleRepository.java b/src/test/java/org/springframework/data/repository/cdi/SampleRepository.java index 1b3a9fd15..9f5296943 100644 --- a/src/test/java/org/springframework/data/repository/cdi/SampleRepository.java +++ b/src/test/java/org/springframework/data/repository/cdi/SampleRepository.java @@ -1,5 +1,5 @@ /* - * Copyright 2011 the original author or authors. + * Copyright 2011-2018 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. @@ -20,7 +20,7 @@ import java.io.Serializable; import org.springframework.data.repository.Repository; /** - * + * * @author Oliver Gierke */ public interface SampleRepository extends Repository { diff --git a/src/test/java/org/springframework/data/repository/cdi/StereotypeAnnotation.java b/src/test/java/org/springframework/data/repository/cdi/StereotypeAnnotation.java index 10d448aff..f4a3a75e8 100644 --- a/src/test/java/org/springframework/data/repository/cdi/StereotypeAnnotation.java +++ b/src/test/java/org/springframework/data/repository/cdi/StereotypeAnnotation.java @@ -1,5 +1,5 @@ /* - * Copyright 2011 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/test/java/org/springframework/data/repository/cdi/WebbeansCdiRepositoryExtensionSupportIntegrationTests.java b/src/test/java/org/springframework/data/repository/cdi/WebbeansCdiRepositoryExtensionSupportIntegrationTests.java index 9e3b3f85f..9f74d7e78 100755 --- a/src/test/java/org/springframework/data/repository/cdi/WebbeansCdiRepositoryExtensionSupportIntegrationTests.java +++ b/src/test/java/org/springframework/data/repository/cdi/WebbeansCdiRepositoryExtensionSupportIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/AnnotationRepositoryConfigurationSourceUnitTests.java b/src/test/java/org/springframework/data/repository/config/AnnotationRepositoryConfigurationSourceUnitTests.java index 2e620cd03..259c46a45 100755 --- a/src/test/java/org/springframework/data/repository/config/AnnotationRepositoryConfigurationSourceUnitTests.java +++ b/src/test/java/org/springframework/data/repository/config/AnnotationRepositoryConfigurationSourceUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/ComposedRepository.java b/src/test/java/org/springframework/data/repository/config/ComposedRepository.java index 31ac6683c..f745729f1 100644 --- a/src/test/java/org/springframework/data/repository/config/ComposedRepository.java +++ b/src/test/java/org/springframework/data/repository/config/ComposedRepository.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/CustomRepositoryImplementationDetectorUnitTests.java b/src/test/java/org/springframework/data/repository/config/CustomRepositoryImplementationDetectorUnitTests.java index e30a06dab..89641d89b 100644 --- a/src/test/java/org/springframework/data/repository/config/CustomRepositoryImplementationDetectorUnitTests.java +++ b/src/test/java/org/springframework/data/repository/config/CustomRepositoryImplementationDetectorUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/DefaultRepositoryConfigurationUnitTests.java b/src/test/java/org/springframework/data/repository/config/DefaultRepositoryConfigurationUnitTests.java index ba6be18bc..e67f15720 100755 --- a/src/test/java/org/springframework/data/repository/config/DefaultRepositoryConfigurationUnitTests.java +++ b/src/test/java/org/springframework/data/repository/config/DefaultRepositoryConfigurationUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -37,7 +37,7 @@ import org.springframework.data.repository.query.QueryLookupStrategy.Key; /** * Unit tests for {@link DefaultRepositoryConfiguration}. - * + * * @author Oliver Gierke * @author Jens Schauder * @author Mark Paluch diff --git a/src/test/java/org/springframework/data/repository/config/EnableRepositories.java b/src/test/java/org/springframework/data/repository/config/EnableRepositories.java index d6991138c..6d54eae95 100644 --- a/src/test/java/org/springframework/data/repository/config/EnableRepositories.java +++ b/src/test/java/org/springframework/data/repository/config/EnableRepositories.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/ExcludedRepository.java b/src/test/java/org/springframework/data/repository/config/ExcludedRepository.java index cee0b362d..4c8230a9d 100644 --- a/src/test/java/org/springframework/data/repository/config/ExcludedRepository.java +++ b/src/test/java/org/springframework/data/repository/config/ExcludedRepository.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/ExcludedRepositoryImpl.java b/src/test/java/org/springframework/data/repository/config/ExcludedRepositoryImpl.java index dfff64da1..d8934c63c 100644 --- a/src/test/java/org/springframework/data/repository/config/ExcludedRepositoryImpl.java +++ b/src/test/java/org/springframework/data/repository/config/ExcludedRepositoryImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/Mixin.java b/src/test/java/org/springframework/data/repository/config/Mixin.java index cc6a859e5..0836998ea 100644 --- a/src/test/java/org/springframework/data/repository/config/Mixin.java +++ b/src/test/java/org/springframework/data/repository/config/Mixin.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/MixinImpl.java b/src/test/java/org/springframework/data/repository/config/MixinImpl.java index 118f25913..fa632e529 100644 --- a/src/test/java/org/springframework/data/repository/config/MixinImpl.java +++ b/src/test/java/org/springframework/data/repository/config/MixinImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/MyOtherRepository.java b/src/test/java/org/springframework/data/repository/config/MyOtherRepository.java index c337e8d48..e4dc3c2b0 100644 --- a/src/test/java/org/springframework/data/repository/config/MyOtherRepository.java +++ b/src/test/java/org/springframework/data/repository/config/MyOtherRepository.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/MyOtherRepositoryExtensions.java b/src/test/java/org/springframework/data/repository/config/MyOtherRepositoryExtensions.java index 121bd2157..e88c6cd6d 100644 --- a/src/test/java/org/springframework/data/repository/config/MyOtherRepositoryExtensions.java +++ b/src/test/java/org/springframework/data/repository/config/MyOtherRepositoryExtensions.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/MyOtherRepositoryImpl.java b/src/test/java/org/springframework/data/repository/config/MyOtherRepositoryImpl.java index d0ef2f452..419654fa7 100644 --- a/src/test/java/org/springframework/data/repository/config/MyOtherRepositoryImpl.java +++ b/src/test/java/org/springframework/data/repository/config/MyOtherRepositoryImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/MyRepository.java b/src/test/java/org/springframework/data/repository/config/MyRepository.java index 368e2320c..118f2089a 100644 --- a/src/test/java/org/springframework/data/repository/config/MyRepository.java +++ b/src/test/java/org/springframework/data/repository/config/MyRepository.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/ProfileRepository.java b/src/test/java/org/springframework/data/repository/config/ProfileRepository.java index 98e762ff7..cd7462738 100644 --- a/src/test/java/org/springframework/data/repository/config/ProfileRepository.java +++ b/src/test/java/org/springframework/data/repository/config/ProfileRepository.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 the original author or authors. + * Copyright 2013-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/RepositoryBeanDefinitionRegistrarSupportIntegrationTests.java b/src/test/java/org/springframework/data/repository/config/RepositoryBeanDefinitionRegistrarSupportIntegrationTests.java index d818fb901..394170a75 100755 --- a/src/test/java/org/springframework/data/repository/config/RepositoryBeanDefinitionRegistrarSupportIntegrationTests.java +++ b/src/test/java/org/springframework/data/repository/config/RepositoryBeanDefinitionRegistrarSupportIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/RepositoryBeanDefinitionRegistrarSupportUnitTests.java b/src/test/java/org/springframework/data/repository/config/RepositoryBeanDefinitionRegistrarSupportUnitTests.java index 7ca0eb7fc..bbe34f47b 100755 --- a/src/test/java/org/springframework/data/repository/config/RepositoryBeanDefinitionRegistrarSupportUnitTests.java +++ b/src/test/java/org/springframework/data/repository/config/RepositoryBeanDefinitionRegistrarSupportUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/RepositoryBeanNameGeneratorUnitTests.java b/src/test/java/org/springframework/data/repository/config/RepositoryBeanNameGeneratorUnitTests.java index 26018f20d..9aca4aa6d 100755 --- a/src/test/java/org/springframework/data/repository/config/RepositoryBeanNameGeneratorUnitTests.java +++ b/src/test/java/org/springframework/data/repository/config/RepositoryBeanNameGeneratorUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2013 the original author or authors. + * Copyright 2012-2018 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. @@ -35,7 +35,7 @@ import org.springframework.data.repository.core.support.RepositoryFactoryBeanSup /** * Unit tests for {@link RepositoryBeanNameGenerator}. - * + * * @author Oliver Gierke * @author Jens Schauder */ diff --git a/src/test/java/org/springframework/data/repository/config/RepositoryComponentProviderUnitTests.java b/src/test/java/org/springframework/data/repository/config/RepositoryComponentProviderUnitTests.java index 088fb2668..d4968e7f2 100755 --- a/src/test/java/org/springframework/data/repository/config/RepositoryComponentProviderUnitTests.java +++ b/src/test/java/org/springframework/data/repository/config/RepositoryComponentProviderUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -35,7 +35,7 @@ import org.springframework.data.repository.sample.SampleAnnotatedRepository; /** * Unit tests for {@link RepositoryComponentProvider}. - * + * * @author Oliver Gierke * @author Thomas Darimont */ @@ -104,7 +104,7 @@ public class RepositoryComponentProviderUnitTests { return new BeanDefinitionOfTypeMatcher(expectedType); } - /* + /* * (non-Javadoc) * @see org.hamcrest.Matcher#matches(java.lang.Object) */ @@ -119,7 +119,7 @@ public class RepositoryComponentProviderUnitTests { return definition.getBeanClassName().equals(expectedType.getName()); } - /* + /* * (non-Javadoc) * @see org.hamcrest.SelfDescribing#describeTo(org.hamcrest.Description) */ diff --git a/src/test/java/org/springframework/data/repository/config/RepositoryConfigurationDelegateUnitTests.java b/src/test/java/org/springframework/data/repository/config/RepositoryConfigurationDelegateUnitTests.java index e1f02a2af..1ffef6723 100644 --- a/src/test/java/org/springframework/data/repository/config/RepositoryConfigurationDelegateUnitTests.java +++ b/src/test/java/org/springframework/data/repository/config/RepositoryConfigurationDelegateUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -31,7 +31,7 @@ import org.springframework.data.repository.sample.ProductRepository; /** * Unit tests for {@link RepositoryConfigurationDelegate}. - * + * * @author Oliver Gierke * @soundtrack Richard Spaven - Tribute (Whole Other*) */ diff --git a/src/test/java/org/springframework/data/repository/config/RepositoryConfigurationExtensionSupportUnitTests.java b/src/test/java/org/springframework/data/repository/config/RepositoryConfigurationExtensionSupportUnitTests.java index 32f3deea3..0c145573f 100755 --- a/src/test/java/org/springframework/data/repository/config/RepositoryConfigurationExtensionSupportUnitTests.java +++ b/src/test/java/org/springframework/data/repository/config/RepositoryConfigurationExtensionSupportUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -30,7 +30,7 @@ import org.springframework.data.repository.core.support.RepositoryFactorySupport /** * Unit tests for {@link RepositoryConfigurationExtensionSupport}. - * + * * @author Oliver Gierke */ public class RepositoryConfigurationExtensionSupportUnitTests { diff --git a/src/test/java/org/springframework/data/repository/config/RepositoryWithFragmentExclusion.java b/src/test/java/org/springframework/data/repository/config/RepositoryWithFragmentExclusion.java index 8b053ca29..7bde45e47 100644 --- a/src/test/java/org/springframework/data/repository/config/RepositoryWithFragmentExclusion.java +++ b/src/test/java/org/springframework/data/repository/config/RepositoryWithFragmentExclusion.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/ResourceReaderRepositoryPopulatorBeanDefinitionParserIntegrationTests.java b/src/test/java/org/springframework/data/repository/config/ResourceReaderRepositoryPopulatorBeanDefinitionParserIntegrationTests.java index fc33b58b3..b33aad7c6 100755 --- a/src/test/java/org/springframework/data/repository/config/ResourceReaderRepositoryPopulatorBeanDefinitionParserIntegrationTests.java +++ b/src/test/java/org/springframework/data/repository/config/ResourceReaderRepositoryPopulatorBeanDefinitionParserIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -33,7 +33,7 @@ import org.springframework.test.util.ReflectionTestUtils; /** * Integration tests for the initializer namespace elements. - * + * * @author Oliver Gierke * @author Thomas Darimont */ diff --git a/src/test/java/org/springframework/data/repository/config/SampleConfiguration.java b/src/test/java/org/springframework/data/repository/config/SampleConfiguration.java index df83b742e..42a7f45cf 100644 --- a/src/test/java/org/springframework/data/repository/config/SampleConfiguration.java +++ b/src/test/java/org/springframework/data/repository/config/SampleConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/SelectionSetUnitTests.java b/src/test/java/org/springframework/data/repository/config/SelectionSetUnitTests.java index 7e94b7fd4..72820b545 100644 --- a/src/test/java/org/springframework/data/repository/config/SelectionSetUnitTests.java +++ b/src/test/java/org/springframework/data/repository/config/SelectionSetUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/XmlRepositoryConfigurationSourceUnitTests.java b/src/test/java/org/springframework/data/repository/config/XmlRepositoryConfigurationSourceUnitTests.java index 0d974035c..c29ec57e0 100755 --- a/src/test/java/org/springframework/data/repository/config/XmlRepositoryConfigurationSourceUnitTests.java +++ b/src/test/java/org/springframework/data/repository/config/XmlRepositoryConfigurationSourceUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -27,7 +27,7 @@ import org.w3c.dom.Element; /** * Unit tests for {@link XmlRepositoryConfigurationSource}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/src/test/java/org/springframework/data/repository/config/basepackage/FragmentImpl.java b/src/test/java/org/springframework/data/repository/config/basepackage/FragmentImpl.java index b1dfb3a4a..5d9dc47b8 100644 --- a/src/test/java/org/springframework/data/repository/config/basepackage/FragmentImpl.java +++ b/src/test/java/org/springframework/data/repository/config/basepackage/FragmentImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/basepackage/repo/Fragment.java b/src/test/java/org/springframework/data/repository/config/basepackage/repo/Fragment.java index d4a35d861..c2c3a2e25 100644 --- a/src/test/java/org/springframework/data/repository/config/basepackage/repo/Fragment.java +++ b/src/test/java/org/springframework/data/repository/config/basepackage/repo/Fragment.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/basepackage/repo/PersonRepository.java b/src/test/java/org/springframework/data/repository/config/basepackage/repo/PersonRepository.java index f94996761..2a278ca19 100644 --- a/src/test/java/org/springframework/data/repository/config/basepackage/repo/PersonRepository.java +++ b/src/test/java/org/springframework/data/repository/config/basepackage/repo/PersonRepository.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/repository/config/excluded/MyOtherRepositoryImpl.java b/src/test/java/org/springframework/data/repository/config/excluded/MyOtherRepositoryImpl.java index 43b2553f2..5ccd4b4cd 100644 --- a/src/test/java/org/springframework/data/repository/config/excluded/MyOtherRepositoryImpl.java +++ b/src/test/java/org/springframework/data/repository/config/excluded/MyOtherRepositoryImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/repository/core/support/AbstractEntityInformationUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/AbstractEntityInformationUnitTests.java index 194a61a28..df5fee0c0 100755 --- a/src/test/java/org/springframework/data/repository/core/support/AbstractEntityInformationUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/AbstractEntityInformationUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/test/java/org/springframework/data/repository/core/support/AbstractRepositoryMetadataUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/AbstractRepositoryMetadataUnitTests.java index c1eb5b1a9..afcf85504 100755 --- a/src/test/java/org/springframework/data/repository/core/support/AbstractRepositoryMetadataUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/AbstractRepositoryMetadataUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -33,7 +33,7 @@ import org.springframework.data.repository.core.RepositoryMetadata; /** * Unit tests for {@link AbstractRepositoryMetadata}. - * + * * @author Oliver Gierke * @author Thomas Darimont * @author Fabian Buch diff --git a/src/test/java/org/springframework/data/repository/core/support/AnnotationRepositoryMetadataUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/AnnotationRepositoryMetadataUnitTests.java index 1383487a8..4db578538 100755 --- a/src/test/java/org/springframework/data/repository/core/support/AnnotationRepositoryMetadataUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/AnnotationRepositoryMetadataUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011 the original author or authors. + * Copyright 2011-2018 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. @@ -23,7 +23,7 @@ import org.springframework.data.repository.core.RepositoryMetadata; /** * Unit tests for {@link DefaultRepositoryMetadata}. - * + * * @author Oliver Gierke */ public class AnnotationRepositoryMetadataUnitTests { diff --git a/src/test/java/org/springframework/data/repository/core/support/CustomAnnotationTransactionAttributeSourceUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/CustomAnnotationTransactionAttributeSourceUnitTests.java index 8089bc6b7..1995d3f11 100755 --- a/src/test/java/org/springframework/data/repository/core/support/CustomAnnotationTransactionAttributeSourceUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/CustomAnnotationTransactionAttributeSourceUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011 the original author or authors. + * Copyright 2011-2018 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. @@ -24,7 +24,7 @@ import org.springframework.transaction.interceptor.TransactionAttribute; /** * Unit tests for {@link CustomAnnotationTransactionAttributeSource}. - * + * * @author Oliver Gierke */ public class CustomAnnotationTransactionAttributeSourceUnitTests { @@ -44,7 +44,7 @@ public class CustomAnnotationTransactionAttributeSourceUnitTests { /** * Basic interface. - * + * * @author Oliver Gierke */ interface Foo { @@ -56,7 +56,7 @@ public class CustomAnnotationTransactionAttributeSourceUnitTests { /** * Implementation defining transaction configuration. - * + * * @author Oliver Gierke */ @Transactional(readOnly = true) @@ -74,7 +74,7 @@ public class CustomAnnotationTransactionAttributeSourceUnitTests { /** * Interface reconfiguring transactions. - * + * * @author Oliver Gierke */ interface Bar extends Foo { diff --git a/src/test/java/org/springframework/data/repository/core/support/DefaultCrudMethodsUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/DefaultCrudMethodsUnitTests.java index fe671788b..ae0f12d3e 100755 --- a/src/test/java/org/springframework/data/repository/core/support/DefaultCrudMethodsUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/DefaultCrudMethodsUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. diff --git a/src/test/java/org/springframework/data/repository/core/support/DefaultRepositoryInformationUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/DefaultRepositoryInformationUnitTests.java index d53f905b5..05418e5e7 100755 --- a/src/test/java/org/springframework/data/repository/core/support/DefaultRepositoryInformationUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/DefaultRepositoryInformationUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. diff --git a/src/test/java/org/springframework/data/repository/core/support/DefaultRepositoryMetadataUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/DefaultRepositoryMetadataUnitTests.java index ff48ed73b..cd666eb73 100755 --- a/src/test/java/org/springframework/data/repository/core/support/DefaultRepositoryMetadataUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/DefaultRepositoryMetadataUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -33,7 +33,7 @@ import com.google.common.base.Optional; /** * Unit tests for {@link DefaultRepositoryMetadata}. - * + * * @author Oliver Gierke * @author Thomas Darimont */ @@ -145,7 +145,7 @@ public class DefaultRepositoryMetadataUnitTests { *
    • Check that {@link ClassUtils#getDomainClass(Class)} skips non {@link GenericDao} interfaces
    • *
    • Check that {@link ClassUtils#getDomainClass(Class)} traverses interface hierarchy
    • * - * + * * @author Oliver Gierke */ private interface SomeDao extends Serializable, UserRepository { @@ -155,7 +155,7 @@ public class DefaultRepositoryMetadataUnitTests { /** * Sample interface to test recursive lookup of domain class. - * + * * @author Oliver Gierke */ static interface ExtensionOfUserCustomExtendedDao extends UserCustomExtendedRepository { @@ -175,7 +175,7 @@ public class DefaultRepositoryMetadataUnitTests { /** * Helper class to reproduce #256. - * + * * @author Oliver Gierke */ static class GenericEntity {} diff --git a/src/test/java/org/springframework/data/repository/core/support/DummyEntityInformation.java b/src/test/java/org/springframework/data/repository/core/support/DummyEntityInformation.java index bd9f6399e..28ce40cc7 100644 --- a/src/test/java/org/springframework/data/repository/core/support/DummyEntityInformation.java +++ b/src/test/java/org/springframework/data/repository/core/support/DummyEntityInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/test/java/org/springframework/data/repository/core/support/DummyRepositoryFactory.java b/src/test/java/org/springframework/data/repository/core/support/DummyRepositoryFactory.java index 3e2bd725b..f8a23c0b3 100644 --- a/src/test/java/org/springframework/data/repository/core/support/DummyRepositoryFactory.java +++ b/src/test/java/org/springframework/data/repository/core/support/DummyRepositoryFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2014 the original author or authors. + * Copyright 2012-2018 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. @@ -86,7 +86,7 @@ public class DummyRepositoryFactory extends RepositoryFactorySupport { return repository.getClass(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.support.RepositoryFactorySupport#getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key, org.springframework.data.repository.query.EvaluationContextProvider) */ @@ -96,7 +96,7 @@ public class DummyRepositoryFactory extends RepositoryFactorySupport { return Optional.of(strategy); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.support.RepositoryFactorySupport#getRepositoryFragments(org.springframework.data.repository.core.RepositoryMetadata) */ diff --git a/src/test/java/org/springframework/data/repository/core/support/DummyRepositoryFactoryBean.java b/src/test/java/org/springframework/data/repository/core/support/DummyRepositoryFactoryBean.java index 10f7fff6c..9101d4b74 100644 --- a/src/test/java/org/springframework/data/repository/core/support/DummyRepositoryFactoryBean.java +++ b/src/test/java/org/springframework/data/repository/core/support/DummyRepositoryFactoryBean.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2016 the original author or authors. + * Copyright 2012-2018 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. @@ -38,7 +38,7 @@ public class DummyRepositoryFactoryBean, S, ID exten setMappingContext(new SampleMappingContext()); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport#createRepositoryFactory() */ diff --git a/src/test/java/org/springframework/data/repository/core/support/DummyRepositoryInformation.java b/src/test/java/org/springframework/data/repository/core/support/DummyRepositoryInformation.java index 23b9755e9..d4106d0a6 100644 --- a/src/test/java/org/springframework/data/repository/core/support/DummyRepositoryInformation.java +++ b/src/test/java/org/springframework/data/repository/core/support/DummyRepositoryInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2013 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/test/java/org/springframework/data/repository/core/support/EventPublishingRepositoryProxyPostProcessorUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/EventPublishingRepositoryProxyPostProcessorUnitTests.java index 8fb8da899..3a7791a3e 100644 --- a/src/test/java/org/springframework/data/repository/core/support/EventPublishingRepositoryProxyPostProcessorUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/EventPublishingRepositoryProxyPostProcessorUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -46,7 +46,7 @@ import org.springframework.data.repository.core.support.EventPublishingRepositor /** * Unit tests for {@link EventPublishingRepositoryProxyPostProcessor} and contained classes. - * + * * @author Oliver Gierke * @author Mark Paluch * @author Yuki Yoshida diff --git a/src/test/java/org/springframework/data/repository/core/support/ExampleSpecificationAccessorUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/ExampleSpecificationAccessorUnitTests.java index be6c217a8..098efb335 100755 --- a/src/test/java/org/springframework/data/repository/core/support/ExampleSpecificationAccessorUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/ExampleSpecificationAccessorUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -30,7 +30,7 @@ import org.springframework.data.support.ExampleMatcherAccessor; /** * Unit tests for {@link ExampleMatcherAccessor}. - * + * * @author Oliver Gierke * @author Mark Paluch * @soundtrack Ron Spielman Trio - Fretboard Highway (Electric Tales) diff --git a/src/test/java/org/springframework/data/repository/core/support/PersistableEntityInformationUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/PersistableEntityInformationUnitTests.java index 371811356..5f1dab1f9 100755 --- a/src/test/java/org/springframework/data/repository/core/support/PersistableEntityInformationUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/PersistableEntityInformationUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/test/java/org/springframework/data/repository/core/support/PersistenceExceptionTranslationRepositoryProxyPostProcessorUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/PersistenceExceptionTranslationRepositoryProxyPostProcessorUnitTests.java index 43533d747..922c05de1 100755 --- a/src/test/java/org/springframework/data/repository/core/support/PersistenceExceptionTranslationRepositoryProxyPostProcessorUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/PersistenceExceptionTranslationRepositoryProxyPostProcessorUnitTests.java @@ -1,12 +1,12 @@ /* - * Copyright 2013-2017 the original author or authors. - * + * Copyright 2013-2018 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. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -27,7 +27,7 @@ import org.springframework.dao.support.PersistenceExceptionTranslationIntercepto /** * Unit test for {@link TransactionalRepositoryProxyPostProcessor}. - * + * * @author Oliver Gierke * @since 1.6 */ diff --git a/src/test/java/org/springframework/data/repository/core/support/PersistentEntityInformationUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/PersistentEntityInformationUnitTests.java index 79daef771..1a9922327 100755 --- a/src/test/java/org/springframework/data/repository/core/support/PersistentEntityInformationUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/PersistentEntityInformationUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. diff --git a/src/test/java/org/springframework/data/repository/core/support/QueryExecutionResultHandlerUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/QueryExecutionResultHandlerUnitTests.java index c615ea3a7..403f91df3 100755 --- a/src/test/java/org/springframework/data/repository/core/support/QueryExecutionResultHandlerUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/QueryExecutionResultHandlerUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. diff --git a/src/test/java/org/springframework/data/repository/core/support/QueryExecutorMethodInterceptorUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/QueryExecutorMethodInterceptorUnitTests.java index 2e685e2ea..03a272708 100755 --- a/src/test/java/org/springframework/data/repository/core/support/QueryExecutorMethodInterceptorUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/QueryExecutorMethodInterceptorUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2016 the original author or authors. + * Copyright 2011-2018 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. @@ -30,7 +30,7 @@ import org.springframework.data.util.Streamable; /** * Unit test for {@link QueryExecuterMethodInterceptor}. - * + * * @author Oliver Gierke * @author Mark Paluch * @author Jens Schauder diff --git a/src/test/java/org/springframework/data/repository/core/support/ReactiveRepositoryInformationUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/ReactiveRepositoryInformationUnitTests.java index 9c5d66e81..c5d678059 100644 --- a/src/test/java/org/springframework/data/repository/core/support/ReactiveRepositoryInformationUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/ReactiveRepositoryInformationUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/test/java/org/springframework/data/repository/core/support/ReactiveWrapperRepositoryFactorySupportUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/ReactiveWrapperRepositoryFactorySupportUnitTests.java index 4af3a9b86..829363830 100644 --- a/src/test/java/org/springframework/data/repository/core/support/ReactiveWrapperRepositoryFactorySupportUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/ReactiveWrapperRepositoryFactorySupportUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/test/java/org/springframework/data/repository/core/support/ReflectionEntityInformationUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/ReflectionEntityInformationUnitTests.java index 95aed9f48..481a2d631 100755 --- a/src/test/java/org/springframework/data/repository/core/support/ReflectionEntityInformationUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/ReflectionEntityInformationUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may @@ -27,7 +27,7 @@ import org.springframework.data.repository.core.EntityInformation; /** * Unit tests for {@link ReflectionEntityInformation}. - * + * * @author Oliver Gierke */ public class ReflectionEntityInformationUnitTests { diff --git a/src/test/java/org/springframework/data/repository/core/support/RepositoryCompositionUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/RepositoryCompositionUnitTests.java index aca75526c..1670f8934 100644 --- a/src/test/java/org/springframework/data/repository/core/support/RepositoryCompositionUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/RepositoryCompositionUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/repository/core/support/RepositoryFactoryBeanSupportUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/RepositoryFactoryBeanSupportUnitTests.java index c6359ae01..0aeb77072 100755 --- a/src/test/java/org/springframework/data/repository/core/support/RepositoryFactoryBeanSupportUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/RepositoryFactoryBeanSupportUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -28,7 +28,7 @@ import org.springframework.test.util.ReflectionTestUtils; /** * Unit tests for {@link RepositoryFactoryBeanSupport}. - * + * * @author Oliver Gierke * @author Thomas Darimont */ diff --git a/src/test/java/org/springframework/data/repository/core/support/RepositoryFactorySupportUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/RepositoryFactorySupportUnitTests.java index 60a7c7dd1..791f93c59 100755 --- a/src/test/java/org/springframework/data/repository/core/support/RepositoryFactorySupportUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/RepositoryFactorySupportUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/test/java/org/springframework/data/repository/core/support/SurroundingTransactionDetectorMethodInterceptorUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/SurroundingTransactionDetectorMethodInterceptorUnitTests.java index 37d866d8f..e41968184 100644 --- a/src/test/java/org/springframework/data/repository/core/support/SurroundingTransactionDetectorMethodInterceptorUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/SurroundingTransactionDetectorMethodInterceptorUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -25,7 +25,7 @@ import org.springframework.transaction.support.TransactionSynchronizationManager /** * Unit tests for {@link SurroundingTransactionDetectorMethodInterceptor}. - * + * * @author Oliver Gierke * @soundtrack Hendrik Freischlader Trio - Openness (Openness) */ diff --git a/src/test/java/org/springframework/data/repository/core/support/TransactionRepositoryFactoryBeanSupportUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/TransactionRepositoryFactoryBeanSupportUnitTests.java index 4e74c1080..29045c538 100755 --- a/src/test/java/org/springframework/data/repository/core/support/TransactionRepositoryFactoryBeanSupportUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/TransactionRepositoryFactoryBeanSupportUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -29,7 +29,7 @@ import org.springframework.transaction.interceptor.TransactionInterceptor; /** * Unit tests for {@link TransactionalRepositoryFactoryBeanSupport}. - * + * * @author Oliver Gierke * @soundtrack The Intersphere - Live in Mannheim */ diff --git a/src/test/java/org/springframework/data/repository/core/support/TransactionRepositoryProxyPostProcessorUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/TransactionRepositoryProxyPostProcessorUnitTests.java index 3f665fe4f..6920a0d5c 100755 --- a/src/test/java/org/springframework/data/repository/core/support/TransactionRepositoryProxyPostProcessorUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/TransactionRepositoryProxyPostProcessorUnitTests.java @@ -1,12 +1,12 @@ /* - * Copyright 2008-2017 the original author or authors. - * + * Copyright 2008-2018 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. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -38,7 +38,7 @@ import org.springframework.transaction.interceptor.TransactionInterceptor; /** * Unit test for {@link TransactionalRepositoryProxyPostProcessor}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/src/test/java/org/springframework/data/repository/init/Jackson2ResourceReaderIntegrationTests.java b/src/test/java/org/springframework/data/repository/init/Jackson2ResourceReaderIntegrationTests.java index 6f429767e..d71c9e719 100755 --- a/src/test/java/org/springframework/data/repository/init/Jackson2ResourceReaderIntegrationTests.java +++ b/src/test/java/org/springframework/data/repository/init/Jackson2ResourceReaderIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 the original author or authors. + * Copyright 2013-2018 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. @@ -24,7 +24,7 @@ import org.springframework.core.io.ClassPathResource; /** * Integration tests for {@link JacksonResourceReader}. - * + * * @author Oliver Gierke * @since 1.6 */ diff --git a/src/test/java/org/springframework/data/repository/init/Person.java b/src/test/java/org/springframework/data/repository/init/Person.java index b17d8afd9..1730114c6 100644 --- a/src/test/java/org/springframework/data/repository/init/Person.java +++ b/src/test/java/org/springframework/data/repository/init/Person.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. diff --git a/src/test/java/org/springframework/data/repository/init/ResourceReaderRepositoryInitializerUnitTests.java b/src/test/java/org/springframework/data/repository/init/ResourceReaderRepositoryInitializerUnitTests.java index 91a42dd27..857700250 100755 --- a/src/test/java/org/springframework/data/repository/init/ResourceReaderRepositoryInitializerUnitTests.java +++ b/src/test/java/org/springframework/data/repository/init/ResourceReaderRepositoryInitializerUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -39,7 +39,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; /** * Unit tests for {@link UnmarshallingRepositoryInitializer}. - * + * * @author Oliver Gierke */ @RunWith(SpringJUnit4ClassRunner.class) diff --git a/src/test/java/org/springframework/data/repository/query/EvaluationContextExtensionInformationUnitTests.java b/src/test/java/org/springframework/data/repository/query/EvaluationContextExtensionInformationUnitTests.java index 0c912ef6c..81cc8ce90 100644 --- a/src/test/java/org/springframework/data/repository/query/EvaluationContextExtensionInformationUnitTests.java +++ b/src/test/java/org/springframework/data/repository/query/EvaluationContextExtensionInformationUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. @@ -22,7 +22,7 @@ import org.springframework.data.repository.query.spi.EvaluationContextExtension; /** * Unit tests for {@link EvaluationContextExtensionInformation}. - * + * * @author Oliver Gierke */ public class EvaluationContextExtensionInformationUnitTests { diff --git a/src/test/java/org/springframework/data/repository/query/ExtensionAwareEvaluationContextProviderUnitTests.java b/src/test/java/org/springframework/data/repository/query/ExtensionAwareEvaluationContextProviderUnitTests.java index 87b82a7a9..209d93582 100755 --- a/src/test/java/org/springframework/data/repository/query/ExtensionAwareEvaluationContextProviderUnitTests.java +++ b/src/test/java/org/springframework/data/repository/query/ExtensionAwareEvaluationContextProviderUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -43,7 +43,7 @@ import org.springframework.expression.spel.standard.SpelExpressionParser; /** * Unit tests {@link ExtensionAwareEvaluationContextProvider}. - * + * * @author Oliver Gierke * @author Thomas Darimont * @author Jens Schauder @@ -299,7 +299,7 @@ public class ExtensionAwareEvaluationContextProviderUnitTests { return key; } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.query.EvaluationContextExtensionAdapter#getProperties() */ @@ -313,7 +313,7 @@ public class ExtensionAwareEvaluationContextProviderUnitTests { return properties; } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.query.spi.EvaluationContextExtensionSupport#getFunctions() */ diff --git a/src/test/java/org/springframework/data/repository/query/ParameterUnitTests.java b/src/test/java/org/springframework/data/repository/query/ParameterUnitTests.java index f36517e2a..4cab6eca9 100644 --- a/src/test/java/org/springframework/data/repository/query/ParameterUnitTests.java +++ b/src/test/java/org/springframework/data/repository/query/ParameterUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/repository/query/ParametersParameterAccessorUnitTests.java b/src/test/java/org/springframework/data/repository/query/ParametersParameterAccessorUnitTests.java index 4a9b8d547..6fb1115df 100755 --- a/src/test/java/org/springframework/data/repository/query/ParametersParameterAccessorUnitTests.java +++ b/src/test/java/org/springframework/data/repository/query/ParametersParameterAccessorUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. @@ -27,7 +27,7 @@ import org.springframework.data.domain.Pageable; /** * Unit tests for {@link ParametersParameterAccessor}. - * + * * @author Oliver Gierke */ public class ParametersParameterAccessorUnitTests { diff --git a/src/test/java/org/springframework/data/repository/query/ParametersUnitTests.java b/src/test/java/org/springframework/data/repository/query/ParametersUnitTests.java index 9a25c66f5..8f53c07b8 100755 --- a/src/test/java/org/springframework/data/repository/query/ParametersUnitTests.java +++ b/src/test/java/org/springframework/data/repository/query/ParametersUnitTests.java @@ -1,12 +1,12 @@ /* - * Copyright 2008-2017 the original author or authors. - * + * Copyright 2008-2018 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. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -31,7 +31,7 @@ import org.springframework.test.util.ReflectionTestUtils; /** * Unit test for {@link Parameters}. - * + * * @author Oliver Gierke * @author Mark Paluch */ diff --git a/src/test/java/org/springframework/data/repository/query/QueryMethodUnitTests.java b/src/test/java/org/springframework/data/repository/query/QueryMethodUnitTests.java index 32f7c2b31..94caea045 100755 --- a/src/test/java/org/springframework/data/repository/query/QueryMethodUnitTests.java +++ b/src/test/java/org/springframework/data/repository/query/QueryMethodUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. @@ -43,7 +43,7 @@ import org.springframework.data.util.Version; /** * Unit tests for {@link QueryMethod}. - * + * * @author Oliver Gierke * @author Thomas Darimont * @author Maciek Opała diff --git a/src/test/java/org/springframework/data/repository/query/ResultProcessorUnitTests.java b/src/test/java/org/springframework/data/repository/query/ResultProcessorUnitTests.java index 24100db4a..b73386fad 100755 --- a/src/test/java/org/springframework/data/repository/query/ResultProcessorUnitTests.java +++ b/src/test/java/org/springframework/data/repository/query/ResultProcessorUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -46,7 +46,7 @@ import org.springframework.data.repository.core.support.DefaultRepositoryMetadat /** * Unit tests for {@link ResultProcessor}. - * + * * @author Oliver Gierke * @author Mark Paluch * @author Christoph Strobl diff --git a/src/test/java/org/springframework/data/repository/query/ReturnedTypeUnitTests.java b/src/test/java/org/springframework/data/repository/query/ReturnedTypeUnitTests.java index 43fe37498..6fa05f80c 100755 --- a/src/test/java/org/springframework/data/repository/query/ReturnedTypeUnitTests.java +++ b/src/test/java/org/springframework/data/repository/query/ReturnedTypeUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -32,7 +32,7 @@ import org.springframework.data.repository.core.support.DefaultRepositoryMetadat /** * Unit tests for {@link ReturnedType}. - * + * * @author Oliver Gierke * @author Mark Paluch */ diff --git a/src/test/java/org/springframework/data/repository/query/SimpleParameterAccessorUnitTests.java b/src/test/java/org/springframework/data/repository/query/SimpleParameterAccessorUnitTests.java index f73479a40..c73e1d8a9 100755 --- a/src/test/java/org/springframework/data/repository/query/SimpleParameterAccessorUnitTests.java +++ b/src/test/java/org/springframework/data/repository/query/SimpleParameterAccessorUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2013 the original author or authors. + * Copyright 2008-2018 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. @@ -25,7 +25,7 @@ import org.springframework.data.domain.Sort; /** * Unit tests for {@link ParametersParameterAccessor}. - * + * * @author Oliver Gierke */ public class SimpleParameterAccessorUnitTests { diff --git a/src/test/java/org/springframework/data/repository/query/parser/OrderBySourceUnitTests.java b/src/test/java/org/springframework/data/repository/query/parser/OrderBySourceUnitTests.java index c3bd738ed..a4356c5e8 100755 --- a/src/test/java/org/springframework/data/repository/query/parser/OrderBySourceUnitTests.java +++ b/src/test/java/org/springframework/data/repository/query/parser/OrderBySourceUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. @@ -24,7 +24,7 @@ import org.springframework.data.domain.Sort; /** * Unit test for {@link OrderBySource}. - * + * * @author Oliver Gierke */ public class OrderBySourceUnitTests { diff --git a/src/test/java/org/springframework/data/repository/query/parser/PartTreeUnitTests.java b/src/test/java/org/springframework/data/repository/query/parser/PartTreeUnitTests.java index 423d082de..a7dc52701 100755 --- a/src/test/java/org/springframework/data/repository/query/parser/PartTreeUnitTests.java +++ b/src/test/java/org/springframework/data/repository/query/parser/PartTreeUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. You may obtain a copy of @@ -36,7 +36,7 @@ import org.springframework.data.repository.query.parser.PartTree.OrPart; /** * Unit tests for {@link PartTree}. - * + * * @author Oliver Gierke * @author Phillip Webb * @author Thomas Darimont diff --git a/src/test/java/org/springframework/data/repository/sample/SampleAnnotatedRepository.java b/src/test/java/org/springframework/data/repository/sample/SampleAnnotatedRepository.java index 37d897b8a..bb0fd082c 100644 --- a/src/test/java/org/springframework/data/repository/sample/SampleAnnotatedRepository.java +++ b/src/test/java/org/springframework/data/repository/sample/SampleAnnotatedRepository.java @@ -1,5 +1,5 @@ /* - * Copyright 2011 the original author or authors. + * Copyright 2011-2018 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. @@ -21,7 +21,7 @@ import org.springframework.data.repository.RepositoryDefinition; /** * Sample interface for annotation based repository declaration. - * + * * @author Oliver Gierke */ @RepositoryDefinition(domainClass = Object.class, idClass = Serializable.class) diff --git a/src/test/java/org/springframework/data/repository/support/AnnotationAttributeUnitTests.java b/src/test/java/org/springframework/data/repository/support/AnnotationAttributeUnitTests.java index 0126e6820..2ebff469d 100755 --- a/src/test/java/org/springframework/data/repository/support/AnnotationAttributeUnitTests.java +++ b/src/test/java/org/springframework/data/repository/support/AnnotationAttributeUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -24,7 +24,7 @@ import org.springframework.stereotype.Component; /** * Unit tests for {@link AnnotationAttribute}. - * + * * @author Oliver Gierke */ public class AnnotationAttributeUnitTests { diff --git a/src/test/java/org/springframework/data/repository/support/CrudRepositoryInvokerUnitTests.java b/src/test/java/org/springframework/data/repository/support/CrudRepositoryInvokerUnitTests.java index b8b13e3d0..588536863 100755 --- a/src/test/java/org/springframework/data/repository/support/CrudRepositoryInvokerUnitTests.java +++ b/src/test/java/org/springframework/data/repository/support/CrudRepositoryInvokerUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -47,7 +47,7 @@ import org.springframework.format.support.DefaultFormattingConversionService; /** * Unit tests for {@link CrudRepositoryInvoker}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/src/test/java/org/springframework/data/repository/support/DefaultRepositoryInvokerFactoryIntegrationTests.java b/src/test/java/org/springframework/data/repository/support/DefaultRepositoryInvokerFactoryIntegrationTests.java index 24440e397..f1d8f9f9e 100755 --- a/src/test/java/org/springframework/data/repository/support/DefaultRepositoryInvokerFactoryIntegrationTests.java +++ b/src/test/java/org/springframework/data/repository/support/DefaultRepositoryInvokerFactoryIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -35,7 +35,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; /** * Integration tests for {@link DefaultRepositoryInvokerFactory}. - * + * * @author Oliver Gierke */ @RunWith(SpringJUnit4ClassRunner.class) diff --git a/src/test/java/org/springframework/data/repository/support/DomainClassConverterIntegrationTests.java b/src/test/java/org/springframework/data/repository/support/DomainClassConverterIntegrationTests.java index a070dd17b..6a6792465 100755 --- a/src/test/java/org/springframework/data/repository/support/DomainClassConverterIntegrationTests.java +++ b/src/test/java/org/springframework/data/repository/support/DomainClassConverterIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. @@ -39,7 +39,7 @@ import org.springframework.data.repository.core.support.RepositoryFactoryInforma /** * Integration test for {@link DomainClassConverter}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/src/test/java/org/springframework/data/repository/support/DomainClassConverterUnitTests.java b/src/test/java/org/springframework/data/repository/support/DomainClassConverterUnitTests.java index c10090a00..eba55d101 100755 --- a/src/test/java/org/springframework/data/repository/support/DomainClassConverterUnitTests.java +++ b/src/test/java/org/springframework/data/repository/support/DomainClassConverterUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. @@ -43,7 +43,7 @@ import org.springframework.web.bind.annotation.ModelAttribute; /** * Unit test for {@link DomainClassConverter}. - * + * * @author Oliver Gierke * @author Thomas Darimont */ diff --git a/src/test/java/org/springframework/data/repository/support/MethodParametersUnitTests.java b/src/test/java/org/springframework/data/repository/support/MethodParametersUnitTests.java index bd0c49e68..c2b015004 100755 --- a/src/test/java/org/springframework/data/repository/support/MethodParametersUnitTests.java +++ b/src/test/java/org/springframework/data/repository/support/MethodParametersUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2016 the original author or authors. + * Copyright 2013-2018 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. @@ -27,7 +27,7 @@ import org.springframework.core.MethodParameter; /** * Unit tests for {@link MethodParameters}. - * + * * @author Oliver Gierke */ public class MethodParametersUnitTests { diff --git a/src/test/java/org/springframework/data/repository/support/PageableExecutionUtilsUnitTests.java b/src/test/java/org/springframework/data/repository/support/PageableExecutionUtilsUnitTests.java index f5596ea88..8456baa15 100755 --- a/src/test/java/org/springframework/data/repository/support/PageableExecutionUtilsUnitTests.java +++ b/src/test/java/org/springframework/data/repository/support/PageableExecutionUtilsUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -32,7 +32,7 @@ import org.springframework.data.domain.Pageable; /** * Unit tests for {@link PageableExecutionUtils}. - * + * * @author Mark Paluch * @author Oliver Gierke */ diff --git a/src/test/java/org/springframework/data/repository/support/PaginginAndSortingRepositoryInvokerUnitTests.java b/src/test/java/org/springframework/data/repository/support/PaginginAndSortingRepositoryInvokerUnitTests.java index c25f4a3d1..fc332eeaa 100755 --- a/src/test/java/org/springframework/data/repository/support/PaginginAndSortingRepositoryInvokerUnitTests.java +++ b/src/test/java/org/springframework/data/repository/support/PaginginAndSortingRepositoryInvokerUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -35,7 +35,7 @@ import org.springframework.format.support.DefaultFormattingConversionService; /** * Unit tests for {@link PagingAndSortingRepositoryInvoker}. - * + * * @author Oliver Gierke */ public class PaginginAndSortingRepositoryInvokerUnitTests { diff --git a/src/test/java/org/springframework/data/repository/support/ReflectionRepositoryInvokerUnitTests.java b/src/test/java/org/springframework/data/repository/support/ReflectionRepositoryInvokerUnitTests.java index 15cdb4cee..3ca61f327 100755 --- a/src/test/java/org/springframework/data/repository/support/ReflectionRepositoryInvokerUnitTests.java +++ b/src/test/java/org/springframework/data/repository/support/ReflectionRepositoryInvokerUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -52,7 +52,7 @@ import org.springframework.util.MultiValueMap; /** * Integration tests for {@link ReflectionRepositoryInvoker}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/src/test/java/org/springframework/data/repository/support/RepositoriesIntegrationTests.java b/src/test/java/org/springframework/data/repository/support/RepositoriesIntegrationTests.java index cbd2cdc70..86da05ec7 100755 --- a/src/test/java/org/springframework/data/repository/support/RepositoriesIntegrationTests.java +++ b/src/test/java/org/springframework/data/repository/support/RepositoriesIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -30,7 +30,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; /** * Integration tests for {@link Repositories}. - * + * * @author Oliver Gierke * @author Thomas Darimont */ diff --git a/src/test/java/org/springframework/data/repository/support/RepositoriesUnitTests.java b/src/test/java/org/springframework/data/repository/support/RepositoriesUnitTests.java index 1e2ccf338..93a6fe6ee 100755 --- a/src/test/java/org/springframework/data/repository/support/RepositoriesUnitTests.java +++ b/src/test/java/org/springframework/data/repository/support/RepositoriesUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except @@ -51,7 +51,7 @@ import org.springframework.util.ClassUtils; /** * Unit tests for {@link Repositories}. - * + * * @author Oliver Gierke * @author Thomas Darimont */ @@ -220,7 +220,7 @@ public class RepositoriesUnitTests { } } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.support.DefaultRepositoryMetadata#getDomainType() */ @@ -229,7 +229,7 @@ public class RepositoriesUnitTests { return this.domainType; } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.support.AbstractRepositoryMetadata#getAlternativeDomainTypes() */ diff --git a/src/test/java/org/springframework/data/repository/support/RepositoryInvocationTestUtils.java b/src/test/java/org/springframework/data/repository/support/RepositoryInvocationTestUtils.java index b08aa949d..6b1526bf0 100644 --- a/src/test/java/org/springframework/data/repository/support/RepositoryInvocationTestUtils.java +++ b/src/test/java/org/springframework/data/repository/support/RepositoryInvocationTestUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 the original author or authors. + * Copyright 2014-2018 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. @@ -28,7 +28,7 @@ import org.springframework.aop.framework.ProxyFactory; /** * Utility methods to create {@link RepositoryInvoker} instances that get a verifying proxy attached so that the * invocation of a given target methods or type can be verified. - * + * * @author Oliver Gierke */ class RepositoryInvocationTestUtils { @@ -54,7 +54,7 @@ class RepositoryInvocationTestUtils { /** * {@link MethodInterceptor} to verify the invocation was triggered on the given type. - * + * * @author Oliver Gierke */ @SuppressWarnings("rawtypes") diff --git a/src/test/java/org/springframework/data/repository/util/ClassUtilsUnitTests.java b/src/test/java/org/springframework/data/repository/util/ClassUtilsUnitTests.java index 185636d91..909dd82e8 100755 --- a/src/test/java/org/springframework/data/repository/util/ClassUtilsUnitTests.java +++ b/src/test/java/org/springframework/data/repository/util/ClassUtilsUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 the original author or authors. + * Copyright 2008-2018 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. @@ -31,7 +31,7 @@ import org.springframework.scheduling.annotation.Async; /** * Unit test for {@link ClassUtils}. - * + * * @author Oliver Gierke */ public class ClassUtilsUnitTests { diff --git a/src/test/java/org/springframework/data/repository/util/QueryExecutionConvertersUnitTests.java b/src/test/java/org/springframework/data/repository/util/QueryExecutionConvertersUnitTests.java index 2460e7271..33ccd387a 100755 --- a/src/test/java/org/springframework/data/repository/util/QueryExecutionConvertersUnitTests.java +++ b/src/test/java/org/springframework/data/repository/util/QueryExecutionConvertersUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -49,7 +49,7 @@ import com.google.common.base.Optional; /** * Unit tests for {@link QueryExecutionConverters}. - * + * * @author Oliver Gierke * @author Mark Paluch * @author Maciek Opała diff --git a/src/test/java/org/springframework/data/repository/util/ReactiveWrapperConvertersUnitTests.java b/src/test/java/org/springframework/data/repository/util/ReactiveWrapperConvertersUnitTests.java index 52c0b5c63..58e725933 100644 --- a/src/test/java/org/springframework/data/repository/util/ReactiveWrapperConvertersUnitTests.java +++ b/src/test/java/org/springframework/data/repository/util/ReactiveWrapperConvertersUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -29,7 +29,7 @@ import rx.Single; /** * Unit tests for {@link ReactiveWrapperConverters}. - * + * * @author Mark Paluch */ public class ReactiveWrapperConvertersUnitTests { diff --git a/src/test/java/org/springframework/data/repository/util/ReactiveWrappersUnitTests.java b/src/test/java/org/springframework/data/repository/util/ReactiveWrappersUnitTests.java index 78c4ff548..94cd5ff34 100644 --- a/src/test/java/org/springframework/data/repository/util/ReactiveWrappersUnitTests.java +++ b/src/test/java/org/springframework/data/repository/util/ReactiveWrappersUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 the original author or authors. + * Copyright 2016-2018 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. @@ -28,11 +28,11 @@ import rx.Single; /** * Unit tests for {@link ReactiveWrappers}. - * + * * @author Mark Paluch */ public class ReactiveWrappersUnitTests { - + @Test // DATACMNS-836 public void isSingleLikeShouldReportCorrectNoTypes() { @@ -47,7 +47,7 @@ public class ReactiveWrappersUnitTests { assertThat(ReactiveWrappers.isNoValueType(Flowable.class)).isFalse(); assertThat(ReactiveWrappers.isNoValueType(io.reactivex.Observable.class)).isFalse(); } - + @Test // DATACMNS-836 public void isSingleLikeShouldReportCorrectSingleTypes() { diff --git a/src/test/java/org/springframework/data/support/CachingIsNewStrategyFactoryUnitTests.java b/src/test/java/org/springframework/data/support/CachingIsNewStrategyFactoryUnitTests.java index e8dfa36a3..2e1662cef 100755 --- a/src/test/java/org/springframework/data/support/CachingIsNewStrategyFactoryUnitTests.java +++ b/src/test/java/org/springframework/data/support/CachingIsNewStrategyFactoryUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. @@ -27,7 +27,7 @@ import org.mockito.junit.MockitoJUnitRunner; /** * Unit tests for {@link CachingIsNewStrategyFactory}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/src/test/java/org/springframework/data/support/PersistableIsNewStrategyUnitTests.java b/src/test/java/org/springframework/data/support/PersistableIsNewStrategyUnitTests.java index 1857bcadd..dc66b6ee5 100755 --- a/src/test/java/org/springframework/data/support/PersistableIsNewStrategyUnitTests.java +++ b/src/test/java/org/springframework/data/support/PersistableIsNewStrategyUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2018 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. @@ -22,7 +22,7 @@ import org.springframework.data.domain.Persistable; /** * Unit tests for {@link PersistableIsNewStrategy}. - * + * * @author Oliver Gierke */ public class PersistableIsNewStrategyUnitTests { diff --git a/src/test/java/org/springframework/data/transaction/ChainedTransactionManagerTests.java b/src/test/java/org/springframework/data/transaction/ChainedTransactionManagerTests.java index c8eb66da2..cce85f1a4 100755 --- a/src/test/java/org/springframework/data/transaction/ChainedTransactionManagerTests.java +++ b/src/test/java/org/springframework/data/transaction/ChainedTransactionManagerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2013 the original author or authors. + * Copyright 2011-2018 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. @@ -30,7 +30,7 @@ import org.springframework.transaction.support.DefaultTransactionDefinition; /** * Integration tests for {@link ChainedTransactionManager}. - * + * * @author Michael Hunger * @author Oliver Gierke * @since 1.6 diff --git a/src/test/java/org/springframework/data/util/AnnotatedTypeScannerUnitTests.java b/src/test/java/org/springframework/data/util/AnnotatedTypeScannerUnitTests.java index 578f46588..79b5c1f65 100755 --- a/src/test/java/org/springframework/data/util/AnnotatedTypeScannerUnitTests.java +++ b/src/test/java/org/springframework/data/util/AnnotatedTypeScannerUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -22,7 +22,7 @@ import org.springframework.data.annotation.Persistent; /** * Unit tests for {@link AnnotatedTypeScannerUnitTests}. - * + * * @author Oliver Gierke */ public class AnnotatedTypeScannerUnitTests { diff --git a/src/test/java/org/springframework/data/util/AnnotationDetectionFieldCallbackUnitTests.java b/src/test/java/org/springframework/data/util/AnnotationDetectionFieldCallbackUnitTests.java index 71a0230d6..62d1d3af8 100755 --- a/src/test/java/org/springframework/data/util/AnnotationDetectionFieldCallbackUnitTests.java +++ b/src/test/java/org/springframework/data/util/AnnotationDetectionFieldCallbackUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -25,7 +25,7 @@ import org.springframework.util.ReflectionUtils; /** * Unit tests for {@link AnnotationDetectionFieldCallback}. - * + * * @author Oliver Gierke */ public class AnnotationDetectionFieldCallbackUnitTests { diff --git a/src/test/java/org/springframework/data/util/AnnotationDetectionMethodCallbackUnitTests.java b/src/test/java/org/springframework/data/util/AnnotationDetectionMethodCallbackUnitTests.java index 4f28c4f87..02d420565 100755 --- a/src/test/java/org/springframework/data/util/AnnotationDetectionMethodCallbackUnitTests.java +++ b/src/test/java/org/springframework/data/util/AnnotationDetectionMethodCallbackUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -25,7 +25,7 @@ import org.springframework.util.ReflectionUtils; /** * Unit tests for {@link AnnotationDetectionMethodCallback}. - * + * * @author Oliver Gierke */ public class AnnotationDetectionMethodCallbackUnitTests { diff --git a/src/test/java/org/springframework/data/util/ClassTypeInformationUnitTests.java b/src/test/java/org/springframework/data/util/ClassTypeInformationUnitTests.java index c7e5bf3de..4181dc598 100755 --- a/src/test/java/org/springframework/data/util/ClassTypeInformationUnitTests.java +++ b/src/test/java/org/springframework/data/util/ClassTypeInformationUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/test/java/org/springframework/data/util/DataCmns511Tests.java b/src/test/java/org/springframework/data/util/DataCmns511Tests.java index b9abed9d8..0809d023f 100755 --- a/src/test/java/org/springframework/data/util/DataCmns511Tests.java +++ b/src/test/java/org/springframework/data/util/DataCmns511Tests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. diff --git a/src/test/java/org/springframework/data/util/DirectFieldAccessFallbackBeanWrapperUnitTests.java b/src/test/java/org/springframework/data/util/DirectFieldAccessFallbackBeanWrapperUnitTests.java index 65b676ee9..6f09e6d1b 100755 --- a/src/test/java/org/springframework/data/util/DirectFieldAccessFallbackBeanWrapperUnitTests.java +++ b/src/test/java/org/springframework/data/util/DirectFieldAccessFallbackBeanWrapperUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -24,7 +24,7 @@ import org.springframework.beans.NotWritablePropertyException; /** * Unit tests for {@link DirectFieldAccessFallbackBeanWrapper}. - * + * * @author Oliver Gierke */ public class DirectFieldAccessFallbackBeanWrapperUnitTests { diff --git a/src/test/java/org/springframework/data/util/LazyUnitTests.java b/src/test/java/org/springframework/data/util/LazyUnitTests.java index f1f64968b..c7189b015 100755 --- a/src/test/java/org/springframework/data/util/LazyUnitTests.java +++ b/src/test/java/org/springframework/data/util/LazyUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 the original author or authors. + * Copyright 2016-2018 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. diff --git a/src/test/java/org/springframework/data/util/NullableUtilsUnitTests.java b/src/test/java/org/springframework/data/util/NullableUtilsUnitTests.java index 1f5a50d54..83f34c78d 100644 --- a/src/test/java/org/springframework/data/util/NullableUtilsUnitTests.java +++ b/src/test/java/org/springframework/data/util/NullableUtilsUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/util/PairUnitTests.java b/src/test/java/org/springframework/data/util/PairUnitTests.java index 243c982e7..375414cd8 100755 --- a/src/test/java/org/springframework/data/util/PairUnitTests.java +++ b/src/test/java/org/springframework/data/util/PairUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -21,7 +21,7 @@ import org.junit.Test; /** * Unit tests for {@link Pair}. - * + * * @author Oliver Gierke */ public class PairUnitTests { diff --git a/src/test/java/org/springframework/data/util/ParameterizedTypeInformationUnitTests.java b/src/test/java/org/springframework/data/util/ParameterizedTypeInformationUnitTests.java index 93f9a4e6c..fd847606d 100755 --- a/src/test/java/org/springframework/data/util/ParameterizedTypeInformationUnitTests.java +++ b/src/test/java/org/springframework/data/util/ParameterizedTypeInformationUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/test/java/org/springframework/data/util/ParsingUtilsUnitTests.java b/src/test/java/org/springframework/data/util/ParsingUtilsUnitTests.java index 5e3e4fc89..ff4b7d605 100755 --- a/src/test/java/org/springframework/data/util/ParsingUtilsUnitTests.java +++ b/src/test/java/org/springframework/data/util/ParsingUtilsUnitTests.java @@ -1,6 +1,6 @@ /* - * Copyright 2014-2017 the original author or authors. - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 the original author or authors. + * Copyright 2014-2018 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. @@ -24,7 +24,7 @@ import org.junit.Test; /** * Unit tests for {@link ParsingUtils}. - * + * * @author Oliver Gierke */ public class ParsingUtilsUnitTests { diff --git a/src/test/java/org/springframework/data/util/ReflectionUtilsUnitTests.java b/src/test/java/org/springframework/data/util/ReflectionUtilsUnitTests.java index afab0af74..80d1d775c 100755 --- a/src/test/java/org/springframework/data/util/ReflectionUtilsUnitTests.java +++ b/src/test/java/org/springframework/data/util/ReflectionUtilsUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -147,14 +147,14 @@ public class ReflectionUtilsUnitTests { MethodParameter parameter = new MethodParameter(DummyInterface.class.getDeclaredMethod("primitive", int.class), 0); assertThat(ReflectionUtils.isNullable(parameter)).isFalse(); } - + @Test // DATACMNS-1171 public void discoversKotlinClass() { assertThat(ReflectionUtils.isKotlinClass(TypeCreatingSyntheticClass.class)).isTrue(); assertThat(ReflectionUtils.isSupportedKotlinClass(TypeCreatingSyntheticClass.class)).isTrue(); } - + @Test // DATACMNS-1171 public void discoversUnsupportedKotlinClass() { diff --git a/src/test/java/org/springframework/data/util/StreamUtilsTests.java b/src/test/java/org/springframework/data/util/StreamUtilsTests.java index 996644467..3a71c60ab 100755 --- a/src/test/java/org/springframework/data/util/StreamUtilsTests.java +++ b/src/test/java/org/springframework/data/util/StreamUtilsTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -27,7 +27,7 @@ import org.junit.Test; /** * Spring Data specific Java {@link Stream} utility methods and classes. - * + * * @author Thomas Darimont * @since 1.10 */ diff --git a/src/test/java/org/springframework/data/util/TypeDiscovererUnitTests.java b/src/test/java/org/springframework/data/util/TypeDiscovererUnitTests.java index c1a1fc811..b7a44b941 100755 --- a/src/test/java/org/springframework/data/util/TypeDiscovererUnitTests.java +++ b/src/test/java/org/springframework/data/util/TypeDiscovererUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 the original author or authors. + * Copyright 2011-2018 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. diff --git a/src/test/java/org/springframework/data/util/VersionUnitTests.java b/src/test/java/org/springframework/data/util/VersionUnitTests.java index c7bd32706..22cdeec12 100755 --- a/src/test/java/org/springframework/data/util/VersionUnitTests.java +++ b/src/test/java/org/springframework/data/util/VersionUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -24,7 +24,7 @@ import org.junit.rules.ExpectedException; /** * Unit tests for {@link Version}. - * + * * @author Oliver Gierke */ public class VersionUnitTests { diff --git a/src/test/java/org/springframework/data/util/nonnull/NullableAnnotatedType.java b/src/test/java/org/springframework/data/util/nonnull/NullableAnnotatedType.java index fc1f064ab..af3a57b53 100644 --- a/src/test/java/org/springframework/data/util/nonnull/NullableAnnotatedType.java +++ b/src/test/java/org/springframework/data/util/nonnull/NullableAnnotatedType.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/util/nonnull/packagelevel/NonNullOnPackage.java b/src/test/java/org/springframework/data/util/nonnull/packagelevel/NonNullOnPackage.java index b119c30ff..111ad5a82 100644 --- a/src/test/java/org/springframework/data/util/nonnull/packagelevel/NonNullOnPackage.java +++ b/src/test/java/org/springframework/data/util/nonnull/packagelevel/NonNullOnPackage.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/util/nonnull/type/CustomAnnotatedType.java b/src/test/java/org/springframework/data/util/nonnull/type/CustomAnnotatedType.java index c87566b98..50ab4fb08 100644 --- a/src/test/java/org/springframework/data/util/nonnull/type/CustomAnnotatedType.java +++ b/src/test/java/org/springframework/data/util/nonnull/type/CustomAnnotatedType.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/util/nonnull/type/CustomNonNullAnnotation.java b/src/test/java/org/springframework/data/util/nonnull/type/CustomNonNullAnnotation.java index c3e1424e4..58ec17c47 100644 --- a/src/test/java/org/springframework/data/util/nonnull/type/CustomNonNullAnnotation.java +++ b/src/test/java/org/springframework/data/util/nonnull/type/CustomNonNullAnnotation.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/util/nonnull/type/Jsr305NonnullAnnotatedType.java b/src/test/java/org/springframework/data/util/nonnull/type/Jsr305NonnullAnnotatedType.java index ee3ea09f2..80d11f956 100644 --- a/src/test/java/org/springframework/data/util/nonnull/type/Jsr305NonnullAnnotatedType.java +++ b/src/test/java/org/springframework/data/util/nonnull/type/Jsr305NonnullAnnotatedType.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/util/nonnull/type/NonAnnotatedType.java b/src/test/java/org/springframework/data/util/nonnull/type/NonAnnotatedType.java index 75915eb5d..a866b1b23 100644 --- a/src/test/java/org/springframework/data/util/nonnull/type/NonAnnotatedType.java +++ b/src/test/java/org/springframework/data/util/nonnull/type/NonAnnotatedType.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/util/nonnull/type/NonNullableParameters.java b/src/test/java/org/springframework/data/util/nonnull/type/NonNullableParameters.java index e9965c4c5..daa682f28 100644 --- a/src/test/java/org/springframework/data/util/nonnull/type/NonNullableParameters.java +++ b/src/test/java/org/springframework/data/util/nonnull/type/NonNullableParameters.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. diff --git a/src/test/java/org/springframework/data/web/HateoasPageableHandlerMethodArgumentResolverUnitTests.java b/src/test/java/org/springframework/data/web/HateoasPageableHandlerMethodArgumentResolverUnitTests.java index a0a5981a9..2009bedc0 100755 --- a/src/test/java/org/springframework/data/web/HateoasPageableHandlerMethodArgumentResolverUnitTests.java +++ b/src/test/java/org/springframework/data/web/HateoasPageableHandlerMethodArgumentResolverUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -30,7 +30,7 @@ import org.springframework.web.util.UriComponentsBuilder; /** * Unit tests for {@link HateoasPageableHandlerMethodArgumentResolver}. - * + * * @author Oliver Gierke */ public class HateoasPageableHandlerMethodArgumentResolverUnitTests diff --git a/src/test/java/org/springframework/data/web/HateoasSortHandlerMethodArgumentResolverUnitTests.java b/src/test/java/org/springframework/data/web/HateoasSortHandlerMethodArgumentResolverUnitTests.java index e8f4b3d4e..17d9f09ae 100755 --- a/src/test/java/org/springframework/data/web/HateoasSortHandlerMethodArgumentResolverUnitTests.java +++ b/src/test/java/org/springframework/data/web/HateoasSortHandlerMethodArgumentResolverUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -28,7 +28,7 @@ import org.springframework.web.util.UriComponentsBuilder; /** * Unit tests for {@link HateoasSortHandlerMethodArgumentResolver} - * + * * @author Oliver Gierke */ public class HateoasSortHandlerMethodArgumentResolverUnitTests extends SortHandlerMethodArgumentResolverUnitTests { diff --git a/src/test/java/org/springframework/data/web/JsonProjectingMethodInterceptorFactoryUnitTests.java b/src/test/java/org/springframework/data/web/JsonProjectingMethodInterceptorFactoryUnitTests.java index 627508897..8c444d84c 100755 --- a/src/test/java/org/springframework/data/web/JsonProjectingMethodInterceptorFactoryUnitTests.java +++ b/src/test/java/org/springframework/data/web/JsonProjectingMethodInterceptorFactoryUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -36,7 +36,7 @@ import com.jayway.jsonpath.spi.mapper.MappingProvider; /** * Unit tests for {@link JsonProjectingMethodInterceptorFactory}. - * + * * @author Oliver Gierke * @since 1.13 * @soundtrack Richard Spaven - Assemble (Whole Other*) diff --git a/src/test/java/org/springframework/data/web/MapDataBinderUnitTests.java b/src/test/java/org/springframework/data/web/MapDataBinderUnitTests.java index 5cef09875..5c264b580 100755 --- a/src/test/java/org/springframework/data/web/MapDataBinderUnitTests.java +++ b/src/test/java/org/springframework/data/web/MapDataBinderUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -36,7 +36,7 @@ import org.springframework.format.support.DefaultFormattingConversionService; /** * Unit tests for {@link MapDataBinder}. - * + * * @author Oliver Gierke */ public class MapDataBinderUnitTests { diff --git a/src/test/java/org/springframework/data/web/PageableDefaultUnitTests.java b/src/test/java/org/springframework/data/web/PageableDefaultUnitTests.java index ffe77171c..0b9f3d1fa 100755 --- a/src/test/java/org/springframework/data/web/PageableDefaultUnitTests.java +++ b/src/test/java/org/springframework/data/web/PageableDefaultUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 the original author or authors. + * Copyright 2013-2018 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. @@ -38,7 +38,7 @@ import org.springframework.web.method.support.HandlerMethodArgumentResolver; * {@link Pageable} method parameters. Expects the {@link HandlerMethodArgumentResolver} to be tested returned from * {@link #getResolver()} and expects methods to be present in the controller class returned from * {@link #getControllerClass()}. For sample usage see {@link PageableHandlerMethodArgumentResolver}. - * + * * @since 1.6 * @author Oliver Gierke * @author Nick Williams diff --git a/src/test/java/org/springframework/data/web/PageableHandlerMethodArgumentResolverUnitTests.java b/src/test/java/org/springframework/data/web/PageableHandlerMethodArgumentResolverUnitTests.java index e6e20943d..c5a8da4f9 100755 --- a/src/test/java/org/springframework/data/web/PageableHandlerMethodArgumentResolverUnitTests.java +++ b/src/test/java/org/springframework/data/web/PageableHandlerMethodArgumentResolverUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -32,7 +32,7 @@ import org.springframework.web.context.request.ServletWebRequest; /** * Unit tests for {@link PageableHandlerMethodArgumentResolver}. Pulls in defaulting tests from * {@link PageableDefaultUnitTests}. - * + * * @author Oliver Gierke * @author Nick Williams */ diff --git a/src/test/java/org/springframework/data/web/PagedResourcesAssemblerArgumentResolverUnitTests.java b/src/test/java/org/springframework/data/web/PagedResourcesAssemblerArgumentResolverUnitTests.java index 65d26c489..4bf72575c 100755 --- a/src/test/java/org/springframework/data/web/PagedResourcesAssemblerArgumentResolverUnitTests.java +++ b/src/test/java/org/springframework/data/web/PagedResourcesAssemblerArgumentResolverUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 the original author or authors. + * Copyright 2014-2018 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. @@ -33,7 +33,7 @@ import org.springframework.web.util.UriComponents; /** * Unit tests for {@link PagedResourcesAssemblerArgumentResolver}. - * + * * @author Oliver Gierke * @since 1.7 */ diff --git a/src/test/java/org/springframework/data/web/PagedResourcesAssemblerUnitTests.java b/src/test/java/org/springframework/data/web/PagedResourcesAssemblerUnitTests.java index 2329da83e..fe7748412 100755 --- a/src/test/java/org/springframework/data/web/PagedResourcesAssemblerUnitTests.java +++ b/src/test/java/org/springframework/data/web/PagedResourcesAssemblerUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -42,7 +42,7 @@ import org.springframework.web.util.UriComponentsBuilder; /** * Unit tests for {@link PagedResourcesAssembler}. - * + * * @author Oliver Gierke * @author Nick Williams * @author Marcel Overdijk @@ -282,7 +282,7 @@ public class PagedResourcesAssemblerUnitTests { static class PersonResourceAssembler implements ResourceAssembler { - /* + /* * (non-Javadoc) * @see org.springframework.hateoas.ResourceAssembler#toResource(java.lang.Object) */ diff --git a/src/test/java/org/springframework/data/web/ProjectingJackson2HttpMessageConverterUnitTests.java b/src/test/java/org/springframework/data/web/ProjectingJackson2HttpMessageConverterUnitTests.java index a081e56a0..ee7c10a33 100755 --- a/src/test/java/org/springframework/data/web/ProjectingJackson2HttpMessageConverterUnitTests.java +++ b/src/test/java/org/springframework/data/web/ProjectingJackson2HttpMessageConverterUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -25,7 +25,7 @@ import org.springframework.http.MediaType; /** * Unit tests for {@link ProjectingJackson2HttpMessageConverter}. - * + * * @author Oliver Gierke * @author Mark Paluch * @soundtrack Richard Spaven - Tribute (Whole Other*) diff --git a/src/test/java/org/springframework/data/web/ProxyingHandlerMethodArgumentResolverUnitTests.java b/src/test/java/org/springframework/data/web/ProxyingHandlerMethodArgumentResolverUnitTests.java index 0f5401b52..27c552ddf 100755 --- a/src/test/java/org/springframework/data/web/ProxyingHandlerMethodArgumentResolverUnitTests.java +++ b/src/test/java/org/springframework/data/web/ProxyingHandlerMethodArgumentResolverUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-2018 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. @@ -27,7 +27,7 @@ import org.springframework.data.web.ProjectingJackson2HttpMessageConverterUnitTe /** * Unit tests for {@link ProxyingHandlerMethodArgumentResolver}. - * + * * @author Oliver Gierke * @soundtrack Karlijn Langendijk & Sönke Meinen - Englishman In New York (Sting, * https://www.youtube.com/watch?v=O7LZsqrnaaA) diff --git a/src/test/java/org/springframework/data/web/SortDefaultUnitTests.java b/src/test/java/org/springframework/data/web/SortDefaultUnitTests.java index e36a2bcf8..d420dd6ab 100755 --- a/src/test/java/org/springframework/data/web/SortDefaultUnitTests.java +++ b/src/test/java/org/springframework/data/web/SortDefaultUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 the original author or authors. + * Copyright 2013-2018 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. @@ -30,7 +30,7 @@ import org.springframework.web.method.support.HandlerMethodArgumentResolver; /** * Unit tests for {@link SortDefault}. - * + * * @since 1.6 * @author Oliver Gierke */ diff --git a/src/test/java/org/springframework/data/web/SortHandlerMethodArgumentResolverUnitTests.java b/src/test/java/org/springframework/data/web/SortHandlerMethodArgumentResolverUnitTests.java index 0342d07e2..4940d3f17 100755 --- a/src/test/java/org/springframework/data/web/SortHandlerMethodArgumentResolverUnitTests.java +++ b/src/test/java/org/springframework/data/web/SortHandlerMethodArgumentResolverUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -35,7 +35,7 @@ import org.springframework.web.context.request.ServletWebRequest; /** * Unit tests for {@link SortHandlerMethodArgumentResolver}. - * + * * @since 1.6 * @author Oliver Gierke * @author Thomas Darimont diff --git a/src/test/java/org/springframework/data/web/TestUtils.java b/src/test/java/org/springframework/data/web/TestUtils.java index f7db87219..af8f67cc5 100644 --- a/src/test/java/org/springframework/data/web/TestUtils.java +++ b/src/test/java/org/springframework/data/web/TestUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 the original author or authors. + * Copyright 2013-2018 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. @@ -24,7 +24,7 @@ import org.springframework.web.context.request.ServletWebRequest; /** * General test utilities. - * + * * @since 1.6 * @author Oliver Gierke */ diff --git a/src/test/java/org/springframework/data/web/WebTestUtils.java b/src/test/java/org/springframework/data/web/WebTestUtils.java index 58fcbef4d..d146b121a 100644 --- a/src/test/java/org/springframework/data/web/WebTestUtils.java +++ b/src/test/java/org/springframework/data/web/WebTestUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 the original author or authors. + * Copyright 2013-2018 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. diff --git a/src/test/java/org/springframework/data/web/XmlBeamHttpMessageConverterUnitTests.java b/src/test/java/org/springframework/data/web/XmlBeamHttpMessageConverterUnitTests.java index f6d0758ec..cf4469cbd 100755 --- a/src/test/java/org/springframework/data/web/XmlBeamHttpMessageConverterUnitTests.java +++ b/src/test/java/org/springframework/data/web/XmlBeamHttpMessageConverterUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 the original author or authors. + * Copyright 2016-2018 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. @@ -32,7 +32,7 @@ import org.xmlbeam.annotation.XBRead; /** * Unit tests for {@link XmlBeamHttpMessageConverter}. - * + * * @author Oliver Gierke * @soundtrack Dr. Kobayashi Maru & The Mothership Connection - Anthem (EPisode One) */ diff --git a/src/test/java/org/springframework/data/web/config/EnableSpringDataWebSupportIntegrationTests.java b/src/test/java/org/springframework/data/web/config/EnableSpringDataWebSupportIntegrationTests.java index 9e1035e44..ee3e68c08 100755 --- a/src/test/java/org/springframework/data/web/config/EnableSpringDataWebSupportIntegrationTests.java +++ b/src/test/java/org/springframework/data/web/config/EnableSpringDataWebSupportIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. diff --git a/src/test/java/org/springframework/data/web/config/PageableResourcesAssemblerIntegrationTests.java b/src/test/java/org/springframework/data/web/config/PageableResourcesAssemblerIntegrationTests.java index 5cebdada5..8983ff3e1 100755 --- a/src/test/java/org/springframework/data/web/config/PageableResourcesAssemblerIntegrationTests.java +++ b/src/test/java/org/springframework/data/web/config/PageableResourcesAssemblerIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2017 the original author or authors. + * Copyright 2013-2018 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. @@ -41,7 +41,7 @@ import org.springframework.web.context.WebApplicationContext; /** * Integration tests for {@link PagedResourcesAssembler}. - * + * * @author Oliver Gierke */ public class PageableResourcesAssemblerIntegrationTests { diff --git a/src/test/java/org/springframework/data/web/config/SampleController.java b/src/test/java/org/springframework/data/web/config/SampleController.java index 17620a81f..14d70e36b 100755 --- a/src/test/java/org/springframework/data/web/config/SampleController.java +++ b/src/test/java/org/springframework/data/web/config/SampleController.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. diff --git a/src/test/java/org/springframework/data/web/config/SampleMixin.java b/src/test/java/org/springframework/data/web/config/SampleMixin.java index 019e73d74..273648a3d 100644 --- a/src/test/java/org/springframework/data/web/config/SampleMixin.java +++ b/src/test/java/org/springframework/data/web/config/SampleMixin.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2015-2018 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. diff --git a/src/test/java/org/springframework/data/web/config/SpringDataWebConfigurationIntegrationTests.java b/src/test/java/org/springframework/data/web/config/SpringDataWebConfigurationIntegrationTests.java index 056db82bb..2e4dc1ce4 100644 --- a/src/test/java/org/springframework/data/web/config/SpringDataWebConfigurationIntegrationTests.java +++ b/src/test/java/org/springframework/data/web/config/SpringDataWebConfigurationIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. diff --git a/src/test/java/org/springframework/data/web/querydsl/QuerydslPredicateArgumentResolverUnitTests.java b/src/test/java/org/springframework/data/web/querydsl/QuerydslPredicateArgumentResolverUnitTests.java index 3c8d43916..777c22e49 100755 --- a/src/test/java/org/springframework/data/web/querydsl/QuerydslPredicateArgumentResolverUnitTests.java +++ b/src/test/java/org/springframework/data/web/querydsl/QuerydslPredicateArgumentResolverUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2018 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. @@ -49,7 +49,7 @@ import com.querydsl.core.types.dsl.BooleanExpression; /** * Unit tests for {@link QuerydslPredicateArgumentResolver}. - * + * * @author Christoph Strobl * @author Oliver Gierke */