diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/Path.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/Path.java index 723cbc437..700efb85d 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/Path.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/Path.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. @@ -22,7 +22,7 @@ import org.springframework.util.StringUtils; /** * Simple value object to build up (URI) paths. Allows easy concatenation of {@link String}s and will take care of * removal of whitespace and reducing slashes to single ones. - * + * * @author Oliver Gierke */ public class Path { @@ -34,7 +34,7 @@ public class Path { /** * Creates a new {@link Path} from the given {@link String}. - * + * * @param path */ public Path(String path) { @@ -43,7 +43,7 @@ public class Path { /** * Creates a new {@link Path} from the given string and potentially bypasses the cleanup. - * + * * @param path * @param cleanUp */ @@ -53,7 +53,7 @@ public class Path { /** * Returns whether the given reference String matches the current {@link Path}. - * + * * @param reference * @return */ @@ -63,7 +63,7 @@ public class Path { /** * Appends the given {@link String} to the current {@link Path}. - * + * * @param path * @return */ @@ -75,7 +75,7 @@ public class Path { return slash(path.toString()); } - /* + /* * (non-Javadoc) * @see java.lang.Object#hashCode() */ @@ -101,7 +101,7 @@ public class Path { return trimmed.contains("://") ? trimmed : SLASH + trimmed; } - /* + /* * (non-Javadoc) * @see java.lang.Object#toString() */ @@ -110,7 +110,7 @@ public class Path { return path; } - /* + /* * (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/UriToEntityConverter.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/UriToEntityConverter.java index 946821153..45d20600e 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/UriToEntityConverter.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/UriToEntityConverter.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. @@ -35,7 +35,7 @@ import org.springframework.util.Assert; /** * A {@link GenericConverter} that can convert a {@link URI} into an entity. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -51,7 +51,7 @@ public class UriToEntityConverter implements ConditionalGenericConverter { /** * Creates a new {@link UriToEntityConverter} using the given {@link PersistentEntities}, * {@link RepositoryInvokerFactory} and {@link Repositories}. - * + * * @param entities must not be {@literal null}. * @param invokerFactory must not be {@literal null}. * @param repositories must not be {@literal null}. @@ -81,7 +81,7 @@ public class UriToEntityConverter implements ConditionalGenericConverter { this.repositories = repositories; } - /* + /* * (non-Javadoc) * @see org.springframework.core.convert.converter.ConditionalConverter#matches(org.springframework.core.convert.TypeDescriptor, org.springframework.core.convert.TypeDescriptor) */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/ValidationErrors.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/ValidationErrors.java index c5ce7625d..25cb2fd6d 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/ValidationErrors.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/ValidationErrors.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. @@ -36,7 +36,7 @@ import org.springframework.validation.Errors; /** * An {@link Errors} implementation for use in the events mechanism of Spring Data REST. Customizes actual field lookup * by using a {@link PersistentPropertyAccessor} for actual value lookups. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -49,7 +49,7 @@ public class ValidationErrors extends AbstractPropertyBindingResult { /** * Creates a new {@link ValidationErrors} instance for the given source object and {@link PersistentEntity}. - * + * * @param source the source object to gather validation errors on, must not be {@literal null}. * @param entity the {@link PersistentEntity} for the given source instance, must not be {@literal null}. */ @@ -64,7 +64,7 @@ public class ValidationErrors extends AbstractPropertyBindingResult { this.source = source; } - /* + /* * (non-Javadoc) * @see org.springframework.validation.AbstractPropertyBindingResult#getPropertyAccessor() */ @@ -109,7 +109,7 @@ public class ValidationErrors extends AbstractPropertyBindingResult { }; } - /* + /* * (non-Javadoc) * @see org.springframework.validation.AbstractBindingResult#getTarget() */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/Description.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/Description.java index f621926f0..b01c38a39 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/Description.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/Description.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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * Annotation to describe semantics of a resource. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -33,7 +33,7 @@ public @interface Description { /** * The textual description of the resource. Can be a resource bundle key for internationalization. - * + * * @return */ String value(); diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleAfterCreate.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleAfterCreate.java index 4cbcc0dcc..b66ff6dc4 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleAfterCreate.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleAfterCreate.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. @@ -32,7 +32,7 @@ public @interface HandleAfterCreate { /** * The domain type which you want to listen for events for. - * + * * @deprecated the domain type of interest is derived from the type of the first parameter of the annotated handler * method. * @return diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleAfterDelete.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleAfterDelete.java index 8d6520a1b..24f60008b 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleAfterDelete.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleAfterDelete.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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * Denotes a component that should handle the {@literal afterDelete} event. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -34,7 +34,7 @@ public @interface HandleAfterDelete { /** * The domain type which you want to listen for events for. - * + * * @deprecated the domain type of interest is derived from the type of the first parameter of the annotated handler * method. * @return diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleAfterLinkDelete.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleAfterLinkDelete.java index 36b5f56c7..72f5fca10 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleAfterLinkDelete.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleAfterLinkDelete.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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * Denotes a component that should handle the {@literal afterLinkDelete} event. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -34,7 +34,7 @@ public @interface HandleAfterLinkDelete { /** * The domain type which you want to listen for events for. - * + * * @deprecated the domain type of interest is derived from the type of the first parameter of the annotated handler * method. * @return diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleAfterLinkSave.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleAfterLinkSave.java index 9474fc288..c0c2a5833 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleAfterLinkSave.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleAfterLinkSave.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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * Denotes a component that should handle the {@literal afterLinkSave} event. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -34,7 +34,7 @@ public @interface HandleAfterLinkSave { /** * The domain type which you want to listen for events for. - * + * * @deprecated the domain type of interest is derived from the type of the first parameter of the annotated handler * method. * @return diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleAfterSave.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleAfterSave.java index a7135c7c1..c4690a2ca 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleAfterSave.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleAfterSave.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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * Denotes a component that should handle the {@literal afterSave} event. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -34,7 +34,7 @@ public @interface HandleAfterSave { /** * The domain type which you want to listen for events for. - * + * * @deprecated the domain type of interest is derived from the type of the first parameter of the annotated handler * method. * @return diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleBeforeCreate.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleBeforeCreate.java index 3aeaf6bf2..d76118144 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleBeforeCreate.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleBeforeCreate.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. @@ -32,7 +32,7 @@ public @interface HandleBeforeCreate { /** * The domain type which you want to listen for events for. - * + * * @deprecated the domain type of interest is derived from the type of the first parameter of the annotated handler * method. * @return diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleBeforeDelete.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleBeforeDelete.java index 27d3214ee..8f31c6df1 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleBeforeDelete.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleBeforeDelete.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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * Denotes a component that should handle the {@literal beforeDelete} event. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -34,7 +34,7 @@ public @interface HandleBeforeDelete { /** * The domain type which you want to listen for events for. - * + * * @deprecated the domain type of interest is derived from the type of the first parameter of the annotated handler * method. * @return diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleBeforeLinkDelete.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleBeforeLinkDelete.java index 6b4a99501..3b04480a4 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleBeforeLinkDelete.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleBeforeLinkDelete.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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * Denotes a component that should handle the {@literal beforeLinkDelete} event. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -34,7 +34,7 @@ public @interface HandleBeforeLinkDelete { /** * The domain type which you want to listen for events for. - * + * * @deprecated the domain type of interest is derived from the type of the first parameter of the annotated handler * method. * @return diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleBeforeLinkSave.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleBeforeLinkSave.java index 74c681779..0b28f578c 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleBeforeLinkSave.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleBeforeLinkSave.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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * Denotes a component that should handle the {@literal beforeLinkSave} event. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -34,7 +34,7 @@ public @interface HandleBeforeLinkSave { /** * The domain type which you want to listen for events for. - * + * * @deprecated the domain type of interest is derived from the type of the first parameter of the annotated handler * method. * @return diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleBeforeSave.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleBeforeSave.java index 824c4d9fc..3de8f8962 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleBeforeSave.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/HandleBeforeSave.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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * Denotes a component that should handle the {@literal beforeSave} event. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -34,7 +34,7 @@ public @interface HandleBeforeSave { /** * The domain type which you want to listen for events for. - * + * * @deprecated the domain type of interest is derived from the type of the first parameter of the annotated handler * method. * @return diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/RepositoryEventHandler.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/RepositoryEventHandler.java index 8ee76eb4b..f8d1d5f31 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/RepositoryEventHandler.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/RepositoryEventHandler.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. @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** * Advertises classes annotated with this that they are event handlers. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -34,7 +34,7 @@ public @interface RepositoryEventHandler { /** * The list of {@link org.springframework.context.ApplicationEvent} classes this event handler cares about. - * + * * @deprecated the type the handler is interested in is determined by the type of the first parameter of a handler * method. */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/RepositoryRestResource.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/RepositoryRestResource.java index 0b3a70c65..2423cd5ec 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/RepositoryRestResource.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/RepositoryRestResource.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; /** * Annotate a {@link org.springframework.data.repository.Repository} with this to customize export mapping and rels. - * + * * @author Oliver Gierke */ @Target({ ElementType.TYPE }) @@ -33,42 +33,42 @@ public @interface RepositoryRestResource { /** * Flag indicating whether this resource is exported at all. - * + * * @return {@literal true} if the resource is to be exported, {@literal false} otherwise. */ boolean exported() default true; /** * The path segment under which this resource is to be exported. - * + * * @return A valid path segment. */ String path() default ""; /** * The rel value to use when generating links to the collection resource. - * + * * @return A valid rel value. */ String collectionResourceRel() default ""; /** * The description of the collection resource. - * + * * @return */ Description collectionResourceDescription() default @Description(value = ""); /** * The rel value to use when generating links to the item resource. - * + * * @return A valid rel value. */ String itemResourceRel() default ""; /** * The description of the item resource. - * + * * @return */ Description itemResourceDescription() default @Description(value = ""); @@ -77,7 +77,7 @@ public @interface RepositoryRestResource { * Configures the projection type to be used when embedding item resources into collections and related resources. * Defaults to {@link None}, which indicates full rendering of the items in a collection resource and no inlining of * related resources. - * + * * @return */ Class excerptProjection() default None.class; diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/RestResource.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/RestResource.java index 1387b416c..674942c9a 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/RestResource.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/annotation/RestResource.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 java.lang.annotation.Target; *

* As of Spring Data REST 2.0, prefer using {@link RepositoryRestResource} to also be able to customize the relation * type and description for the item resources exposed by the repository. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -38,28 +38,28 @@ public @interface RestResource { /** * Flag indicating whether this resource is exported at all. - * + * * @return {@literal true} if the resource is to be exported, {@literal false} otherwise. */ boolean exported() default true; /** * The path segment under which this resource is to be exported. - * + * * @return A valid path segment. */ String path() default ""; /** * The rel value to use when generating links to this resource. - * + * * @return A valid rel value. */ String rel() default ""; /** * The description of the collection resource. - * + * * @return */ Description description() default @Description(value = ""); diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/EntityLookupConfiguration.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/EntityLookupConfiguration.java index 7653530a2..1b1b3de22 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/EntityLookupConfiguration.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/EntityLookupConfiguration.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. @@ -36,7 +36,7 @@ import org.springframework.util.Assert; /** * Configuration instance to implement {@link EntityLookupRegistrar}. Exposed via * {@link RepositoryRestConfiguration#withEntityLookup()}. - * + * * @author Oliver Gierke * @since 2.5 */ @@ -57,7 +57,7 @@ class EntityLookupConfiguration implements EntityLookupRegistrar { return this; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.config.EntityLookupRegistrar#forValueRepository(java.lang.Class) */ @@ -76,7 +76,7 @@ class EntityLookupConfiguration implements EntityLookupRegistrar { return new MappingBuilder(type); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.config.EntityLookupRegistrar#forValueRepository(java.lang.Class, org.springframework.core.convert.converter.Converter, org.springframework.data.rest.core.config.EntityLookupRegistrar.LookupRegistrar.Lookup) */ @@ -102,7 +102,7 @@ class EntityLookupConfiguration implements EntityLookupRegistrar { /** * Creates a new {@link MappingBuilder} using the given repository type and identifier mapping. - * + * * @param repositoryType must not be {@literal null}. * @param mapping must not be {@literal null}. */ @@ -130,7 +130,7 @@ class EntityLookupConfiguration implements EntityLookupRegistrar { return EntityLookupConfiguration.this; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.config.EntityLookupRegistrar.IdMappingRegistrar#withIdMapping(org.springframework.core.convert.converter.Converter) */ @@ -142,7 +142,7 @@ class EntityLookupConfiguration implements EntityLookupRegistrar { /** * Returns the {@link EntityLookup}s registered on this configuration. - * + * * @param repositories must not be {@literal null}. * @return */ @@ -172,7 +172,7 @@ class EntityLookupConfiguration implements EntityLookupRegistrar { /** * Creates a new {@link RepositoriesEntityLookup} for the given {@link Repositories} and {@link LookupInformation}. - * + * * @param repositories must not be {@literal null}. * @param lookupInformation must not be {@literal null}. */ @@ -194,7 +194,7 @@ class EntityLookupConfiguration implements EntityLookupRegistrar { "No repository found for type " + information.getDomainType().getName() + "!")); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.support.EntityLookup#getResourceIdentifier(java.lang.Object) */ @@ -203,7 +203,7 @@ class EntityLookupConfiguration implements EntityLookupRegistrar { return lookupInfo.getIdentifierMapping().convert(entity); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.support.EntityLookup#lookupEntity(java.io.Serializable) */ @@ -216,7 +216,7 @@ class EntityLookupConfiguration implements EntityLookupRegistrar { return Optional.class.isInstance(result) ? (Optional) result : Optional.ofNullable((T) result); } - /* + /* * (non-Javadoc) * @see org.springframework.plugin.core.Plugin#supports(java.lang.Object) */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/EntityLookupRegistrar.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/EntityLookupRegistrar.java index 6563dbb59..366367104 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/EntityLookupRegistrar.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/EntityLookupRegistrar.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. @@ -22,7 +22,7 @@ import org.springframework.data.rest.core.support.EntityLookup; /** * Configuration interfaces to ease the configuration of custom {@link EntityLookup}s for repositories. - * + * * @author Oliver Gierke * @since 2.5 */ @@ -30,7 +30,7 @@ public interface EntityLookupRegistrar { /** * Starts building a custom {@link EntityLookup} for the given repository type. - * + * * @param type must not be {@literal null}. * @return */ @@ -39,7 +39,7 @@ public interface EntityLookupRegistrar { /** * Starts building a custom {@link EntityLookup} for the given repository type and registers the domain type of the * given repository as lookup type. - * + * * @param type must not be {@literal null}. * @return */ @@ -49,7 +49,7 @@ public interface EntityLookupRegistrar { /** * Registers the given {@link Converter} to map the entity to its identifying property. - * + * * @param mapping must not be {@literal null}. * @return */ @@ -58,7 +58,7 @@ public interface EntityLookupRegistrar { /** * Registers an {@link EntityLookup} for the given repository type, identifier mapping and lookup operation. - * + * * @param type must not be {@literal null}. * @param identifierMapping must not be {@literal null}. * @param lookup must not be {@literal null}. @@ -69,7 +69,7 @@ public interface EntityLookupRegistrar { /** * Registers an {@link EntityLookup} for the given repository type, identifier mapping and lookup operation and * registers the domain type managed by the given repository as lookup type. - * + * * @param type must not be {@literal null}. * @param identifierMapping must not be {@literal null}. * @param lookup must not be {@literal null}. @@ -81,7 +81,7 @@ public interface EntityLookupRegistrar { /** * Registers the given {@link Lookup} to obtain entity instances. - * + * * @param lookup must not be {@literal null}. */ EntityLookupRegistrar withLookup(Lookup lookup); @@ -90,7 +90,7 @@ public interface EntityLookupRegistrar { /** * Looks up the entity using the given {@link Repository} and identifier. - * + * * @param repository * @param identifier * @return diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/EnumTranslationConfiguration.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/EnumTranslationConfiguration.java index 8de705ac0..50b66d523 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/EnumTranslationConfiguration.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/EnumTranslationConfiguration.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. @@ -17,7 +17,7 @@ package org.springframework.data.rest.core.config; /** * Configuration options for enum value translation. - * + * * @author Oliver Gierke * @since 2.4 * @soundtrack Wallis Bird - Measuring Cities (Yeah! Wallis Bird live 2007-2014) @@ -28,7 +28,7 @@ public interface EnumTranslationConfiguration { * Configures whether the default translation of enum names shall be applied. Defaults to {@literal true}. This means * the configuration will turn enum names into human friendly {@link String}s and also parse them if - only if - no * explicit translation is available. - * + * * @param enableDefaultTranslation whether to enable the default translation of enum names. */ void setEnableDefaultTranslation(boolean enableDefaultTranslation); @@ -36,7 +36,7 @@ public interface EnumTranslationConfiguration { /** * Configures whether to always accept the raw enum name when parsing. This is useful if clients were used to send the * Java enum names shall not be broken even if on the serialization side enum translation is activated. - * + * * @param parseEnumNameAsFallback whether to parse the raw enum value as fallback, even if an explicit translation is * available. */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/JsonSchemaFormat.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/JsonSchemaFormat.java index ff86b2fb3..fde958c8a 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/JsonSchemaFormat.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/JsonSchemaFormat.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/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/MetadataConfiguration.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/MetadataConfiguration.java index 77545695d..553efe10e 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/MetadataConfiguration.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/MetadataConfiguration.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.util.Assert; /** * Configuration for metadata exposure. - * + * * @author Oliver Gierke */ public class MetadataConfiguration { @@ -38,7 +38,7 @@ public class MetadataConfiguration { * Configures whether to omit documentation attributes for unresolvable resource bundle keys. Defaults to * {@literal true}, which means that an unsuccessful attempt to resolve the message will cause no documentation entry * to be rendered for the metadata resources. - * + * * @param omitUnresolvableDescriptionKeys whether to omit documentation attributes for unresolvable resource bundle * keys. */ @@ -48,7 +48,7 @@ public class MetadataConfiguration { /** * Returns whether to omit documentation attributes for unresolvable resource bundle keys. - * + * * @return the omitUnresolvableDescriptionKeys */ public boolean omitUnresolvableDescriptionKeys() { @@ -57,7 +57,7 @@ public class MetadataConfiguration { /** * Configures whether to expose the ALPS resources. - * + * * @param alpsEnabled the alpsEnabled to set */ public void setAlpsEnabled(boolean enableAlps) { @@ -66,7 +66,7 @@ public class MetadataConfiguration { /** * Returns whether the ALPS resources are exposed. - * + * * @return the alpsEnabled */ public boolean alpsEnabled() { @@ -84,7 +84,7 @@ public class MetadataConfiguration { /** * Returns the {@link JsonSchemaFormat} to be used for the given type. - * + * * @param type must not be {@literal null}. * @return */ @@ -94,7 +94,7 @@ public class MetadataConfiguration { /** * Registers the given formatting patter for the given value type. - * + * * @param pattern must not be {@literal null} or empty. * @param type must not be {@literal null}. */ @@ -108,7 +108,7 @@ public class MetadataConfiguration { /** * Returns the {@link Pattern} registered for the given value type. - * + * * @param type must not be {@literal null}. * @return */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/Projection.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/Projection.java index c6fd8ede0..96954eef4 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/Projection.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/Projection.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 tie a particular projection type to a source type. Used to find projection interfaces at startup time. - * + * * @author Oliver Gierke */ @Inherited @@ -35,14 +35,14 @@ public @interface Projection { /** * The type the projection type is bound to. - * + * * @return */ Class[] types(); /** * The name of projection to refer to. - * + * * @return */ String name() default ""; diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/ProjectionDefinitionConfiguration.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/ProjectionDefinitionConfiguration.java index 321258ebd..0b511d0c8 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/ProjectionDefinitionConfiguration.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/ProjectionDefinitionConfiguration.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. @@ -33,7 +33,7 @@ import org.springframework.util.StringUtils; /** * Wrapper class to register projection definitions for later lookup by name and source type. - * + * * @author Oliver Gierke */ public class ProjectionDefinitionConfiguration implements ProjectionDefinitions { @@ -61,7 +61,7 @@ public class ProjectionDefinitionConfiguration implements ProjectionDefinitions /** * Configures the request parameter name to be used to accept the projection name to be returned. - * + * * @param parameterName defaults to {@value ProjectionDefinitionConfiguration#DEFAULT_PROJECTION_PARAMETER_NAME}, will * be set back to this default if {@literal null} or an empty value is configured. */ @@ -72,7 +72,7 @@ public class ProjectionDefinitionConfiguration implements ProjectionDefinitions /** * Adds the given projection type to the configuration. The type has to be annotated with {@link Projection} for * additional metadata. - * + * * @param projectionType must not be {@literal null}. * @return * @see Projection @@ -96,7 +96,7 @@ public class ProjectionDefinitionConfiguration implements ProjectionDefinitions /** * Adds a projection type for the given source types. The name of the projection will be defaulted to the * uncapitalized simply class name. - * + * * @param projectionType must not be {@literal null}. * @param sourceTypes must not be {@literal null} or empty. * @return @@ -109,7 +109,7 @@ public class ProjectionDefinitionConfiguration implements ProjectionDefinitions /** * Adds the given projection type for the given source types under the given name. - * + * * @param projectionType must not be {@literal null}. * @param name must not be {@literal null} or empty. * @param sourceTypes must not be {@literal null} or empty. @@ -129,7 +129,7 @@ public class ProjectionDefinitionConfiguration implements ProjectionDefinitions return this; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.config.ProjectionDefinitions#getProjectionType(java.lang.Class, java.lang.String) */ @@ -138,7 +138,7 @@ public class ProjectionDefinitionConfiguration implements ProjectionDefinitions return getProjectionsFor(sourceType).get(name); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.projection.ProjectionDefinitions#hasProjectionFor(java.lang.Class) */ @@ -156,7 +156,7 @@ public class ProjectionDefinitionConfiguration implements ProjectionDefinitions /** * Returns all projections registered for the given source type. - * + * * @param sourceType must not be {@literal null}. * @return */ @@ -191,7 +191,7 @@ public class ProjectionDefinitionConfiguration implements ProjectionDefinitions /** * Value object to define lookup keys for projections. - * + * * @author Oliver Gierke */ @Value @@ -203,7 +203,7 @@ public class ProjectionDefinitionConfiguration implements ProjectionDefinitions /** * Creates a new {@link ProjectionDefinitionKey} for the given source type and name; - * + * * @param sourceType must not be {@literal null}. * @param targetType must not be {@literal null}. * @param name must not be {@literal null} or empty. diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/RepositoryCorsRegistry.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/RepositoryCorsRegistry.java index fb08dd1e9..59fec32d1 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/RepositoryCorsRegistry.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/RepositoryCorsRegistry.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/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/RepositoryRestConfiguration.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/RepositoryRestConfiguration.java index 44415d095..52dfa568b 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/RepositoryRestConfiguration.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/RepositoryRestConfiguration.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 @@ import org.springframework.web.servlet.config.annotation.CorsRegistration; /** * Spring Data REST configuration options. - * + * * @author Jon Brisbin * @author Oliver Gierke * @author Jeremy Rickard @@ -81,7 +81,7 @@ public class RepositoryRestConfiguration { /** * Creates a new {@link RepositoryRestConfiguration} with the given {@link ProjectionDefinitionConfiguration}. - * + * * @param projectionConfiguration must not be {@literal null}. * @param metadataConfiguration must not be {@literal null}. * @param enumTranslationConfiguration must not be {@literal null}. @@ -101,7 +101,7 @@ public class RepositoryRestConfiguration { /** * The base URI against which the exporter should calculate its links. - * + * * @return The base URI. */ public URI getBaseUri() { @@ -110,7 +110,7 @@ public class RepositoryRestConfiguration { /** * The base path to expose repository resources under. - * + * * @return the basePath */ public URI getBasePath() { @@ -119,7 +119,7 @@ public class RepositoryRestConfiguration { /** * Configures the base path to be used by Spring Data REST to expose repository resources. - * + * * @param basePath the basePath to set */ public RepositoryRestConfiguration setBasePath(String basePath) { @@ -135,7 +135,7 @@ public class RepositoryRestConfiguration { /** * Get the default size of {@link org.springframework.data.domain.Pageable}s. Default is 20. - * + * * @return The default page size. */ public int getDefaultPageSize() { @@ -144,7 +144,7 @@ public class RepositoryRestConfiguration { /** * Set the default size of {@link org.springframework.data.domain.Pageable}s. - * + * * @param defaultPageSize The default page size. * @return {@literal this} */ @@ -156,7 +156,7 @@ public class RepositoryRestConfiguration { /** * Get the maximum size of pages. - * + * * @return Maximum page size. */ public int getMaxPageSize() { @@ -165,7 +165,7 @@ public class RepositoryRestConfiguration { /** * Set the maximum size of pages. - * + * * @param maxPageSize Maximum page size. * @return {@literal this} */ @@ -177,7 +177,7 @@ public class RepositoryRestConfiguration { /** * Get the name of the URL query string parameter that indicates what page to return. Default is 'page'. - * + * * @return Name of the query parameter used to indicate the page number to return. */ public String getPageParamName() { @@ -186,7 +186,7 @@ public class RepositoryRestConfiguration { /** * Set the name of the URL query string parameter that indicates what page to return. - * + * * @param pageParamName Name of the query parameter used to indicate the page number to return. * @return {@literal this} */ @@ -199,7 +199,7 @@ public class RepositoryRestConfiguration { /** * Get the name of the URL query string parameter that indicates how many results to return at once. Default is * 'limit'. - * + * * @return Name of the query parameter used to indicate the maximum number of entries to return at a time. */ public String getLimitParamName() { @@ -208,7 +208,7 @@ public class RepositoryRestConfiguration { /** * Set the name of the URL query string parameter that indicates how many results to return at once. - * + * * @param limitParamName Name of the query parameter used to indicate the maximum number of entries to return at a * time. * @return {@literal this} @@ -221,7 +221,7 @@ public class RepositoryRestConfiguration { /** * Get the name of the URL query string parameter that indicates what direction to sort results. Default is 'sort'. - * + * * @return Name of the query string parameter used to indicate what field to sort on. */ public String getSortParamName() { @@ -230,7 +230,7 @@ public class RepositoryRestConfiguration { /** * Set the name of the URL query string parameter that indicates what direction to sort results. - * + * * @param sortParamName Name of the query string parameter used to indicate what field to sort on. * @return {@literal this} */ @@ -242,7 +242,7 @@ public class RepositoryRestConfiguration { /** * Get the {@link MediaType} to use as a default when none is specified. - * + * * @return Default content type if none has been specified. */ public MediaType getDefaultMediaType() { @@ -251,7 +251,7 @@ public class RepositoryRestConfiguration { /** * Set the {@link MediaType} to use as a default when none is specified. - * + * * @param defaultMediaType default content type if none has been specified. * @return {@literal this} */ @@ -264,7 +264,7 @@ public class RepositoryRestConfiguration { * Returns whether HAL will be served as primary representation in case on {@code application/json} is requested. This * defaults to {@literal true}. If configured to {@literal false} the legacy Spring Data representation will be * rendered. - * + * * @return */ public boolean useHalAsDefaultJsonMediaType() { @@ -275,7 +275,7 @@ public class RepositoryRestConfiguration { * Configures whether HAL will be served as primary representation in case on {@code application/json} is requested. * This defaults to {@literal true}. If configured to {@literal false} the legacy Spring Data representation will be * rendered. - * + * * @param useHalAsDefaultJsonMediaType * @return */ @@ -287,7 +287,7 @@ public class RepositoryRestConfiguration { /** * Convenience method to activate returning response bodies for all {@code PUT} and {@code POST} requests, i.e. both * creating and updating entities. - * + * * @param returnBody can be {@literal null}, expressing the decision shall be derived from the presence of an * {@code Accept} header in the request. * @return @@ -302,7 +302,7 @@ public class RepositoryRestConfiguration { /** * Whether to return a response body after creating an entity. - * + * * @return {@link java.lang.Boolean#TRUE} to enforce returning a body on create, {@link java.lang.Boolean#FALSE} * otherwise. If {@literal null} and an {@code Accept} header present in the request will cause a body being * returned. If the {@code Accept} header is not present, no body will be rendered. @@ -315,7 +315,7 @@ public class RepositoryRestConfiguration { /** * Whether to return a response body after creating an entity considering the given accept header. - * + * * @param acceptHeader can be {@literal null} or empty. * @return */ @@ -325,7 +325,7 @@ public class RepositoryRestConfiguration { /** * Set whether to return a response body after creating an entity. - * + * * @param returnBody can be {@literal null}, expressing the decision shall be derived from the presence of an * {@code Accept} header in the request. * @return {@literal this} @@ -337,7 +337,7 @@ public class RepositoryRestConfiguration { /** * Whether to return a response body after updating an entity. - * + * * @return {@link java.lang.Boolean#TRUE} to enforce returning a body on create, {@link java.lang.Boolean#FALSE} * otherwise. If {@literal null} and an {@code Accept} header present in the request will cause a body being * returned. If the {@code Accept} header is not present, no body will be rendered. @@ -350,7 +350,7 @@ public class RepositoryRestConfiguration { /** * Whether to return a response body after updating an entity considering the given accept header. - * + * * @param acceptHeader can be {@literal null} or empty. * @return */ @@ -372,7 +372,7 @@ public class RepositoryRestConfiguration { /** * Start configuration a {@link ResourceMapping} for a specific domain type. - * + * * @param domainType The {@link Class} of the domain type to configure a mapping for. * @return A new {@link ResourceMapping} for configuring how a domain type is mapped. */ @@ -382,7 +382,7 @@ public class RepositoryRestConfiguration { /** * Get the {@link ResourceMapping} for a specific domain type. - * + * * @param domainType The {@link Class} of the domain type. * @return A {@link ResourceMapping} for that domain type or {@literal null} if none exists. */ @@ -392,7 +392,7 @@ public class RepositoryRestConfiguration { /** * Whether there is a {@link ResourceMapping} for the given domain type. - * + * * @param domainType The domain type to find a {@link ResourceMapping} for. * @return {@literal true} if a {@link ResourceMapping} exists for this domain class, {@literal false} otherwise. */ @@ -402,7 +402,7 @@ public class RepositoryRestConfiguration { /** * Get the {@link ResourceMappingConfiguration} that is currently configured. - * + * * @return */ public ResourceMappingConfiguration getDomainTypesResourceMappingConfiguration() { @@ -411,7 +411,7 @@ public class RepositoryRestConfiguration { /** * Start configuration a {@link ResourceMapping} for a specific repository interface. - * + * * @param repositoryInterface The {@link Class} of the repository interface to configure a mapping for. * @return A new {@link ResourceMapping} for configuring how a repository interface is mapped. */ @@ -421,7 +421,7 @@ public class RepositoryRestConfiguration { /** * Get the {@link ResourceMapping} for a specific repository interface. - * + * * @param repositoryInterface The {@link Class} of the repository interface. * @return A {@link ResourceMapping} for that repository interface or {@literal null} if none exists. */ @@ -431,7 +431,7 @@ public class RepositoryRestConfiguration { /** * Whether there is a {@link ResourceMapping} configured for this {@literal Repository} class. - * + * * @param repositoryInterface * @return */ @@ -449,7 +449,7 @@ public class RepositoryRestConfiguration { /** * Should we expose the ID property for this domain type? - * + * * @param domainType The domain type we may need to expose the ID for. * @return {@literal true} is the ID is to be exposed, {@literal false} otherwise. */ @@ -459,7 +459,7 @@ public class RepositoryRestConfiguration { /** * Set the list of domain types for which we will expose the ID value as a normal property. - * + * * @param domainTypes Array of types to expose IDs for. * @return {@literal this} */ @@ -470,7 +470,7 @@ public class RepositoryRestConfiguration { /** * Returns the {@link ProjectionDefinitionConfiguration} to register addition projections. - * + * * @return * @deprecated since 2.4, use {@link #getProjectionConfiguration()} instead. */ @@ -481,7 +481,7 @@ public class RepositoryRestConfiguration { /** * Returns the {@link ProjectionDefinitionConfiguration} to register addition projections. - * + * * @return */ public ProjectionDefinitionConfiguration getProjectionConfiguration() { @@ -490,7 +490,7 @@ public class RepositoryRestConfiguration { /** * Returns the {@link MetadataConfiguration} to customize metadata exposure. - * + * * @return * @deprecated since 2.4, use {@link #getMetadataConfiguration()} instead. */ @@ -501,7 +501,7 @@ public class RepositoryRestConfiguration { /** * Returns the {@link MetadataConfiguration} to customize metadata exposure. - * + * * @return */ public MetadataConfiguration getMetadataConfiguration() { @@ -512,7 +512,7 @@ public class RepositoryRestConfiguration { * Configures whether to enable enum value translation via the Spring Data REST default resource bundle. Defaults to * {@literal false} for backwards compatibility reasons. Will use the fully qualified enum name as key. For further * details see {@link EnumTranslator}. - * + * * @param enableEnumTranslation * @see #getEnumTranslationConfiguration() */ @@ -525,7 +525,7 @@ public class RepositoryRestConfiguration { /** * Returns whether enum value translation is enabled. - * + * * @return * @since 2.4 */ @@ -535,7 +535,7 @@ public class RepositoryRestConfiguration { /** * Returns the {@link EnumTranslationConfiguration} to be used. - * + * * @return must not be {@literal null}. * @since 2.4 */ @@ -546,7 +546,7 @@ public class RepositoryRestConfiguration { /** * Returns the {@link RepositoryDetectionStrategy} to be used to decide which repositories get exposed. Will be * {@link RepositoryDetectionStrategies#DEFAULT} by default. - * + * * @return will never be {@literal null}. * @see RepositoryDetectionStrategies * @since 2.5 @@ -558,7 +558,7 @@ public class RepositoryRestConfiguration { /** * Configures the {@link RepositoryDetectionStrategy} to be used to determine which repositories get exposed. Defaults * to {@link RepositoryDetectionStrategies#DEFAULT}. - * + * * @param repositoryDetectionStrategy can be {@literal null}. * @since 2.5 */ @@ -586,7 +586,7 @@ public class RepositoryRestConfiguration { /** * Returns the {@link EntityLookupRegistrar} to create custom {@link EntityLookup} instances registered in the * configuration. - * + * * @return the {@link EntityLookupRegistrar} to build custom {@link EntityLookup}s. * @since 2.5 */ @@ -596,7 +596,7 @@ public class RepositoryRestConfiguration { /** * Returns all {@link EntityLookup}s considering the customizations made to the configuration. - * + * * @param repositories must not be {@literal null}. * @return */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/ResourceMapping.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/ResourceMapping.java index e32794865..536830093 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/ResourceMapping.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/ResourceMapping.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/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/ResourceMappingConfiguration.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/ResourceMappingConfiguration.java index 8aaeba115..44b53db72 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/ResourceMappingConfiguration.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/config/ResourceMappingConfiguration.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 java.util.Map; /** * Manages the {@link ResourceMapping} configurations for any resources being exported. This includes domain entities * and repositories. - * + * * @author Jon Brisbin */ @SuppressWarnings("deprecation") diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/event/AbstractRepositoryEventListener.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/event/AbstractRepositoryEventListener.java index 102b87222..d273a32a5 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/event/AbstractRepositoryEventListener.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/event/AbstractRepositoryEventListener.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.context.ApplicationListener; /** * Abstract class that listens for generic {@link RepositoryEvent}s and dispatches them to a specific method based on * the event type. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -69,35 +69,35 @@ public abstract class AbstractRepositoryEventListener implements ApplicationL /** * Override this method if you are interested in {@literal beforeCreate} events. - * + * * @param entity The entity being created. */ protected void onBeforeCreate(T entity) {} /** * Override this method if you are interested in {@literal afterCreate} events. - * + * * @param entity The entity that was created. */ protected void onAfterCreate(T entity) {} /** * Override this method if you are interested in {@literal beforeSave} events. - * + * * @param entity The entity being saved. */ protected void onBeforeSave(T entity) {} /** * Override this method if you are interested in {@literal afterSave} events. - * + * * @param entity The entity that was just saved. */ protected void onAfterSave(T entity) {} /** * Override this method if you are interested in {@literal beforeLinkSave} events. - * + * * @param parent The parent entity to which the child object is linked. * @param linked The linked, child entity. */ @@ -105,7 +105,7 @@ public abstract class AbstractRepositoryEventListener implements ApplicationL /** * Override this method if you are interested in {@literal afterLinkSave} events. - * + * * @param parent The parent entity to which the child object is linked. * @param linked The linked, child entity. */ @@ -113,7 +113,7 @@ public abstract class AbstractRepositoryEventListener implements ApplicationL /** * Override this method if you are interested in {@literal beforeLinkDelete} events. - * + * * @param parent The parent entity to which the child object is linked. * @param linked The linked, child entity. */ @@ -121,7 +121,7 @@ public abstract class AbstractRepositoryEventListener implements ApplicationL /** * Override this method if you are interested in {@literal afterLinkDelete} events. - * + * * @param parent The parent entity to which the child object is linked. * @param linked The linked, child entity. */ @@ -129,14 +129,14 @@ public abstract class AbstractRepositoryEventListener implements ApplicationL /** * Override this method if you are interested in {@literal beforeDelete} events. - * + * * @param entity The entity that is being deleted. */ protected void onBeforeDelete(T entity) {} /** * Override this method if you are interested in {@literal afterDelete} events. - * + * * @param entity The entity that was just deleted. */ protected void onAfterDelete(T entity) {} diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/event/AnnotatedEventHandlerInvoker.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/event/AnnotatedEventHandlerInvoker.java index 72596a333..2f0047e51 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/event/AnnotatedEventHandlerInvoker.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/event/AnnotatedEventHandlerInvoker.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. @@ -52,7 +52,7 @@ import org.springframework.util.ReflectionUtils; /** * Component to discover annotated repository event handlers and trigger them on {@link ApplicationEvent}s. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -142,7 +142,7 @@ public class AnnotatedEventHandlerInvoker implements ApplicationListener persistentEntitiesFactory) { @@ -62,7 +62,7 @@ public class ValidatingRepositoryEventListener extends AbstractRepositoryEventLi /** * Assign a Map of {@link Validator}s that are assigned to the various {@link RepositoryEvent}s. - * + * * @param validators A Map of Validators to wire. * @return @this */ @@ -77,7 +77,7 @@ public class ValidatingRepositoryEventListener extends AbstractRepositoryEventLi /** * Add a {@link Validator} that will be triggered on the given event. - * + * * @param event The event to listen for. * @param validator The Validator to execute when that event fires. * @return @this diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/AnnotationBasedResourceDescription.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/AnnotationBasedResourceDescription.java index b73d75cb7..2292f33ce 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/AnnotationBasedResourceDescription.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/AnnotationBasedResourceDescription.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.util.StringUtils; /** * A {@link ResourceDescription} that is customized based on a {@link Description} annotation. Allows to fall back on * another {@link ResourceDescription} to provide defaults. - * + * * @author Oliver Gierke */ public class AnnotationBasedResourceDescription extends ResolvableResourceDescriptionSupport { @@ -34,7 +34,7 @@ public class AnnotationBasedResourceDescription extends ResolvableResourceDescri /** * Creates a new {@link AnnotationBasedResourceDescription} for the given {@link Description} and fallback. - * + * * @param description must not be {@literal null}. * @param fallback must not be {@literal null}. */ @@ -55,7 +55,7 @@ public class AnnotationBasedResourceDescription extends ResolvableResourceDescri this.fallback = fallback; } - /* + /* * (non-Javadoc) * @see org.springframework.context.MessageSourceResolvable#getCodes() */ @@ -64,7 +64,7 @@ public class AnnotationBasedResourceDescription extends ResolvableResourceDescri return fallback.getCodes(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceDescription#getMessage() */ @@ -80,7 +80,7 @@ public class AnnotationBasedResourceDescription extends ResolvableResourceDescri return null; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceDescription#isDefault() */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/CollectionResourceMapping.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/CollectionResourceMapping.java index 739edab2a..e971c84d6 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/CollectionResourceMapping.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/CollectionResourceMapping.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,21 +17,21 @@ package org.springframework.data.rest.core.mapping; /** * A custom resource mapping for collection resources. - * + * * @author Oliver Gierke */ public interface CollectionResourceMapping extends ResourceMapping { /** * Returns the relation type pointing to the item resource within a collection. - * + * * @return */ String getItemResourceRel(); /** * Returns the {@link ResourceDescription} for the item resource. - * + * * @return */ ResourceDescription getItemResourceDescription(); @@ -39,7 +39,7 @@ public interface CollectionResourceMapping extends ResourceMapping { /** * Returns the projection type to be used when embedding item resources into collections and related resources. If * {@literal null} is returned this will mean full rendering for collections and no rendering for related resources. - * + * * @return */ Class getExcerptProjection(); diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/CrudMethodsSupportedHttpMethods.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/CrudMethodsSupportedHttpMethods.java index 268a873d6..d493ee651 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/CrudMethodsSupportedHttpMethods.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/CrudMethodsSupportedHttpMethods.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. @@ -36,7 +36,7 @@ import org.springframework.util.Assert; /** * {@link SupportedHttpMethods} that are determined by a {@link CrudMethods} instance. - * + * * @author Oliver Gierke * @since 2.3 */ @@ -46,7 +46,7 @@ public class CrudMethodsSupportedHttpMethods implements SupportedHttpMethods { /** * Creates a new {@link CrudMethodsSupportedHttpMethods} for the given {@link CrudMethods}. - * + * * @param crudMethods must not be {@literal null}. */ public CrudMethodsSupportedHttpMethods(CrudMethods crudMethods) { @@ -56,7 +56,7 @@ public class CrudMethodsSupportedHttpMethods implements SupportedHttpMethods { this.exposedMethods = new DefaultExposureAwareCrudMethods(crudMethods); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.SupportedHttpMethods#getSupportedHttpMethods(org.springframework.data.rest.core.mapping.ResourceType) */ @@ -108,7 +108,7 @@ public class CrudMethodsSupportedHttpMethods implements SupportedHttpMethods { return Collections.unmodifiableSet(methods); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.SupportedHttpMethods#getMethodsFor(org.springframework.data.mapping.PersistentProperty) */ @@ -144,7 +144,7 @@ public class CrudMethodsSupportedHttpMethods implements SupportedHttpMethods { private final @NonNull CrudMethods crudMethods; - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ExposureAwareCrudMethods#exposesSave() */ @@ -153,7 +153,7 @@ public class CrudMethodsSupportedHttpMethods implements SupportedHttpMethods { return exposes(crudMethods.getSaveMethod()); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ExposureAwareCrudMethods#exposesDelete() */ @@ -162,7 +162,7 @@ public class CrudMethodsSupportedHttpMethods implements SupportedHttpMethods { return exposes(crudMethods.getDeleteMethod()) && crudMethods.hasFindOneMethod(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ExposureAwareCrudMethods#exposesFindOne() */ @@ -171,7 +171,7 @@ public class CrudMethodsSupportedHttpMethods implements SupportedHttpMethods { return exposes(crudMethods.getFindOneMethod()); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ExposureAwareCrudMethods#exposesFindAll() */ @@ -198,28 +198,28 @@ public class CrudMethodsSupportedHttpMethods implements SupportedHttpMethods { /** * Returns whether the repository exposes the save method. - * + * * @return */ boolean exposesSave(); /** * Returns whether the repository exposes the delete method. - * + * * @return */ boolean exposesDelete(); /** * Returns whether the repository exposes the method to find a single object. - * + * * @return */ boolean exposesFindOne(); /** * Returns whether the repository exposes the method to find all objects. - * + * * @return */ boolean exposesFindAll(); diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/EvoInflectorTypeBasedCollectionResourceMapping.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/EvoInflectorTypeBasedCollectionResourceMapping.java index 5579d9158..64e14d2bd 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/EvoInflectorTypeBasedCollectionResourceMapping.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/EvoInflectorTypeBasedCollectionResourceMapping.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,14 +21,14 @@ import org.springframework.hateoas.RelProvider; /** * {@link TypeBasedCollectionResourceMapping} extension to use Evo Inflector to pluralize the simple class name by as * default path. - * + * * @author Oliver Gierke */ class EvoInflectorTypeBasedCollectionResourceMapping extends TypeBasedCollectionResourceMapping { /** * Creates a new {@link EvoInflectorTypeBasedCollectionResourceMapping} for the given type and {@link RelProvider}. - * + * * @param type must not be {@literal null}. * @param relProvider must not be {@literal null}. */ @@ -36,7 +36,7 @@ class EvoInflectorTypeBasedCollectionResourceMapping extends TypeBasedCollection super(type, relProvider); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.TypeBasedCollectionResourceMapping#getDefaultPathFor(java.lang.Class) */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/MappingResourceMetadata.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/MappingResourceMetadata.java index 0e601a0b0..5cc14793d 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/MappingResourceMetadata.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/MappingResourceMetadata.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. @@ -31,7 +31,7 @@ import org.springframework.util.Assert; /** * {@link RootResourceMetadata} based on a {@link PersistentEntity}. - * + * * @author Oliver Gierke * @since 2.1 */ @@ -43,7 +43,7 @@ class MappingResourceMetadata extends TypeBasedCollectionResourceMapping impleme /** * Creates a new {@link MappingResourceMetadata} for the given {@link PersistentEntity}. - * + * * @param entity must not be {@literal null}. */ public MappingResourceMetadata(PersistentEntity entity, ResourceMappings resourceMappings) { @@ -61,7 +61,7 @@ class MappingResourceMetadata extends TypeBasedCollectionResourceMapping impleme .orElse(false); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMetadata#getDomainType() */ @@ -70,7 +70,7 @@ class MappingResourceMetadata extends TypeBasedCollectionResourceMapping impleme return entity.getType(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMetadata#isExported(org.springframework.data.mapping.PersistentProperty) */ @@ -79,7 +79,7 @@ class MappingResourceMetadata extends TypeBasedCollectionResourceMapping impleme return getMappingFor(property).isExported(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMetadata#getMappingFor(org.springframework.data.mapping.PersistentProperty) */ @@ -88,7 +88,7 @@ class MappingResourceMetadata extends TypeBasedCollectionResourceMapping impleme return propertyMappings.getMappingFor(property); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMetadata#getSearchResourceMappings() */ @@ -97,7 +97,7 @@ class MappingResourceMetadata extends TypeBasedCollectionResourceMapping impleme return new SearchResourceMappings(Collections. emptyList()); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMetadata#getSupportedHttpMethods() */ @@ -106,7 +106,7 @@ class MappingResourceMetadata extends TypeBasedCollectionResourceMapping impleme return NoSupportedMethods.INSTANCE; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.RootResourceMetadata#getProperty(java.lang.String) */ @@ -115,7 +115,7 @@ class MappingResourceMetadata extends TypeBasedCollectionResourceMapping impleme return propertyMappings.getMappingFor(mappedPath); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.TypeBasedCollectionResourceMapping#isExported() */ @@ -126,7 +126,7 @@ class MappingResourceMetadata extends TypeBasedCollectionResourceMapping impleme /** * Value object for {@link ResourceMapping}s for {@link PersistentProperty} instances. - * + * * @author Oliver Gierke * @see 2.1 */ @@ -137,7 +137,7 @@ class MappingResourceMetadata extends TypeBasedCollectionResourceMapping impleme /** * Creates a new {@link PropertyMappings} instance for the given {@link ResourceMappings}. - * + * * @param resourceMappings */ public PropertyMappings(ResourceMappings resourceMappings) { @@ -148,7 +148,7 @@ class MappingResourceMetadata extends TypeBasedCollectionResourceMapping impleme this.propertyMappings = new HashMap, PropertyAwareResourceMapping>(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.mapping.SimpleAssociationHandler#doWithAssociation(org.springframework.data.mapping.Association) */ @@ -157,7 +157,7 @@ class MappingResourceMetadata extends TypeBasedCollectionResourceMapping impleme doWithPersistentProperty(association.getInverse()); } - /* + /* * (non-Javadoc) * @see org.springframework.data.mapping.SimplePropertyHandler#doWithPersistentProperty(org.springframework.data.mapping.PersistentProperty) */ @@ -172,7 +172,7 @@ class MappingResourceMetadata extends TypeBasedCollectionResourceMapping impleme /** * Returns the {@link PropertyAwareResourceMapping} for the given mapped path. - * + * * @param mappedPath must not be {@literal null} or empty. * @return the {@link PropertyAwareResourceMapping} if found, {@literal null} otherwise. */ @@ -191,7 +191,7 @@ class MappingResourceMetadata extends TypeBasedCollectionResourceMapping impleme /** * Returns the {@link ResourceMapping} for the given {@link PersistentProperty}. - * + * * @param property must not be {@literal null}. * @return */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/MethodResourceMapping.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/MethodResourceMapping.java index cb73ed8f4..09099c6ce 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/MethodResourceMapping.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/MethodResourceMapping.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. @@ -22,28 +22,28 @@ import java.util.Optional; /** * A {@link ResourceMapping} that is backed by a {@link Method}. - * + * * @author Oliver Gierke */ public interface MethodResourceMapping extends ResourceMapping { /** * Returns the {@link Method} backing the resource. - * + * * @return */ Method getMethod(); /** * Returns {@link ParameterMetadata} instances for all named parameters. - * + * * @return */ ParametersMetadata getParametersMetadata(); /** * Returns whether the resource is sortable. - * + * * @return */ boolean isSortableResource(); @@ -51,7 +51,7 @@ public interface MethodResourceMapping extends ResourceMapping { /** * Returns the domain type that the query method returns. This will inspect wrapper types ({@link Collection}s, * {@link Map}s, {@link Optional}s etc.) for their element or value types. - * + * * @return will never be {@literal null}. * @since 2.3 */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ParameterMetadata.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ParameterMetadata.java index 2bdc39e7e..9c8c987af 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ParameterMetadata.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ParameterMetadata.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.Assert; /** * Value object to capture metadata for query method parameters. - * + * * @author Oliver Gierke */ public final class ParameterMetadata { @@ -31,7 +31,7 @@ public final class ParameterMetadata { /** * Creates a new {@link ParameterMetadata} for the given {@link MethodParameter} and base rel. - * + * * @param name must not be {@literal null} or empty. * @param baseRel must not be {@literal null} or empty. */ @@ -51,7 +51,7 @@ public final class ParameterMetadata { /** * Return sthe name of the method parameter. - * + * * @return the name */ public String getName() { @@ -60,14 +60,14 @@ public final class ParameterMetadata { /** * Returns the description for the method parameter. - * + * * @return the description */ public ResourceDescription getDescription() { return description; } - /* + /* * (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ @@ -86,7 +86,7 @@ public final class ParameterMetadata { return this.name.equals(that.name) && this.description.equals(that.description); } - /* + /* * (non-Javadoc) * @see java.lang.Object#hashCode() */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ParametersMetadata.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ParametersMetadata.java index 4951d7dc9..1ea52c983 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ParametersMetadata.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ParametersMetadata.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 org.springframework.util.Assert; /** * Value object for a list of {@link ParameterMetadata} instances. - * + * * @author Oliver Gierke */ public class ParametersMetadata implements Iterable { @@ -32,7 +32,7 @@ public class ParametersMetadata implements Iterable { /** * Creates a new {@link ParametersMetadata} instance for the given {@link ParameterMetadata} instances. - * + * * @param parameterMetadata must not be {@literal null}. */ ParametersMetadata(List parameterMetadata) { @@ -44,7 +44,7 @@ public class ParametersMetadata implements Iterable { /** * Returns all parameter names. - * + * * @return */ public List getParameterNames() { @@ -58,7 +58,7 @@ public class ParametersMetadata implements Iterable { return names; } - /* + /* * (non-Javadoc) * @see java.lang.Iterable#iterator() */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/PersistentEntitiesResourceMappings.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/PersistentEntitiesResourceMappings.java index e2b40b349..ef2080a07 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/PersistentEntitiesResourceMappings.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/PersistentEntitiesResourceMappings.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. @@ -31,7 +31,7 @@ import org.springframework.util.ClassUtils; /** * {@link ResourceMappings} for {@link PersistentEntities}. - * + * * @author Oliver Gierke * @author Mark Paluch */ @@ -47,14 +47,14 @@ public class PersistentEntitiesResourceMappings implements ResourceMappings { /** * Creates a new {@link PersistentEntitiesResourceMappings} from the given {@link PersistentEntities}. - * + * * @param entities must not be {@literal null}. */ public PersistentEntitiesResourceMappings(PersistentEntities entities) { this.entities = entities; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMappings#getMappingFor(java.lang.Class) */ @@ -77,7 +77,7 @@ public class PersistentEntitiesResourceMappings implements ResourceMappings { /** * Returns the {@link MappingResourceMetadata} for the given type. - * + * * @param type must not be {@literal null}. * @return the {@link MappingResourceMetadata} if the given type is a {@link PersistentEntity}, {@literal null} * otherwise. @@ -104,7 +104,7 @@ public class PersistentEntitiesResourceMappings implements ResourceMappings { }).orElse(null); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMappings#getSearchResourceMappings(java.lang.Class) */ @@ -113,7 +113,7 @@ public class PersistentEntitiesResourceMappings implements ResourceMappings { return searchResourceMappings; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMappings#exportsMappingFor(java.lang.Class) */ @@ -128,7 +128,7 @@ public class PersistentEntitiesResourceMappings implements ResourceMappings { return metadata.isExported(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMappings#exportsTopLevelResourceFor(java.lang.String) */ @@ -146,7 +146,7 @@ public class PersistentEntitiesResourceMappings implements ResourceMappings { return false; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMappings#hasMappingFor(java.lang.Class) */ @@ -160,7 +160,7 @@ public class PersistentEntitiesResourceMappings implements ResourceMappings { return false; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMetadataProvider#getMappingFor(org.springframework.data.mapping.PersistentProperty) */ @@ -185,7 +185,7 @@ public class PersistentEntitiesResourceMappings implements ResourceMappings { return metadata != null && metadata.isExported(); } - /* + /* * (non-Javadoc) * @see java.lang.Iterable#iterator() */ @@ -205,7 +205,7 @@ public class PersistentEntitiesResourceMappings implements ResourceMappings { /** * Adds the given {@link ResourceMetadata} to the cache. - * + * * @param type must not be {@literal null}. * @param metadata can be {@literal null}. */ @@ -215,7 +215,7 @@ public class PersistentEntitiesResourceMappings implements ResourceMappings { /** * Returns whether we currently already have {@link ResourceMetadata} for the given type. - * + * * @param type must not be {@literal null}. * @return */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/PersistentPropertyResourceMapping.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/PersistentPropertyResourceMapping.java index 96a777dfe..8fd6c5654 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/PersistentPropertyResourceMapping.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/PersistentPropertyResourceMapping.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. @@ -27,7 +27,7 @@ import org.springframework.util.StringUtils; /** * Special resource mapping for {@link PersistentProperty} instances. - * + * * @author Oliver Gierke */ class PersistentPropertyResourceMapping implements PropertyAwareResourceMapping { @@ -39,7 +39,7 @@ class PersistentPropertyResourceMapping implements PropertyAwareResourceMapping /** * Creates a new {@link RootPropertyResourceMapping}. - * + * * @param property must not be {@literal null}. * @param exported whether the property is exported or not. */ @@ -54,7 +54,7 @@ class PersistentPropertyResourceMapping implements PropertyAwareResourceMapping this.description = Optional.ofNullable(property.findAnnotation(Description.class)); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#getPath() */ @@ -66,7 +66,7 @@ class PersistentPropertyResourceMapping implements PropertyAwareResourceMapping .orElseGet(() -> new Path(property.getName())); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#getRel() */ @@ -78,7 +78,7 @@ class PersistentPropertyResourceMapping implements PropertyAwareResourceMapping .orElseGet(() -> property.getName()); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#isExported() */ @@ -93,7 +93,7 @@ class PersistentPropertyResourceMapping implements PropertyAwareResourceMapping return !typeMapping.isExported() ? false : annotation.map(it -> it.exported()).orElse(true); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#isPagingResource() */ @@ -102,7 +102,7 @@ class PersistentPropertyResourceMapping implements PropertyAwareResourceMapping return false; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#getDescription() */ @@ -118,7 +118,7 @@ class PersistentPropertyResourceMapping implements PropertyAwareResourceMapping .orElse(fallback); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.PropertyAwareResourceMapping#getProperty() */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/PropertyAwareResourceMapping.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/PropertyAwareResourceMapping.java index ffc2b6c89..61c074d0b 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/PropertyAwareResourceMapping.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/PropertyAwareResourceMapping.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/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryAwareResourceMetadata.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryAwareResourceMetadata.java index 14fffa29e..ef7e42b60 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryAwareResourceMetadata.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryAwareResourceMetadata.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.util.Assert; /** * {@link ResourceMetadata} for a single repository. - * + * * @author Oliver Gierke */ class RepositoryAwareResourceMetadata implements ResourceMetadata { @@ -40,7 +40,7 @@ class RepositoryAwareResourceMetadata implements ResourceMetadata { /** * Creates a new {@link RepositoryAwareResourceMetadata} for the given {@link CollectionResourceMapping}, * {@link ResourceMappings} and {@link RepositoryMetadata}. - * + * * @param entity must not be {@literal null}. * @param mapping must not be {@literal null}. * @param provider must not be {@literal null}. @@ -63,14 +63,14 @@ class RepositoryAwareResourceMetadata implements ResourceMetadata { /** * Returns whether the current {@link RootResourceMetadata} instance for the repository is the primary one to be used. * Reflects to the primary state of the bean definition. - * + * * @return */ public boolean isPrimary() { return AnnotationUtils.findAnnotation(repositoryMetadata.getRepositoryInterface(), Primary.class) != null; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMetadata#getDomainType() */ @@ -79,7 +79,7 @@ class RepositoryAwareResourceMetadata implements ResourceMetadata { return repositoryMetadata.getDomainType(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.RootResourceMetadata#getProperty(java.lang.String) */ @@ -93,7 +93,7 @@ class RepositoryAwareResourceMetadata implements ResourceMetadata { return mappingMetadata.getProperty(mappedPath); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMetadataProvider#getMappingFor(org.springframework.data.mapping.PersistentProperty) */ @@ -102,7 +102,7 @@ class RepositoryAwareResourceMetadata implements ResourceMetadata { return provider.getMappingFor(property); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMetadataProvider#hasMappingFor(org.springframework.data.mapping.PersistentProperty) */ @@ -111,7 +111,7 @@ class RepositoryAwareResourceMetadata implements ResourceMetadata { return provider.isMapped(property); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.CollectionResourceMapping#isExported() */ @@ -120,7 +120,7 @@ class RepositoryAwareResourceMetadata implements ResourceMetadata { return mapping.isExported(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.CollectionResourceMapping#getCollectionRel() */ @@ -129,7 +129,7 @@ class RepositoryAwareResourceMetadata implements ResourceMetadata { return mapping.getRel(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.CollectionResourceMapping#getSingleResourceRel() */ @@ -138,7 +138,7 @@ class RepositoryAwareResourceMetadata implements ResourceMetadata { return mapping.getItemResourceRel(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.CollectionResourceMapping#getPath() */ @@ -147,7 +147,7 @@ class RepositoryAwareResourceMetadata implements ResourceMetadata { return mapping.getPath(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.CollectionResourceMapping#isPagingResource() */ @@ -156,7 +156,7 @@ class RepositoryAwareResourceMetadata implements ResourceMetadata { return mapping.isPagingResource(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#getDescription() */ @@ -165,7 +165,7 @@ class RepositoryAwareResourceMetadata implements ResourceMetadata { return mapping.getDescription(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.CollectionResourceMapping#getItemResourceDescription() */ @@ -174,7 +174,7 @@ class RepositoryAwareResourceMetadata implements ResourceMetadata { return mapping.getItemResourceDescription(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.CollectionResourceMapping#getExcerptProjection() */ @@ -183,7 +183,7 @@ class RepositoryAwareResourceMetadata implements ResourceMetadata { return mapping.getExcerptProjection(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMetadata#getSearchResourceMappings() */ @@ -192,7 +192,7 @@ class RepositoryAwareResourceMetadata implements ResourceMetadata { return provider.getSearchResourceMappings(repositoryMetadata.getDomainType()); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMetadata#getSupportedHttpMethods() */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryCollectionResourceMapping.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryCollectionResourceMapping.java index b3cd7460a..c92173b2c 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryCollectionResourceMapping.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryCollectionResourceMapping.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. @@ -32,7 +32,7 @@ import org.springframework.util.StringUtils; * {@link CollectionResourceMapping} to be built from repository interfaces. Will inspect {@link RestResource} * annotations on the repository interface but fall back to the mapping information of the managed domain type for * defaults. - * + * * @author Oliver Gierke */ class RepositoryCollectionResourceMapping implements CollectionResourceMapping { @@ -53,7 +53,7 @@ class RepositoryCollectionResourceMapping implements CollectionResourceMapping { /** * Creates a new {@link RepositoryCollectionResourceMapping} for the given repository using the given * {@link RelProvider}. - * + * * @param strategy must not be {@literal null}. * @param relProvider must not be {@literal null}. * @param repositoryType must not be {@literal null}. @@ -84,7 +84,7 @@ class RepositoryCollectionResourceMapping implements CollectionResourceMapping { } } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#getPath() */ @@ -106,7 +106,7 @@ class RepositoryCollectionResourceMapping implements CollectionResourceMapping { return fallback; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#getRel() */ @@ -128,7 +128,7 @@ class RepositoryCollectionResourceMapping implements CollectionResourceMapping { return fallback; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.CollectionResourceMapping#getSingleResourceRel() */ @@ -145,7 +145,7 @@ class RepositoryCollectionResourceMapping implements CollectionResourceMapping { return fallback; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#isExported() */ @@ -154,7 +154,7 @@ class RepositoryCollectionResourceMapping implements CollectionResourceMapping { return repositoryExported; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.CollectionResourceMapping#isPagingResource() */ @@ -163,7 +163,7 @@ class RepositoryCollectionResourceMapping implements CollectionResourceMapping { return metadata.isPagingRepository(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#getDescription() */ @@ -179,7 +179,7 @@ class RepositoryCollectionResourceMapping implements CollectionResourceMapping { return fallback; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.CollectionResourceMapping#getItemResourceDescription() */ @@ -195,7 +195,7 @@ class RepositoryCollectionResourceMapping implements CollectionResourceMapping { return fallback; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.CollectionResourceMapping#getExcerptProjection() */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryDetectionStrategy.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryDetectionStrategy.java index 9868373ad..fe4199735 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryDetectionStrategy.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryDetectionStrategy.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 org.springframework.data.rest.core.annotation.RestResource; /** * The strategy to determine whether a given repository is to be exported by Spring Data REST. - * + * * @author Oliver Gierke * @since 2.5 * @soundtrack Katinka - Ausverkauf @@ -33,7 +33,7 @@ public interface RepositoryDetectionStrategy { /** * Returns whether the repository described by the given {@link RepositoryMetadata} is exported or not. - * + * * @param metadata must not be {@literal null}. * @return */ @@ -61,7 +61,7 @@ public interface RepositoryDetectionStrategy { /** * Exposes public interfaces or ones explicitly annotated with {@link RepositoryRestResource}. - * + * * @see #VISIBILITY * @see #ANNOTATED */ @@ -101,7 +101,7 @@ public interface RepositoryDetectionStrategy { /** * Returns whether the given type was explicitly exported using {@link RepositoryRestResource} or * {@link RestResource}. In case no decision can be made based on the annotations, the fallback will be used. - * + * * @param type must not be {@literal null}. * @param fallback * @return diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryMethodResourceMapping.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryMethodResourceMapping.java index dd931149c..f885702d8 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryMethodResourceMapping.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryMethodResourceMapping.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. @@ -37,7 +37,7 @@ import org.springframework.util.StringUtils; /** * A {@link RepositoryMethodResourceMapping} created from a {@link Method}. - * + * * @author Oliver Gierke */ class RepositoryMethodResourceMapping implements MethodResourceMapping { @@ -58,7 +58,7 @@ class RepositoryMethodResourceMapping implements MethodResourceMapping { /** * Creates a new {@link RepositoryMethodResourceMapping} for the given {@link Method}. - * + * * @param method must not be {@literal null}. * @param resourceMapping must not be {@literal null}. */ @@ -98,7 +98,7 @@ class RepositoryMethodResourceMapping implements MethodResourceMapping { return Collections.unmodifiableList(result); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#isExported() */ @@ -107,7 +107,7 @@ class RepositoryMethodResourceMapping implements MethodResourceMapping { return isExported; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#getRel() */ @@ -116,7 +116,7 @@ class RepositoryMethodResourceMapping implements MethodResourceMapping { return rel; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#getPath() */ @@ -125,7 +125,7 @@ class RepositoryMethodResourceMapping implements MethodResourceMapping { return path; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.MethodResourceMapping#getMethod() */ @@ -134,7 +134,7 @@ class RepositoryMethodResourceMapping implements MethodResourceMapping { return method; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.MethodResourceMapping#getParameterMetadata() */ @@ -143,7 +143,7 @@ class RepositoryMethodResourceMapping implements MethodResourceMapping { return new ParametersMetadata(parameterMetadata); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#isPagingResource() */ @@ -152,7 +152,7 @@ class RepositoryMethodResourceMapping implements MethodResourceMapping { return paging; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.MethodResourceMapping#isSortableResource() */ @@ -161,7 +161,7 @@ class RepositoryMethodResourceMapping implements MethodResourceMapping { return sorting; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#getDescription() */ @@ -170,7 +170,7 @@ class RepositoryMethodResourceMapping implements MethodResourceMapping { return null; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.MethodResourceMapping#getProjectionSourceType() */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryResourceMappings.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryResourceMappings.java index e136f1ce6..5128ed99d 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryResourceMappings.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryResourceMappings.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. @@ -34,7 +34,7 @@ import org.springframework.util.Assert; /** * Central abstraction obtain {@link ResourceMetadata} and {@link ResourceMapping} instances for domain types and * repositories. - * + * * @author Oliver Gierke */ public class RepositoryResourceMappings extends PersistentEntitiesResourceMappings { @@ -45,7 +45,7 @@ public class RepositoryResourceMappings extends PersistentEntitiesResourceMappin /** * Creates a new {@link RepositoryResourceMappings} using the given {@link Repositories} and * {@link PersistentEntities}. - * + * * @param repositories must not be {@literal null}. * @param entities must not be {@literal null}. * @param strategy must not be {@literal null}. @@ -58,7 +58,7 @@ public class RepositoryResourceMappings extends PersistentEntitiesResourceMappin /** * Creates a new {@link RepositoryResourceMappings} from the given {@link RepositoryRestConfiguration}, * {@link Repositories} and {@link RelProvider}. - * + * * @param repositories must not be {@literal null}. * @param entities must not be {@literal null}. * @param strategy must not be {@literal null}. @@ -98,7 +98,7 @@ public class RepositoryResourceMappings extends PersistentEntitiesResourceMappin } } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMappings#getSearchResourceMappings(java.lang.Class) */ @@ -130,7 +130,7 @@ public class RepositoryResourceMappings extends PersistentEntitiesResourceMappin return searchResourceMappings; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMappings#hasMappingFor(java.lang.Class) */ @@ -148,7 +148,7 @@ public class RepositoryResourceMappings extends PersistentEntitiesResourceMappin return false; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.PersistentEntitiesResourceMappings#isMapped(org.springframework.data.mapping.PersistentProperty) */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResolvableResourceDescriptionSupport.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResolvableResourceDescriptionSupport.java index f26d99ef7..9aed3a312 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResolvableResourceDescriptionSupport.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResolvableResourceDescriptionSupport.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. @@ -19,12 +19,12 @@ import org.springframework.context.MessageSourceResolvable; /** * Adapter class for the {@link MessageSourceResolvable} part of a {@link ResourceDescription}. - * + * * @author Oliver Gierke */ public abstract class ResolvableResourceDescriptionSupport implements ResourceDescription { - /* + /* * (non-Javadoc) * @see org.springframework.context.MessageSourceResolvable#getArguments() */ @@ -33,7 +33,7 @@ public abstract class ResolvableResourceDescriptionSupport implements ResourceDe return new Object[0]; } - /* + /* * (non-Javadoc) * @see org.springframework.context.MessageSourceResolvable#getDefaultMessage() */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResourceDescription.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResourceDescription.java index 3463e45aa..712240786 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResourceDescription.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResourceDescription.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.http.MediaType; /** * A description of a resource. Resolvable to plain text by using a {@link MessageSource}. - * + * * @author Oliver Gierke */ public interface ResourceDescription extends MessageSourceResolvable { @@ -29,14 +29,14 @@ public interface ResourceDescription extends MessageSourceResolvable { /** * Returns the description. This can be a message source code or a custom text format. Prefer resolving the * {@link ResourceDescription} using a {@link MessageSource}. - * + * * @return */ String getMessage(); /** * Returns whether this is the default description. - * + * * @return */ boolean isDefault(); diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResourceMapping.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResourceMapping.java index bfb869dbe..edf248afb 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResourceMapping.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResourceMapping.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. @@ -19,42 +19,42 @@ import org.springframework.data.rest.core.Path; /** * Mapping information for components to be exported as REST resources. - * + * * @author Oliver Gierke */ public interface ResourceMapping { /** * Returns whether the component shall be exported at all. - * + * * @return will never be {@literal null}. */ boolean isExported(); /** * Returns the relation for the resource exported. - * + * * @return will never be {@literal null}. */ String getRel(); /** * Returns the path the resource is exposed under. - * + * * @return will never be {@literal null}. */ Path getPath(); /** * Returns whether the resource is paging one. - * + * * @return */ boolean isPagingResource(); /** * Returns the resource's description. - * + * * @return */ ResourceDescription getDescription(); diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResourceMappings.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResourceMappings.java index bd34e6133..0e1090c3d 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResourceMappings.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResourceMappings.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 @@ public interface ResourceMappings extends Streamable { /** * Returns a {@link ResourceMetadata} for the given type if available. - * + * * @param type must not be {@literal null}. * @return the {@link ResourceMetadata} if available or {@literal null} otherwise. */ @@ -32,7 +32,7 @@ public interface ResourceMappings extends Streamable { /** * Returns the {@link ResourceMapping}s for the search resources of the given type. - * + * * @param type must not be {@literal null}. * @return will never be {@literal null}. */ @@ -40,7 +40,7 @@ public interface ResourceMappings extends Streamable { /** * Returns whether we have a {@link ResourceMapping} for the given type and it is exported. - * + * * @param type * @return */ @@ -48,7 +48,7 @@ public interface ResourceMappings extends Streamable { /** * Returns whether we export a top-level resource for the given path. - * + * * @param path must not be {@literal null} or empty. * @return */ @@ -56,7 +56,7 @@ public interface ResourceMappings extends Streamable { /** * Returns whether we have a {@link ResourceMapping} for the given type. - * + * * @param type must not be {@literal null}. * @return */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResourceMetadata.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResourceMetadata.java index fa10c8783..4e89d245d 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResourceMetadata.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResourceMetadata.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. @@ -20,21 +20,21 @@ import org.springframework.http.HttpMethod; /** * Interface for metadata of resources exposed through the system. - * + * * @author Oliver Gierke */ public interface ResourceMetadata extends CollectionResourceMapping { /** * Returns the domain type that is exposed through the resource. - * + * * @return */ Class getDomainType(); /** * Returns whether the given {@link PersistentProperty} is a managed resource and in fact exported. - * + * * @param property must not be {@literal null}. * @return */ @@ -42,7 +42,7 @@ public interface ResourceMetadata extends CollectionResourceMapping { /** * Returns the {@link PropertyAwareResourceMapping} for the given mapped path. - * + * * @param mappedPath must not be {@literal null} or empty. * @return the {@link PropertyAwareResourceMapping} for the given path or {@literal null} if none found. */ @@ -50,7 +50,7 @@ public interface ResourceMetadata extends CollectionResourceMapping { /** * Returns the {@link ResourceMapping} for the given {@link PersistentProperty} or {@literal null} if not managed. - * + * * @param property must not be {@literal null}. * @return */ @@ -59,14 +59,14 @@ public interface ResourceMetadata extends CollectionResourceMapping { /** * Returns the {@link SearchResourceMappings}, i.e. the mappings for the search resource exposed for the current * resource. - * + * * @return */ SearchResourceMappings getSearchResourceMappings(); /** * Returns the supported {@link HttpMethod}s for the given {@link ResourceType}. - * + * * @param resourcType must not be {@literal null}. * @return */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResourceType.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResourceType.java index 63e7f3809..fad4c91a0 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResourceType.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ResourceType.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 @@ package org.springframework.data.rest.core.mapping; /** * An enum listing all supported resource types. - * + * * @author Oliver Gierke */ public enum ResourceType { diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/SearchResourceMappings.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/SearchResourceMappings.java index d0adfd913..4351267d0 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/SearchResourceMappings.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/SearchResourceMappings.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. @@ -28,7 +28,7 @@ import org.springframework.util.Assert; /** * {@link ResourceMapping} for all search resources. - * + * * @author Oliver Gierke */ public class SearchResourceMappings implements Iterable, ResourceMapping { @@ -43,7 +43,7 @@ public class SearchResourceMappings implements Iterable, /** * Creates a new {@link SearchResourceMappings} from the given - * + * * @param mappings */ public SearchResourceMappings(List mappings) { @@ -67,7 +67,7 @@ public class SearchResourceMappings implements Iterable, /** * Returns the method mapped to the given path. - * + * * @param path must not be {@literal null} or empty. * @return */ @@ -81,7 +81,7 @@ public class SearchResourceMappings implements Iterable, /** * Returns the mappings for all exported query methods. - * + * * @return * @since 2.3 */ @@ -100,7 +100,7 @@ public class SearchResourceMappings implements Iterable, /** * Returns the {@link MappingResourceMetadata} for the given relation name. - * + * * @param rel must not be {@literal null} or empty. * @return * @since 2.3 @@ -121,7 +121,7 @@ public class SearchResourceMappings implements Iterable, /** * Returns the {@link MethodResourceMapping} for the given path. - * + * * @param path must not be {@literal null} or empty. * @return * @since 2.4 @@ -140,7 +140,7 @@ public class SearchResourceMappings implements Iterable, return null; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#getPath() */ @@ -149,7 +149,7 @@ public class SearchResourceMappings implements Iterable, return PATH; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#getRel() */ @@ -158,7 +158,7 @@ public class SearchResourceMappings implements Iterable, return REL; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#isExported() */ @@ -167,7 +167,7 @@ public class SearchResourceMappings implements Iterable, return !mappings.isEmpty(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#isPagingResource() */ @@ -176,7 +176,7 @@ public class SearchResourceMappings implements Iterable, return false; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#getDescription() */ @@ -185,7 +185,7 @@ public class SearchResourceMappings implements Iterable, return null; } - /* + /* * (non-Javadoc) * @see java.lang.Iterable#iterator() */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/SimpleResourceDescription.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/SimpleResourceDescription.java index 05e8ab2ee..c0ec1bcb8 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/SimpleResourceDescription.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/SimpleResourceDescription.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. @@ -32,7 +32,7 @@ public class SimpleResourceDescription extends ResolvableResourceDescriptionSupp /** * Creates a new {@link SimpleResourceDescription} with the given message and {@link MediaType}. - * + * * @param message must not be {@literal null} or empty. * @param mediaType must not be {@literal null} or empty. */ @@ -73,7 +73,7 @@ public class SimpleResourceDescription extends ResolvableResourceDescriptionSupp return StringUtils.hasText(message) && message.startsWith(DEFAULT_KEY_PREFIX); } - /* + /* * (non-Javadoc) * @see org.springframework.context.MessageSourceResolvable#getCodes() */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/SupportedHttpMethods.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/SupportedHttpMethods.java index 487fe4b0b..15c42bfd1 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/SupportedHttpMethods.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/SupportedHttpMethods.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. @@ -23,14 +23,14 @@ import org.springframework.http.HttpMethod; /** * An API to discover the {@link HttpMethod}s supported on a given {@link ResourceType}. - * + * * @author Oliver Gierke */ public interface SupportedHttpMethods { /** * Returns the supported {@link HttpMethod}s for the given {@link ResourceType}. - * + * * @param type must not be {@literal null}. * @return */ @@ -38,7 +38,7 @@ public interface SupportedHttpMethods { /** * Returns the supported {@link HttpMethod}s for the given {@link PersistentProperty}. - * + * * @param property must not be {@literal null}. * @return */ @@ -53,7 +53,7 @@ public interface SupportedHttpMethods { INSTANCE; - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.SupportedHttpMethods#getSupportedHttpMethods(org.springframework.data.rest.core.mapping.ResourceType) */ @@ -62,7 +62,7 @@ public interface SupportedHttpMethods { return Collections.emptySet(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.SupportedHttpMethods#getMethodsFor(org.springframework.data.mapping.PersistentProperty) */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/TypeBasedCollectionResourceMapping.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/TypeBasedCollectionResourceMapping.java index 9392fefd8..717aae49c 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/TypeBasedCollectionResourceMapping.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/TypeBasedCollectionResourceMapping.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. @@ -29,7 +29,7 @@ import org.springframework.util.StringUtils; /** * {@link CollectionResourceMapping} based on a type. Will derive default relation types and pathes from the type but * inspect it for {@link RestResource} annotations for customization. - * + * * @author Oliver Gierke */ class TypeBasedCollectionResourceMapping implements CollectionResourceMapping { @@ -41,7 +41,7 @@ class TypeBasedCollectionResourceMapping implements CollectionResourceMapping { /** * Creates a new {@link TypeBasedCollectionResourceMapping} using the given type. - * + * * @param type must not be {@literal null}. */ public TypeBasedCollectionResourceMapping(Class type) { @@ -50,7 +50,7 @@ class TypeBasedCollectionResourceMapping implements CollectionResourceMapping { /** * Creates a new {@link TypeBasedCollectionResourceMapping} using the given type and {@link RelProvider}. - * + * * @param type must not be {@literal null}. * @param relProvider must not be {@literal null}. */ @@ -65,7 +65,7 @@ class TypeBasedCollectionResourceMapping implements CollectionResourceMapping { this.description = AnnotationUtils.findAnnotation(type, Description.class); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#getPath() */ @@ -77,7 +77,7 @@ class TypeBasedCollectionResourceMapping implements CollectionResourceMapping { return new Path(path); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#isExported() */ @@ -86,7 +86,7 @@ class TypeBasedCollectionResourceMapping implements CollectionResourceMapping { return annotation != null ? annotation.exported() : Modifier.isPublic(type.getModifiers()); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#getRel() */ @@ -100,7 +100,7 @@ class TypeBasedCollectionResourceMapping implements CollectionResourceMapping { return annotation.rel(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.CollectionResourceMapping#getSingleResourceRel() */ @@ -109,7 +109,7 @@ class TypeBasedCollectionResourceMapping implements CollectionResourceMapping { return relProvider.getItemResourceRelFor(type); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.CollectionResourceMapping#isPagingResource() */ @@ -118,7 +118,7 @@ class TypeBasedCollectionResourceMapping implements CollectionResourceMapping { return false; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#getDescription() */ @@ -138,7 +138,7 @@ class TypeBasedCollectionResourceMapping implements CollectionResourceMapping { return fallback; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.CollectionResourceMapping#getItemResourceDescription() */ @@ -158,7 +158,7 @@ class TypeBasedCollectionResourceMapping implements CollectionResourceMapping { return fallback; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.CollectionResourceMapping#getExcerptProjection() */ @@ -169,7 +169,7 @@ class TypeBasedCollectionResourceMapping implements CollectionResourceMapping { /** * Returns the default path to be used if the path is not configured manually. - * + * * @param type must not be {@literal null}. * @return */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/TypedResourceDescription.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/TypedResourceDescription.java index fd0eba424..c3bdce95c 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/TypedResourceDescription.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/TypedResourceDescription.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. @@ -25,7 +25,7 @@ import org.springframework.util.StringUtils; * {@link SimpleResourceDescription} that additionally captures a type to be able to potentially create a reasonable * default message. The implementation will do so for enum types by rendering the available values as default message * and also provide them as arguments for message resolution. - * + * * @author Oliver Gierke */ public class TypedResourceDescription extends SimpleResourceDescription { @@ -34,7 +34,7 @@ public class TypedResourceDescription extends SimpleResourceDescription { /** * Creates a new {@link TypedResourceDescription} for the given message, {@link MediaType} and type. - * + * * @param message must not be {@literal null} or empty. * @param mediaType must not be {@literal null} or empty. * @param type can be {@literal null}, defaults to {@link Object}. @@ -62,7 +62,7 @@ public class TypedResourceDescription extends SimpleResourceDescription { return new TypedResourceDescription(message, DEFAULT_MEDIA_TYPE, type); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResolvableResourceDescriptionSupport#getArguments() */ @@ -71,7 +71,7 @@ public class TypedResourceDescription extends SimpleResourceDescription { return type.isEnum() ? new Object[] { getEnumValues(type) } : new Object[0]; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResolvableResourceDescriptionSupport#getDefaultMessage() */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/projection/ProjectionDefinitions.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/projection/ProjectionDefinitions.java index 709736c06..1155847aa 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/projection/ProjectionDefinitions.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/projection/ProjectionDefinitions.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. @@ -18,14 +18,14 @@ package org.springframework.data.rest.core.projection; /** * Interface to allow the lookup of a projection interface by source type and name. This allows the definition of * projections with the same name for different source types. - * + * * @author Oliver Gierke */ public interface ProjectionDefinitions { /** * Returns the projection type for the given source type and name. - * + * * @param sourceType must not be {@literal null}. * @param name must not be {@literal null} or empty. * @return @@ -34,7 +34,7 @@ public interface ProjectionDefinitions { /** * Returns whether we have a projection registered for the given source type. - * + * * @param sourceType must not be {@literal null}. * @return */ @@ -42,7 +42,7 @@ public interface ProjectionDefinitions { /** * Returns the request parameter to be used to expose the projection to the web. - * + * * @return the parameterName will never be {@literal null} or empty. */ String getParameterName(); diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/DefaultSelfLinkProvider.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/DefaultSelfLinkProvider.java index 3961bb3fd..e880745c2 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/DefaultSelfLinkProvider.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/DefaultSelfLinkProvider.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. @@ -26,7 +26,7 @@ import org.springframework.util.Assert; /** * Default implementation of SelfLinkProvider that uses an {@link EntityLinks} instance to create self links. Considers * the configured {@link EntityLookup}s to use the returned resource identifier to eventually create the link. - * + * * @author Oliver Gierke * @since 2.5 * @soundtrack Trio Rotation - Travis @@ -40,7 +40,7 @@ public class DefaultSelfLinkProvider implements SelfLinkProvider { /** * Creates a new {@link DefaultSelfLinkProvider} from the {@link PersistentEntities}, {@link EntityLinks} and * {@link EntityLookup}s. - * + * * @param entities must not be {@literal null}. * @param entityLinks must not be {@literal null}. * @param lookups must not be {@literal null}. @@ -70,7 +70,7 @@ public class DefaultSelfLinkProvider implements SelfLinkProvider { /** * Returns the identifier to be used to create the self link URI. - * + * * @param instance must not be {@literal null}. * @return */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/DomainObjectMerger.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/DomainObjectMerger.java index 3ccf07f28..f804e881a 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/DomainObjectMerger.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/DomainObjectMerger.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. @@ -32,7 +32,7 @@ import org.springframework.util.ObjectUtils; /** * Component to be able to merge the first level of two objects. - * + * * @author Jon Brisbin * @author Oliver Gierke * @author Willie Wheeler @@ -44,7 +44,7 @@ public class DomainObjectMerger { /** * Creates a new {@link DomainObjectMerger} for the given {@link Repositories} and {@link ConversionService}. - * + * * @param repositories must not be {@literal null}. * @param conversionService must not be {@literal null}. */ @@ -60,7 +60,7 @@ public class DomainObjectMerger { /** * Merges the given target object into the source one. - * + * * @param from can be {@literal null}. * @param target can be {@literal null}. * @param nullPolicy how to handle {@literal null} values in the source object. @@ -126,7 +126,7 @@ public class DomainObjectMerger { /** * Returns whether the given source is {@literal null} or considered empty, which means it's an {@link Iterable} or * array and doesn't have any elements. - * + * * @param source can be {@literal null}. * @return */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/EntityLookup.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/EntityLookup.java index 4be1502d3..504b4ab9f 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/EntityLookup.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/EntityLookup.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 org.springframework.plugin.core.Plugin; * SPI to customize which property of an entity is used as unique identifier and how the entity instance is looked up * from the backend. Prefer to extend {@link EntityLookupSupport} to let the generics declaration be used for the * {@link #supports(Object)} method automatically. - * + * * @author Oliver Gierke * @see EntityLookupSupport * @see DefaultSelfLinkProvider @@ -37,7 +37,7 @@ public interface EntityLookup extends Plugin> { * Returns the property of the given entity that shall be used to uniquely identify it. If no {@link EntityLookup} is * defined for a particular type, a standard identifier lookup mechanism (i.e. the datastore identifier) will be used * to eventually create an identifying URI. - * + * * @param entity will never be {@literal null}. * @return must not be {@literal null}. */ @@ -50,7 +50,7 @@ public interface EntityLookup extends Plugin> { *

* Implementations are free to return {@literal null} to indicate absence of a value or wrap the result into any * generally supported {@code Optional} type. - * + * * @param id will never be {@literal null}. * @return can be {@literal null}. */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/EntityLookupSupport.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/EntityLookupSupport.java index a1f8d75b4..09ec18b63 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/EntityLookupSupport.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/EntityLookupSupport.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 org.springframework.core.GenericTypeResolver; /** * {@link EntityLookup} implementation base class to derive the supported domain type from the generics signature. - * + * * @author Oliver Gierke * @since 2.5 * @soundtrack Elephants Crossing - The New (Live at Stadtfest Dresden - @@ -36,7 +36,7 @@ public abstract class EntityLookupSupport implements EntityLookup { this.domainType = GenericTypeResolver.resolveTypeArgument(getClass(), EntityLookup.class); } - /* + /* * (non-Javadoc) * @see org.springframework.plugin.core.Plugin#supports(java.lang.Object) */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/RepositoryRelProvider.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/RepositoryRelProvider.java index 9cf52ae70..a7fd6a531 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/RepositoryRelProvider.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/RepositoryRelProvider.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; /** * A {@link RelProvider} based on the {@link ResourceMappings} for the registered repositories. - * + * * @author Oliver Gierke */ @Order(Ordered.LOWEST_PRECEDENCE + 10) @@ -34,7 +34,7 @@ public class RepositoryRelProvider implements RelProvider { /** * Creates a new {@link RepositoryRelProvider} for the given {@link ResourceMappings}. - * + * * @param mappings must not be {@literal null}. */ public RepositoryRelProvider(ObjectFactory mappings) { @@ -43,7 +43,7 @@ public class RepositoryRelProvider implements RelProvider { this.mappings = mappings; } - /* + /* * (non-Javadoc) * @see org.springframework.hateoas.RelProvider#getCollectionResourceRelFor(java.lang.Class) */ @@ -52,7 +52,7 @@ public class RepositoryRelProvider implements RelProvider { return mappings.getObject().getMetadataFor(type).getRel(); } - /* + /* * (non-Javadoc) * @see org.springframework.hateoas.RelProvider#getItemResourceRelFor(java.lang.Class) */ @@ -61,7 +61,7 @@ public class RepositoryRelProvider implements RelProvider { return mappings.getObject().getMetadataFor(type).getItemResourceRel(); } - /* + /* * (non-Javadoc) * @see org.springframework.plugin.core.Plugin#supports(java.lang.Object) */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/ResourceMappingUtils.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/ResourceMappingUtils.java index 213a7a9da..94bdc1ce8 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/ResourceMappingUtils.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/ResourceMappingUtils.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. @@ -30,7 +30,7 @@ import org.springframework.data.rest.core.config.ResourceMapping; /** * Helper methods to get the default rel and path values or to use values supplied by annotations. - * + * * @author Jon Brisbin * @author Florent Biville * @author Oliver Gierke diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/ResourceStringUtils.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/ResourceStringUtils.java index 6d3040f13..03e432d38 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/ResourceStringUtils.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/ResourceStringUtils.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.rest.core.support; /** * Helper methods aiming at handling String representations of resources. - * + * * @author Florent Biville */ public class ResourceStringUtils { @@ -25,7 +25,7 @@ public class ResourceStringUtils { /** * Checks whether the given input contains actual text (slash excluded). This is a specializing variant of * {@link org.springframework.util.StringUtils )}#hasText. - * + * * @param input */ public static boolean hasTextExceptSlash(CharSequence input) { @@ -43,7 +43,7 @@ public class ResourceStringUtils { /** * Returns a string without the leading slash, if any. - * + * * @param path */ public static String removeLeadingSlash(String path) { diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/SelfLinkProvider.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/SelfLinkProvider.java index cef33ebe6..b77ddbbb2 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/SelfLinkProvider.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/SelfLinkProvider.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 org.springframework.hateoas.Link; /** * Component to create self links for entity instances. - * + * * @author Oliver Gierke * @since 2.5 * @soundtrack Trio Rotation - Rotation @@ -28,7 +28,7 @@ public interface SelfLinkProvider { /** * Returns the self link for the given entity instance. - * + * * @param instance must never be {@literal null}. * @return will never be {@literal null}. */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/SimpleRelProvider.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/SimpleRelProvider.java index 4a8a72c08..599525f88 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/SimpleRelProvider.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/SimpleRelProvider.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. @@ -23,7 +23,7 @@ import org.springframework.util.StringUtils; */ public class SimpleRelProvider implements RelProvider { - /* + /* * (non-Javadoc) * @see org.springframework.plugin.core.Plugin#supports(java.lang.Object) */ @@ -32,7 +32,7 @@ public class SimpleRelProvider implements RelProvider { return true; } - /* + /* * (non-Javadoc) * @see org.springframework.hateoas.RelProvider#getItemResourceRelFor(java.lang.Class) */ @@ -43,7 +43,7 @@ public class SimpleRelProvider implements RelProvider { return String.format("%s.%s", collectionRel, collectionRel); } - /* + /* * (non-Javadoc) * @see org.springframework.hateoas.RelProvider#getCollectionResourceRelFor(java.lang.Class) */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/UnwrappingRepositoryInvokerFactory.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/UnwrappingRepositoryInvokerFactory.java index 09e38d940..8f7227fa3 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/UnwrappingRepositoryInvokerFactory.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/support/UnwrappingRepositoryInvokerFactory.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. @@ -37,7 +37,7 @@ import org.springframework.util.MultiValueMap; /** * {@link RepositoryInvokerFactory} that wraps the {@link RepositoryInvokerFactory} returned by the delegate with one * that automatically unwraps JDK 8 {@link Optional} and Guava {@link com.google.common.base.Optional}s. - * + * * @author Oliver Gierke */ public class UnwrappingRepositoryInvokerFactory implements RepositoryInvokerFactory { @@ -59,7 +59,7 @@ public class UnwrappingRepositoryInvokerFactory implements RepositoryInvokerFact this.lookups = Java8PluginRegistry.of(lookups); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.support.RepositoryInvokerFactory#getInvokerFor(java.lang.Class) */ @@ -74,7 +74,7 @@ public class UnwrappingRepositoryInvokerFactory implements RepositoryInvokerFact /** * {@link RepositoryInvoker} that post-processes invocations of {@link RepositoryInvoker#invokeFindOne(Serializable)} * and {@link #invokeQueryMethod(Method, MultiValueMap, Pageable, Sort)} using the given {@link Converter}s. - * + * * @author Oliver Gierke */ @RequiredArgsConstructor @@ -97,7 +97,7 @@ public class UnwrappingRepositoryInvokerFactory implements RepositoryInvokerFact return Optionals.firstNonEmpty(viaLookup, fallback); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.support.RepositoryInvoker#invokeQueryMethod(java.lang.reflect.Method, org.springframework.util.MultiValueMap, org.springframework.data.domain.Pageable, org.springframework.data.domain.Sort) */ @@ -107,7 +107,7 @@ public class UnwrappingRepositoryInvokerFactory implements RepositoryInvokerFact return delegate.invokeQueryMethod(method, parameters, pageable, sort); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.support.RepositoryInvocationInformation#hasDeleteMethod() */ @@ -116,7 +116,7 @@ public class UnwrappingRepositoryInvokerFactory implements RepositoryInvokerFact return delegate.hasDeleteMethod(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.support.RepositoryInvocationInformation#hasFindAllMethod() */ @@ -125,7 +125,7 @@ public class UnwrappingRepositoryInvokerFactory implements RepositoryInvokerFact return delegate.hasFindAllMethod(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.support.RepositoryInvocationInformation#hasFindOneMethod() */ @@ -134,7 +134,7 @@ public class UnwrappingRepositoryInvokerFactory implements RepositoryInvokerFact return delegate.hasFindOneMethod(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.support.RepositoryInvocationInformation#hasSaveMethod() */ @@ -152,7 +152,7 @@ public class UnwrappingRepositoryInvokerFactory implements RepositoryInvokerFact delegate.invokeDeleteById(id); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.support.RepositoryInvoker#invokeFindAll(org.springframework.data.domain.Pageable) */ @@ -161,7 +161,7 @@ public class UnwrappingRepositoryInvokerFactory implements RepositoryInvokerFact return delegate.invokeFindAll(pageable); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.support.RepositoryInvoker#invokeFindAll(org.springframework.data.domain.Sort) */ @@ -170,7 +170,7 @@ public class UnwrappingRepositoryInvokerFactory implements RepositoryInvokerFact return delegate.invokeFindAll(sort); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.support.RepositoryInvoker#invokeSave(java.lang.Object) */ diff --git a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/util/Java8PluginRegistry.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/util/Java8PluginRegistry.java index a6f31bccb..917c70969 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/util/Java8PluginRegistry.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/util/Java8PluginRegistry.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/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/util/MapUtils.java b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/util/MapUtils.java index da186f12d..2b784d7e3 100644 --- a/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/util/MapUtils.java +++ b/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/util/MapUtils.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. @@ -26,14 +26,14 @@ import org.springframework.util.MultiValueMap; /** * Helper methods to work with {@link Map}s. - * + * * @author Oliver Gierke */ public interface MapUtils { /** * Turns a {@link MultiValueMap} into its {@link Map} equivalent. - * + * * @param map must not be {@literal null}. * @return */ diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/AbstractIntegrationTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/AbstractIntegrationTests.java index a7b10143b..15d87934c 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/AbstractIntegrationTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/AbstractIntegrationTests.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. @@ -26,7 +26,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; /** * Base class for integration tests loading {@link RepositoryTestsConfig} and populating the {@link PersonRepository} * with a {@link Person}. - * + * * @author Oliver Gierke */ @RunWith(SpringJUnit4ClassRunner.class) diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/PathUnitTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/PathUnitTests.java index bfc54acf5..a7df312c7 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/PathUnitTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/PathUnitTests.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. @@ -21,7 +21,7 @@ import org.junit.Test; /** * Unit tests for {@link Path}. - * + * * @author Oliver Gierke */ public class PathUnitTests { diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/RepositoryRestConfigurationIntegrationTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/RepositoryRestConfigurationIntegrationTests.java index 32bb4564a..573e58d8f 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/RepositoryRestConfigurationIntegrationTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/RepositoryRestConfigurationIntegrationTests.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. @@ -25,7 +25,7 @@ import org.springframework.data.rest.core.domain.ConfiguredPersonRepository; /** * Tests to check that {@link ResourceMapping}s are handled correctly. - * + * * @author Jon Brisbin * @author Oliver Gierke */ diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/RepositoryRestConfigurationUnitTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/RepositoryRestConfigurationUnitTests.java index d6d3a7b60..c807dc7ec 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/RepositoryRestConfigurationUnitTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/RepositoryRestConfigurationUnitTests.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.springframework.web.cors.CorsConfiguration; /** * Unit tests for {@link RepositoryRestConfiguration}. - * + * * @author Oliver Gierke * @author Mark Paluch * @soundtrack Adam F - Circles (Colors) diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/RepositoryTestsConfig.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/RepositoryTestsConfig.java index 7bcdca6d8..abe8cfe5d 100644 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/RepositoryTestsConfig.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/RepositoryTestsConfig.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. diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/UriToEntityConverterUnitTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/UriToEntityConverterUnitTests.java index b6a2ad6ea..71e192a2a 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/UriToEntityConverterUnitTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/UriToEntityConverterUnitTests.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 org.springframework.data.util.Streamable; /** * Unit tests for {@link UriToEntityConverter}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/ValidationErrorsUnitTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/ValidationErrorsUnitTests.java index 7e6a07c40..119f8b29b 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/ValidationErrorsUnitTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/ValidationErrorsUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 original author or authors. + * Copyright 2016-2018 original author 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.validation.Errors; /** * Unit tests for {@link ValidationErrors}. - * + * * @author Oliver Gierke */ public class ValidationErrorsUnitTests { diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/config/ProjectionDefinitionConfigurationUnitTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/config/ProjectionDefinitionConfigurationUnitTests.java index 8533f524e..419e04eb2 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/config/ProjectionDefinitionConfigurationUnitTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/config/ProjectionDefinitionConfigurationUnitTests.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.rest.core.config.ProjectionDefinitionConfigurati /** * Unit tests for {@link ProjectionDefinitionConfiguration}. - * + * * @author Oliver Gierke */ public class ProjectionDefinitionConfigurationUnitTests { diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/config/ResourceMappingUnitTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/config/ResourceMappingUnitTests.java index 0dbdbe224..8a2efef01 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/config/ResourceMappingUnitTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/config/ResourceMappingUnitTests.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. @@ -32,7 +32,7 @@ import org.springframework.hateoas.core.EvoInflectorRelProvider; /** * Ensure the {@link ResourceMapping} components convey the correct information. - * + * * @author Jon Brisbin */ @SuppressWarnings("deprecation") diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/context/RepositoryEventIntegrationTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/context/RepositoryEventIntegrationTests.java index c0a80edec..df42ec50d 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/context/RepositoryEventIntegrationTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/context/RepositoryEventIntegrationTests.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. @@ -45,7 +45,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; /** * Tests around the {@link org.springframework.context.ApplicationEvent} handling abstractions. - * + * * @author Jon Brisbin * @author Oliver Gierke */ diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/context/ValidatorIntegrationTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/context/ValidatorIntegrationTests.java index e403cb3bc..ae137b15a 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/context/ValidatorIntegrationTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/context/ValidatorIntegrationTests.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. @@ -37,7 +37,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; /** * Tests to check the {@link org.springframework.validation.Validator} integration. - * + * * @author Jon Brisbin * @author Oliver Gierke */ diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/AnnotatedPersonEventHandler.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/AnnotatedPersonEventHandler.java index 6f0aea12e..b95614db5 100644 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/AnnotatedPersonEventHandler.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/AnnotatedPersonEventHandler.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.data.rest.core.annotation.RepositoryEventHandler; /** * Sample annotation-based event handler. - * + * * @author Jon Brisbin * @author Oliver Gierke */ diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/AnnotatedPersonRepository.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/AnnotatedPersonRepository.java index 04b9a6be9..ddfab97c0 100644 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/AnnotatedPersonRepository.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/AnnotatedPersonRepository.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. @@ -21,7 +21,7 @@ import org.springframework.data.rest.core.annotation.RestResource; /** * A repository to manage {@link org.springframework.data.rest.core.domain.Person}s. - * + * * @author Jon Brisbin */ @RestResource(rel = "people", exported = false) diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/Author.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/Author.java index 04c590fd8..0fb780c46 100644 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/Author.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/Author.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. diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/AuthorRepository.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/AuthorRepository.java index 8f491a03a..1072ceed6 100644 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/AuthorRepository.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/AuthorRepository.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. diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/CreditCard.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/CreditCard.java index 4c49a001f..d321cb8bf 100644 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/CreditCard.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/CreditCard.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. diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/CreditCardRepository.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/CreditCardRepository.java index a5e547a68..add168fe1 100644 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/CreditCardRepository.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/CreditCardRepository.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. diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/EventHandlerInvokedException.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/EventHandlerInvokedException.java index ac6f45cb2..91ea36b38 100644 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/EventHandlerInvokedException.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/EventHandlerInvokedException.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. diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/JpaRepositoryConfig.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/JpaRepositoryConfig.java index c30e0ca16..a8ac37238 100644 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/JpaRepositoryConfig.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/JpaRepositoryConfig.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. diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/Order.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/Order.java index b997ff2f2..bf2075321 100644 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/Order.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/Order.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. diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/OrderRepository.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/OrderRepository.java index be28f896e..2a74c1808 100644 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/OrderRepository.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/OrderRepository.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.CrudRepository; */ public interface OrderRepository extends CrudRepository { - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.CrudRepository#save(java.lang.Object) */ diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/Person.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/Person.java index ce6c7ad13..fbb0802e8 100644 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/Person.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/Person.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. @@ -29,7 +29,7 @@ import org.springframework.data.rest.core.annotation.RestResource; /** * An entity that represents a person. - * + * * @author Jon Brisbin * @author Oliver Gierke */ diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/PersonBeforeSaveHandler.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/PersonBeforeSaveHandler.java index 0c61ab4f6..a6a2d8eaa 100644 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/PersonBeforeSaveHandler.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/PersonBeforeSaveHandler.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. diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/PersonRepository.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/PersonRepository.java index 1965574f9..b2d38933a 100644 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/PersonRepository.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/PersonRepository.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.rest.core.annotation.RestResource; /** * A repository to manage {@link Person}s. - * + * * @author Jon Brisbin * @author Oliver Gierke */ diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/PlainPersonRepository.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/PlainPersonRepository.java index 32c91b64a..8dfbbb7ad 100644 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/PlainPersonRepository.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/PlainPersonRepository.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. @@ -20,7 +20,7 @@ import org.springframework.data.repository.NoRepositoryBean; /** * A repository to manage {@link Person}s. - * + * * @author Jon Brisbin */ @NoRepositoryBean diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/Profile.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/Profile.java index b6f864df9..d8c090785 100644 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/Profile.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/Profile.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. diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/ProfileLoader.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/ProfileLoader.java index c388349b1..7e1578bd7 100644 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/ProfileLoader.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/ProfileLoader.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. diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/ProfileRepository.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/ProfileRepository.java index d08590c46..2ad0998b2 100644 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/ProfileRepository.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/domain/ProfileRepository.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. @@ -21,7 +21,7 @@ import org.springframework.data.repository.CrudRepository; /** * Repository for managing {@link Profile}s. - * + * * @author Jon Brisbin * @author Oliver Gierke */ diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/event/AnnotatedEventHandlerInvokerUnitTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/event/AnnotatedEventHandlerInvokerUnitTests.java index 692f66d0f..38a59f414 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/event/AnnotatedEventHandlerInvokerUnitTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/event/AnnotatedEventHandlerInvokerUnitTests.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/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/CrudMethodsSupportedHttpMethodsUnitTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/CrudMethodsSupportedHttpMethodsUnitTests.java index 483b9de1f..d66f22f29 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/CrudMethodsSupportedHttpMethodsUnitTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/CrudMethodsSupportedHttpMethodsUnitTests.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. @@ -41,7 +41,7 @@ import org.springframework.http.HttpMethod; /** * Unit tests for {@link CrudMethodsSupportedHttpMethods}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/MappingResourceMetadataUnitTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/MappingResourceMetadataUnitTests.java index 7f7209039..65fafc2f2 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/MappingResourceMetadataUnitTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/MappingResourceMetadataUnitTests.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. @@ -31,7 +31,7 @@ import org.springframework.data.rest.core.annotation.RestResource; /** * Unit tests for {@link MappingResourceMetadata}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/PersistentPropertyResourceMappingUnitTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/PersistentPropertyResourceMappingUnitTests.java index dd1e31f30..5e5c7425c 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/PersistentPropertyResourceMappingUnitTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/PersistentPropertyResourceMappingUnitTests.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 org.springframework.data.rest.core.annotation.RestResource; /** * Unit tests for {@link PersistentPropertyResourceMapping}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/RepositoryCollectionResourceMappingUnitTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/RepositoryCollectionResourceMappingUnitTests.java index b099e24fa..c0198e404 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/RepositoryCollectionResourceMappingUnitTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/RepositoryCollectionResourceMappingUnitTests.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.data.rest.core.mapping.RepositoryDetectionStrategy.Re /** * Unit tests for {@link RepositoryCollectionResourceMapping}. - * + * * @author Oliver Gierke */ public class RepositoryCollectionResourceMappingUnitTests { diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/RepositoryDetectionStrategiesUnitTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/RepositoryDetectionStrategiesUnitTests.java index 1c41ec313..7c656c018 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/RepositoryDetectionStrategiesUnitTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/RepositoryDetectionStrategiesUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 original author or authors. + * Copyright 2015-2018 original author 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.rest.core.mapping.RepositoryDetectionStrategy.Re /** * Unit tests for {@link RepositoryDetectionStrategies}. - * + * * @author Oliver Gierke * @soundtrack Katinka - Ausverkauf */ diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/RepositoryMethodResourceMappingUnitTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/RepositoryMethodResourceMappingUnitTests.java index 08c4eedc1..5c85ce12f 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/RepositoryMethodResourceMappingUnitTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/RepositoryMethodResourceMappingUnitTests.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.data.rest.core.mapping.RepositoryDetectionStrategy.Re /** * Unit tests for {@link RepositoryMethodResourceMapping}. - * + * * @author Oliver Gierke */ public class RepositoryMethodResourceMappingUnitTests { diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/RepositoryResourceMappingsIntegrationTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/RepositoryResourceMappingsIntegrationTests.java index 779f6d312..97d9e3dc3 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/RepositoryResourceMappingsIntegrationTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/RepositoryResourceMappingsIntegrationTests.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. @@ -44,7 +44,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; /** * Integration tests for {@link RepositoryResourceMappings}. - * + * * @author Oliver Gierke * @author Greg Turnquist */ diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/TypeBasedCollectionResourceMappingUnitTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/TypeBasedCollectionResourceMappingUnitTests.java index 12d37d9d9..26480ce83 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/TypeBasedCollectionResourceMappingUnitTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/mapping/TypeBasedCollectionResourceMappingUnitTests.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. @@ -23,7 +23,7 @@ import org.springframework.data.rest.core.annotation.RestResource; /** * Unit tests for {@link TypeBasedCollectionResourceMapping}. - * + * * @author Oliver Gierke */ public class TypeBasedCollectionResourceMappingUnitTests { diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/support/DefaultSelfLinkProviderUnitTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/support/DefaultSelfLinkProviderUnitTests.java index 7cf009323..db3f80021 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/support/DefaultSelfLinkProviderUnitTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/support/DefaultSelfLinkProviderUnitTests.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.springframework.hateoas.Link; /** * Unit tests for {@link DefaultSelfLinkProvider}. - * + * * @author Oliver Gierke * @soundtrack Trio Rotation - Triopane */ diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/support/DomainObjectMergerTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/support/DomainObjectMergerTests.java index d2e237dca..7735942dc 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/support/DomainObjectMergerTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/support/DomainObjectMergerTests.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.test.context.junit4.SpringJUnit4ClassRunner; /** * Integration tests for {@link DomainObjectMerger}. - * + * * @author Greg Turnquist * @author Oliver Gierke */ diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/support/DomainObjectMergerUnitTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/support/DomainObjectMergerUnitTests.java index b28e2dc09..628f77627 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/support/DomainObjectMergerUnitTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/support/DomainObjectMergerUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 original author or authors. + * Copyright 2014-2018 original author 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.junit.Test; /** * Unit tests for {@link DomainObjectMerger}. - * + * * @author Oliver Gierke */ public class DomainObjectMergerUnitTests { diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/support/ResourceStringUtilsTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/support/ResourceStringUtilsTests.java index 056a3c740..8426096b4 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/support/ResourceStringUtilsTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/support/ResourceStringUtilsTests.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.junit.runners.Parameterized.Parameters; /** * Ensures proper detection and removal of leading slash in strings. - * + * * @author Florent Biville */ @RunWith(Parameterized.class) diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/support/UnwrappingRepositoryInvokerFactoryUnitTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/support/UnwrappingRepositoryInvokerFactoryUnitTests.java index 622cf06cd..0f158b316 100755 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/support/UnwrappingRepositoryInvokerFactoryUnitTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/support/UnwrappingRepositoryInvokerFactoryUnitTests.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 org.springframework.data.rest.core.domain.Profile; /** * Unit tests for {@link UnwrappingRepositoryInvokerFactory}. - * + * * @author Oliver Gierke */ @RunWith(Parameterized.class) diff --git a/spring-data-rest-hal-browser/src/main/java/org/springframework/data/rest/webmvc/halbrowser/HalBrowser.java b/spring-data-rest-hal-browser/src/main/java/org/springframework/data/rest/webmvc/halbrowser/HalBrowser.java index 992a13f8a..0b495da1f 100644 --- a/spring-data-rest-hal-browser/src/main/java/org/springframework/data/rest/webmvc/halbrowser/HalBrowser.java +++ b/spring-data-rest-hal-browser/src/main/java/org/springframework/data/rest/webmvc/halbrowser/HalBrowser.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. @@ -28,7 +28,7 @@ import org.springframework.web.util.UriComponents; /** * Controller with a few convenience redirects to expose the HAL browser shipped as static content. - * + * * @author Oliver Gierke * @soundtrack Miles Davis - So what (Kind of blue) */ @@ -40,7 +40,7 @@ public class HalBrowser { /** * Redirects requests to the API root asking for HTML to the HAL browser. - * + * * @return */ @RequestMapping(value = { "/", "" }, method = RequestMethod.GET, produces = MediaType.TEXT_HTML_VALUE) @@ -50,7 +50,7 @@ public class HalBrowser { /** * Redirects to the actual {@code index.html}. - * + * * @return */ @RequestMapping(value = "/browser", method = RequestMethod.GET) @@ -60,7 +60,7 @@ public class HalBrowser { /** * Returns the View to redirect to to access the HAL browser. - * + * * @param request must not be {@literal null}. * @param browserRelative * @return diff --git a/spring-data-rest-hal-browser/src/test/java/org/springframework/data/rest/webmvc/halbrowser/HalBrowserIntegrationTests.java b/spring-data-rest-hal-browser/src/test/java/org/springframework/data/rest/webmvc/halbrowser/HalBrowserIntegrationTests.java index 446588d45..48b79eafd 100755 --- a/spring-data-rest-hal-browser/src/test/java/org/springframework/data/rest/webmvc/halbrowser/HalBrowserIntegrationTests.java +++ b/spring-data-rest-hal-browser/src/test/java/org/springframework/data/rest/webmvc/halbrowser/HalBrowserIntegrationTests.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/spring-data-rest-hal-browser/src/test/java/org/springframework/data/rest/webmvc/halbrowser/HalBrowserUnitTests.java b/spring-data-rest-hal-browser/src/test/java/org/springframework/data/rest/webmvc/halbrowser/HalBrowserUnitTests.java index 796d6d9d3..8c3b6db62 100755 --- a/spring-data-rest-hal-browser/src/test/java/org/springframework/data/rest/webmvc/halbrowser/HalBrowserUnitTests.java +++ b/spring-data-rest-hal-browser/src/test/java/org/springframework/data/rest/webmvc/halbrowser/HalBrowserUnitTests.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. @@ -33,7 +33,7 @@ import org.springframework.web.util.UriComponentsBuilder; /** * Unit tests for {@link HalBrowser}. - * + * * @author Oliver Gierke * @soundtrack Nils Wülker - Homeless Diamond (feat. Lauren Flynn) */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/AbstractControllerIntegrationTests.java b/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/AbstractControllerIntegrationTests.java index 342ca02cc..ab41781ac 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/AbstractControllerIntegrationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/AbstractControllerIntegrationTests.java @@ -1,6 +1,6 @@ package org.springframework.data.rest.tests; /* - * 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. @@ -49,7 +49,7 @@ import org.springframework.web.context.request.WebRequest; /** * Base class to write integration tests for controllers. - * + * * @author Oliver Gierke */ @RunWith(SpringJUnit4ClassRunner.class) @@ -87,7 +87,7 @@ public abstract class AbstractControllerIntegrationTests { /** * Returns a {@link RootResourceInformation} for the given domain type. - * + * * @param domainType must not be {@literal null}. * @return */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/AbstractWebIntegrationTests.java b/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/AbstractWebIntegrationTests.java index c4aa7c430..2cce55df1 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/AbstractWebIntegrationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/AbstractWebIntegrationTests.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/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/CommonWebTests.java b/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/CommonWebTests.java index 5f8c13fad..2d59d0e80 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/CommonWebTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/CommonWebTests.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/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/RepositoryTestsConfig.java b/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/RepositoryTestsConfig.java index 5586e1f5a..65333eee5 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/RepositoryTestsConfig.java +++ b/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/RepositoryTestsConfig.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/RequestParameters.java b/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/RequestParameters.java index e21f9a6a6..54ea88cab 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/RequestParameters.java +++ b/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/RequestParameters.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/ResourceTester.java b/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/ResourceTester.java index 98bb6bb76..02e23a65d 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/ResourceTester.java +++ b/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/ResourceTester.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. @@ -30,7 +30,7 @@ import org.springframework.web.util.UriTemplate; /** * Simple wrapper for {@link Resource}s to allow easy assertions on it. - * + * * @author Oliver Gierke */ public class ResourceTester { @@ -44,7 +44,7 @@ public class ResourceTester { /** * Creates a new {@link ResourceTester} for the given {@link ResourceSupport}. - * + * * @param resource must not be {@literal null}. */ private ResourceTester(ResourceSupport resource) { @@ -54,7 +54,7 @@ public class ResourceTester { /** * Asserts that the {@link Resource} contains the given number of {@link Link}s. - * + * * @param number */ public void assertNumberOfLinks(int number) { @@ -63,7 +63,7 @@ public class ResourceTester { /** * Asserts that the {@link Resource} has a link with the given rel and href. - * + * * @param rel must not be {@literal null}. * @param href can be {@literal null}, if so, only the presence of a {@link Link} with the given rel is checked. */ @@ -73,7 +73,7 @@ public class ResourceTester { /** * Asserts that the {@link Resource} has a link with the given rel and ending with the given href. - * + * * @param rel must not be {@literal null}. * @param href can be {@literal null}, if so, only the presence of a {@link Link} with the given rel is checked. */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/TestMvcClient.java b/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/TestMvcClient.java index f5da14dd4..5d298cfea 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/TestMvcClient.java +++ b/spring-data-rest-tests/spring-data-rest-tests-core/src/test/java/org/springframework/data/rest/tests/TestMvcClient.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. @@ -43,7 +43,7 @@ import org.springframework.web.context.request.ServletRequestAttributes; /** * Helper methods for web integration testing. - * + * * @author Oliver Gierke * @author Greg Turnquist */ @@ -56,7 +56,7 @@ public class TestMvcClient { /** * Creates a new {@link TestMvcClient} for the given {@link MockMvc} and {@link LinkDiscoverers}. - * + * * @param mvc must not be {@literal null}. * @param discoverers must not be {@literal null}. */ @@ -191,7 +191,7 @@ public class TestMvcClient { /** * Follow URL supplied as a string with a specific Accept header. - * + * * @param href * @param accept * @return @@ -214,7 +214,7 @@ public class TestMvcClient { /** * Discover single URI associated with a rel, starting at the root node ("/") - * + * * @param rel * @return * @throws Exception @@ -228,7 +228,7 @@ public class TestMvcClient { /** * Traverses the given link relations from the root. - * + * * @param rels * @return * @throws Exception diff --git a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/AbstractPersistentEntity.java b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/AbstractPersistentEntity.java index 3152e9e45..fc6505055 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/AbstractPersistentEntity.java +++ b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/AbstractPersistentEntity.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. @@ -19,7 +19,7 @@ import org.springframework.data.annotation.Id; /** * Base class for persistent classes. - * + * * @author Oliver Gierke * @author David Turanski */ @@ -29,7 +29,7 @@ public class AbstractPersistentEntity { /** * Returns the identifier of the entity. - * + * * @return the id */ public Long getId() { @@ -44,7 +44,7 @@ public class AbstractPersistentEntity { this.id = null; } - /* + /* * (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ @@ -64,7 +64,7 @@ public class AbstractPersistentEntity { return this.id.equals(that.getId()); } - /* + /* * (non-Javadoc) * @see java.lang.Object#hashCode() */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/Address.java b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/Address.java index 71b8b6b3f..0d2461565 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/Address.java +++ b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/Address.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. @@ -19,7 +19,7 @@ import org.springframework.util.Assert; /** * An address. - * + * * @author Oliver Gierke */ public class Address { @@ -28,7 +28,7 @@ public class Address { /** * Creates a new {@link Address} from the given street, city and country. - * + * * @param street must not be {@literal null} or empty. * @param city must not be {@literal null} or empty. * @param country must not be {@literal null} or empty. @@ -46,7 +46,7 @@ public class Address { /** * Returns a copy of the current {@link Address} instance which is a new entity in terms of persistence. - * + * * @return */ public Address getCopy() { @@ -55,7 +55,7 @@ public class Address { /** * Returns the street. - * + * * @return */ public String getStreet() { @@ -64,7 +64,7 @@ public class Address { /** * Returns the city. - * + * * @return */ public String getCity() { @@ -73,7 +73,7 @@ public class Address { /** * Returns the country. - * + * * @return */ public String getCountry() { diff --git a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/Customer.java b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/Customer.java index 71105e817..e10b78ddf 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/Customer.java +++ b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/Customer.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 org.springframework.util.Assert; /** * A customer. - * + * * @author Oliver Gierke * @author David Turanski * @author Mark Paluch @@ -37,7 +37,7 @@ public class Customer extends AbstractPersistentEntity { /** * Creates a new {@link Customer} from the given parameters. - * + * * @param id the unique id; * @param emailAddress must not be {@literal null} or empty. * @param firstname must not be {@literal null} or empty. @@ -58,7 +58,7 @@ public class Customer extends AbstractPersistentEntity { /** * Adds the given {@link Address} to the {@link Customer}. - * + * * @param address must not be {@literal null}. */ public void add(Address address) { @@ -69,7 +69,7 @@ public class Customer extends AbstractPersistentEntity { /** * Returns the firstname of the {@link Customer}. - * + * * @return */ public String getFirstname() { @@ -78,7 +78,7 @@ public class Customer extends AbstractPersistentEntity { /** * Sets the firstname of the {@link Customer}. - * + * * @param firstname */ public void setFirstname(String firstname) { @@ -87,7 +87,7 @@ public class Customer extends AbstractPersistentEntity { /** * Returns the lastname of the {@link Customer}. - * + * * @return */ public String getLastname() { @@ -96,7 +96,7 @@ public class Customer extends AbstractPersistentEntity { /** * Sets the lastname of the {@link Customer}. - * + * * @param lastname */ public void setLastname(String lastname) { @@ -105,7 +105,7 @@ public class Customer extends AbstractPersistentEntity { /** * Returns the {@link EmailAddress} of the {@link Customer}. - * + * * @return */ public EmailAddress getEmailAddress() { @@ -114,7 +114,7 @@ public class Customer extends AbstractPersistentEntity { /** * Sets the emailAddress of the {@link Customer}. - * + * * @param emailAddress */ public void setEmailAddress(EmailAddress emailAddress) { @@ -123,7 +123,7 @@ public class Customer extends AbstractPersistentEntity { /** * Return the {@link Customer}'s addresses. - * + * * @return */ public Set

getAddresses() { diff --git a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/CustomerRepository.java b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/CustomerRepository.java index 8d8c59314..855d475f0 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/CustomerRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/CustomerRepository.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. @@ -22,7 +22,7 @@ import org.springframework.data.repository.query.Param; /** * Repository interface to access {@link Customer}s. - * + * * @author Oliver Gierke * @author David Turanski */ @@ -30,7 +30,7 @@ public interface CustomerRepository extends CrudRepository { /** * Finds all {@link Customer}s with the given lastname. - * + * * @param lastname * @return */ @@ -38,7 +38,7 @@ public interface CustomerRepository extends CrudRepository { /** * Finds the Customer with the given {@link EmailAddress}. - * + * * @param emailAddress * @return */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/EmailAddress.java b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/EmailAddress.java index d51d68646..e644c88fd 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/EmailAddress.java +++ b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/EmailAddress.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. @@ -28,7 +28,7 @@ import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; /** * Value object to represent email addresses. - * + * * @author Oliver Gierke */ @JsonSerialize(using = ToStringSerializer.class) @@ -40,7 +40,7 @@ public final class EmailAddress { /** * Creates a new {@link EmailAddress} from the given {@link String} representation. - * + * * @param emailAddress must not be {@literal null} or empty. */ @JsonCreator @@ -52,7 +52,7 @@ public final class EmailAddress { /** * Returns whether the given {@link String} is a valid {@link EmailAddress} which means you can safely instantiate the * class. - * + * * @param candidate * @return */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/LineItem.java b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/LineItem.java index f0aa32d0f..20edff6c5 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/LineItem.java +++ b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/LineItem.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. @@ -30,7 +30,7 @@ public class LineItem { /** * Creates a new {@link LineItem} for the given {@link Product}. - * + * * @param product must not be {@literal null}. */ public LineItem(Product product) { @@ -39,7 +39,7 @@ public class LineItem { /** * Creates a new {@link LineItem} for the given {@link Product} and amount. - * + * * @param product must not be {@literal null}. * @param amount */ @@ -56,7 +56,7 @@ public class LineItem { /** * Returns the id of the {@link Product} the {@link LineItem} refers to. - * + * * @return */ public Long getProductId() { @@ -65,7 +65,7 @@ public class LineItem { /** * Returns the amount of {@link Product}s to be ordered. - * + * * @return */ public int getAmount() { @@ -74,7 +74,7 @@ public class LineItem { /** * Returns the price a single unit of the {@link LineItem}'s product. - * + * * @return the price */ public BigDecimal getUnitPrice() { @@ -83,7 +83,7 @@ public class LineItem { /** * Returns the total for the {@link LineItem}. - * + * * @return */ public BigDecimal getTotal() { diff --git a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/Order.java b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/Order.java index 92ffcf181..b8cc41209 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/Order.java +++ b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/Order.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 @@ public class Order extends AbstractPersistentEntity { /** * Creates a new {@link Order} for the given {@link org.springframework.data.rest.tests.gemfire.Customer}. - * + * * @param id order ID * @param customerId must not be {@literal null}. * @param shippingAddress must not be {@literal null}. @@ -56,7 +56,7 @@ public class Order extends AbstractPersistentEntity { /** * Adds the given {@link LineItem} to the {@link Order}. - * + * * @param lineItem */ public void add(LineItem lineItem) { @@ -66,7 +66,7 @@ public class Order extends AbstractPersistentEntity { /** * Returns the id of the {@link org.springframework.data.rest.tests.gemfire.Customer} who placed the * {@link Order}. - * + * * @return */ public Long getCustomerId() { @@ -75,7 +75,7 @@ public class Order extends AbstractPersistentEntity { /** * Returns the billing {@link Address} for this order. - * + * * @return */ public Address getBillingAddress() { @@ -84,7 +84,7 @@ public class Order extends AbstractPersistentEntity { /** * Returns the shipping {@link Address} for this order; - * + * * @return */ public Address getShippingAddress() { @@ -93,7 +93,7 @@ public class Order extends AbstractPersistentEntity { /** * Returns all {@link LineItem}s currently belonging to the {@link Order}. - * + * * @return */ public Set getLineItems() { @@ -102,7 +102,7 @@ public class Order extends AbstractPersistentEntity { /** * Returns the total of the {@link Order}. - * + * * @return */ public BigDecimal getTotal() { diff --git a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/OrderRepository.java b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/OrderRepository.java index 1d28a5efe..8e402f791 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/OrderRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/OrderRepository.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/Product.java b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/Product.java index 0835a464e..4ed0b73b6 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/Product.java +++ b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/Product.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.util.Assert; /** * A product. - * + * * @author Oliver Gierke * @author David Turanski * @author Mark Paluch @@ -40,7 +40,7 @@ public class Product extends AbstractPersistentEntity { /** * Creates a new {@link Product} with the given name. - * + * * @param id a unique Id * @param name must not be {@literal null} or empty. * @param price must not be {@literal null} or less than or equal to zero. @@ -51,7 +51,7 @@ public class Product extends AbstractPersistentEntity { /** * Creates a new {@link Product} from the given name and description. - * + * * @param id a unique Id * @param name must not be {@literal null} or empty. * @param price must not be {@literal null} or less than or equal to zero. @@ -72,7 +72,7 @@ public class Product extends AbstractPersistentEntity { /** * Sets the attribute with the given name to the given value. - * + * * @param name must not be {@literal null} or empty. * @param value */ @@ -89,7 +89,7 @@ public class Product extends AbstractPersistentEntity { /** * Returns the {@link Product}'s name. - * + * * @return */ public String getName() { @@ -98,7 +98,7 @@ public class Product extends AbstractPersistentEntity { /** * Returns the {@link Product}'s description. - * + * * @return */ public String getDescription() { @@ -107,7 +107,7 @@ public class Product extends AbstractPersistentEntity { /** * Returns all the custom attributes of the {@link Product}. - * + * * @return */ public Map getAttributes() { @@ -116,7 +116,7 @@ public class Product extends AbstractPersistentEntity { /** * Returns the price of the {@link Product}. - * + * * @return */ public BigDecimal getPrice() { diff --git a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/ProductRepository.java b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/ProductRepository.java index 1e0223c27..e0440a722 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/ProductRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/main/java/org/springframework/data/rest/tests/gemfire/ProductRepository.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. @@ -22,7 +22,7 @@ import org.springframework.data.repository.CrudRepository; /** * Repository interface to access {@link Product}s. - * + * * @author Oliver Gierke * @author David Turanski */ @@ -30,7 +30,7 @@ public interface ProductRepository extends CrudRepository { /** * Returns a list of {@link Product}s having a description which contains the given snippet. - * + * * @param the search string * @return */ @@ -38,7 +38,7 @@ public interface ProductRepository extends CrudRepository { /** * Returns all {@link Product}s having the given attribute value. - * + * * @param attribute * @param value * @return diff --git a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/test/java/org/springframework/data/rest/tests/gemfire/GemfireRepositoryConfig.java b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/test/java/org/springframework/data/rest/tests/gemfire/GemfireRepositoryConfig.java index 5eb2db4b8..534cfa83e 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/test/java/org/springframework/data/rest/tests/gemfire/GemfireRepositoryConfig.java +++ b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/test/java/org/springframework/data/rest/tests/gemfire/GemfireRepositoryConfig.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. @@ -25,7 +25,7 @@ import org.springframework.data.util.AnnotatedTypeScanner; /** * Spring JavaConfig configuration class to setup a Spring container and infrastructure components. - * + * * @author Oliver Gierke * @author David Turanski */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/test/java/org/springframework/data/rest/tests/gemfire/GemfireWebTests.java b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/test/java/org/springframework/data/rest/tests/gemfire/GemfireWebTests.java index 4bfd988e6..6c0afa233 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/test/java/org/springframework/data/rest/tests/gemfire/GemfireWebTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-gemfire/src/test/java/org/springframework/data/rest/tests/gemfire/GemfireWebTests.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. @@ -26,7 +26,7 @@ import org.springframework.test.context.ContextConfiguration; @ContextConfiguration(classes = GemfireRepositoryConfig.class) public class GemfireWebTests extends CommonWebTests { - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.AbstractWebIntegrationTests#expectedRootLinkRels() */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Address.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Address.java index c696f3a07..e0f431a97 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Address.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Address.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/AddressRepository.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/AddressRepository.java index 5370fed4e..665b04932 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/AddressRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/AddressRepository.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Author.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Author.java index a8cd88cc3..acc119ff9 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Author.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Author.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/AuthorRepository.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/AuthorRepository.java index 87f7744a5..2a844f66b 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/AuthorRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/AuthorRepository.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/AuthorsController.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/AuthorsController.java index b9434d553..746e36551 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/AuthorsController.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/AuthorsController.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 org.springframework.web.bind.annotation.RequestMethod; /** * Sample custom controller to test the ability to override - * + * * @author Oliver Gierke */ @RepositoryRestController diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Book.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Book.java index 5f6d6d8f0..1c5e02025 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Book.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Book.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/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/BookExcerpt.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/BookExcerpt.java index dc01b80c3..9a72e32b7 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/BookExcerpt.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/BookExcerpt.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. @@ -19,7 +19,7 @@ import org.springframework.data.rest.core.config.Projection; /** * Interface for an excerpt projection for {@link Book}s. - * + * * @author Oliver Gierke */ @Projection(name = "excerpt", types = Book.class) diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/BookIdConverter.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/BookIdConverter.java index 451dac17b..36d03329f 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/BookIdConverter.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/BookIdConverter.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. @@ -24,12 +24,12 @@ import org.springframework.util.StringUtils; /** * {@link BackendIdConverter} artificially transforming the actual book id into some magic {@link String} and back. - * + * * @author Oliver Gierke */ public class BookIdConverter implements BackendIdConverter { - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.support.BackendIdConverter#fromRequestId(java.lang.String, java.lang.Class) */ @@ -38,7 +38,7 @@ public class BookIdConverter implements BackendIdConverter { return Long.parseLong(id.substring(0, id.indexOf('-'))); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.support.BackendIdConverter#toRequestId(java.lang.Object, java.lang.Class) */ @@ -55,7 +55,7 @@ public class BookIdConverter implements BackendIdConverter { return StringUtils.collectionToDelimitedString(ids, "-"); } - /* + /* * (non-Javadoc) * @see org.springframework.plugin.core.Plugin#supports(java.lang.Object) */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/BookRepository.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/BookRepository.java index eb4040745..6ad866940 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/BookRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/BookRepository.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/CreditCard.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/CreditCard.java index 0c9da6e08..4a0dc113f 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/CreditCard.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/CreditCard.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/CreditCardRepository.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/CreditCardRepository.java index 086316c0e..70a5243e3 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/CreditCardRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/CreditCardRepository.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Dinner.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Dinner.java index e994cdf22..5b563724d 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Dinner.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Dinner.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/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Guest.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Guest.java index dfc2e4ed3..c2d5c5576 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Guest.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Guest.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/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Item.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Item.java index 1a5c1e8a5..6371b97b1 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Item.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Item.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/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/ItemRepository.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/ItemRepository.java index 206d3fda7..8c1447f35 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/ItemRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/ItemRepository.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/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/LineItem.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/LineItem.java index fcd508e8c..78069bea8 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/LineItem.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/LineItem.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Meal.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Meal.java index 3dd2cd4d0..c2ce0e371 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Meal.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Meal.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/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Order.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Order.java index 1b66c1b65..ba1fbcc68 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Order.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Order.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/OrderRepository.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/OrderRepository.java index d2b529df6..a042b2a30 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/OrderRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/OrderRepository.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/OrderSummary.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/OrderSummary.java index d38ae6961..20f0e76be 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/OrderSummary.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/OrderSummary.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Person.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Person.java index de7553a31..0570eba2f 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Person.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Person.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. @@ -36,7 +36,7 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; /** * An entity that represents a person. - * + * * @author Jon Brisbin */ @Entity diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/PersonRepository.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/PersonRepository.java index c8d3a6558..86f7f3a56 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/PersonRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/PersonRepository.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. @@ -31,7 +31,7 @@ import org.springframework.format.annotation.DateTimeFormat.ISO; /** * A repository to manage {@link Person}s. - * + * * @author Jon Brisbin * @author Oliver Gierke */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/PersonSummary.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/PersonSummary.java index a7af5e60c..9efe693e9 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/PersonSummary.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/PersonSummary.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Receipt.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Receipt.java index 981b8d188..b34f7df6b 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Receipt.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Receipt.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/ReceiptRepository.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/ReceiptRepository.java index fb42e7188..0a26ab8c9 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/ReceiptRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/ReceiptRepository.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Room.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Room.java index 3a3802599..7d3a87d45 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Room.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Room.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/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Suite.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Suite.java index de53ab687..640488e9c 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Suite.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Suite.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/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Type.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Type.java index a221edf7b..941e6609e 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Type.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/Type.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/User.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/User.java index 25a1ef92c..41bb619a0 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/User.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/User.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/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/UserExcerpt.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/UserExcerpt.java index 3200c17ff..c932d565c 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/UserExcerpt.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/UserExcerpt.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/UserRepository.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/UserRepository.java index ef8d949b6..d0772dcc1 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/UserRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/main/java/org/springframework/data/rest/webmvc/jpa/UserRepository.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/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/RepositoryControllerIntegrationTests.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/RepositoryControllerIntegrationTests.java index 956ca7ebd..3431b56be 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/RepositoryControllerIntegrationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/RepositoryControllerIntegrationTests.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.transaction.annotation.Transactional; /** * Integration tests for {@link RepositoryController}. - * + * * @author Oliver Gierke * @author Greg Turnquist */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/RepositoryEntityControllerIntegrationTests.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/RepositoryEntityControllerIntegrationTests.java index e4ca20906..492839da8 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/RepositoryEntityControllerIntegrationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/RepositoryEntityControllerIntegrationTests.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. @@ -55,7 +55,7 @@ import org.springframework.web.HttpRequestMethodNotSupportedException; /** * Integration tests for {@link RepositoryEntityController}. - * + * * @author Oliver Gierke * @author Jeremy Rickard */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/RepositoryPropertyReferenceControllerIntegrationTests.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/RepositoryPropertyReferenceControllerIntegrationTests.java index cebe784f7..5876d6141 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/RepositoryPropertyReferenceControllerIntegrationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/RepositoryPropertyReferenceControllerIntegrationTests.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/RepositorySearchControllerIntegrationTests.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/RepositorySearchControllerIntegrationTests.java index d60a721d8..41e9e5490 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/RepositorySearchControllerIntegrationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/RepositorySearchControllerIntegrationTests.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. @@ -50,7 +50,7 @@ import org.springframework.util.MultiValueMap; /** * Integration tests for the {@link RepositorySearchController}. - * + * * @author Oliver Gierke */ @ContextConfiguration(classes = JpaRepositoryConfig.class) diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/RootResourceInformationIntegrationTests.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/RootResourceInformationIntegrationTests.java index 57b04f1dd..393b36c27 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/RootResourceInformationIntegrationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/RootResourceInformationIntegrationTests.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. @@ -31,7 +31,7 @@ import org.springframework.transaction.annotation.Transactional; /** * Integration tests for {@link RootResourceInformation}. - * + * * @author Oliver Gierke */ @RunWith(SpringJUnit4ClassRunner.class) diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/alps/AlpsControllerIntegrationTests.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/alps/AlpsControllerIntegrationTests.java index 3472e8740..5da1287e6 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/alps/AlpsControllerIntegrationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/alps/AlpsControllerIntegrationTests.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 @@ import com.jayway.jsonpath.JsonPath; /** * Integration tests for {@link AlpsController}. - * + * * @author Oliver Gierke * @author Greg Turnquist */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/CorsIntegrationTests.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/CorsIntegrationTests.java index f70636ebc..45c64eba9 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/CorsIntegrationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/CorsIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 original author or authors. + * Copyright 2016-2018 original author 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.bind.annotation.RequestMethod; /** * Web integration tests specific to Cross-origin resource sharing. - * + * * @author Mark Paluch * @soundtrack 2 Unlimited - No Limit */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/DataRest262Tests.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/DataRest262Tests.java index 497ab601a..32bdf4cc8 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/DataRest262Tests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/DataRest262Tests.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 @@ import com.jayway.jsonpath.JsonPath; /** * Integration tests for DATAREST-262, checking serialization and deserialization of associations within embeddables. - * + * * @author Oliver Gierke */ @RunWith(SpringJUnit4ClassRunner.class) diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/DataRest363Tests.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/DataRest363Tests.java index e1e14fb3e..820cf6123 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/DataRest363Tests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/DataRest363Tests.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 org.springframework.web.context.WebApplicationContext; /** * Integration tests for DATAREST-363. - * + * * @author Greg Turnquist * @author Oliver Gierke */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/JpaDefaultPageableWebTests.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/JpaDefaultPageableWebTests.java index 25c55755f..688dac9ba 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/JpaDefaultPageableWebTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/JpaDefaultPageableWebTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 original author or authors. + * Copyright 2016-2018 original author 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.web.bind.annotation.ResponseBody; /** * Web integration tests specific to default {@link Pageable} handling. - * + * * @author Mark Paluch */ @RunWith(SpringJUnit4ClassRunner.class) diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/JpaInfrastructureConfig.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/JpaInfrastructureConfig.java index 18147b101..1f7b093d8 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/JpaInfrastructureConfig.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/JpaInfrastructureConfig.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/JpaRepositoryConfig.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/JpaRepositoryConfig.java index 970598535..6fae7991b 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/JpaRepositoryConfig.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/JpaRepositoryConfig.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. @@ -31,7 +31,7 @@ import org.springframework.web.bind.annotation.RequestMethod; /** * Test configuration for JPA. - * + * * @author Jon Brisbin * @author Oliver Gierke * @author Mark Paluch diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/JpaWebTests.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/JpaWebTests.java index b0ed04164..79392b040 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/JpaWebTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/JpaWebTests.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. @@ -56,7 +56,7 @@ import com.jayway.jsonpath.JsonPath; /** * Web integration tests specific to JPA. - * + * * @author Oliver Gierke * @author Greg Turnquist * @author Mark Paluch @@ -74,7 +74,7 @@ public class JpaWebTests extends CommonWebTests { ObjectMapper mapper = new ObjectMapper(); - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.AbstractWebIntegrationTests#setUp() */ @@ -85,7 +85,7 @@ public class JpaWebTests extends CommonWebTests { super.setUp(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.AbstractWebIntegrationTests#expectedRootLinkRels() */ @@ -94,7 +94,7 @@ public class JpaWebTests extends CommonWebTests { return Arrays.asList("people", "authors", "books"); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.AbstractWebIntegrationTests#getPayloadToPost() */ @@ -103,7 +103,7 @@ public class JpaWebTests extends CommonWebTests { return Collections.singletonMap("people", readFileFromClasspath("person.json")); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.AbstractWebIntegrationTests#getRootAndLinkedResources() */ @@ -399,7 +399,7 @@ public class JpaWebTests extends CommonWebTests { /** * Checks, that the server only returns the properties contained in the projection requested. - * + * * @see OrderSummary */ @Test // DATAREST-221 @@ -674,7 +674,7 @@ public class JpaWebTests extends CommonWebTests { /** * Asserts the {@link Person} resource the given link points to contains siblings with the given names. - * + * * @param link * @param siblingNames * @throws Exception diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/ProfileIntegrationTests.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/ProfileIntegrationTests.java index dc5aa5769..f3a2f7772 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/ProfileIntegrationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/ProfileIntegrationTests.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/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/TestDataPopulator.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/TestDataPopulator.java index 0dfbe7ff6..953096195 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/TestDataPopulator.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/TestDataPopulator.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/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/groovy/SimulatedGroovyDomainClass.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/groovy/SimulatedGroovyDomainClass.java index 6d1161181..cfd822f56 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/groovy/SimulatedGroovyDomainClass.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/groovy/SimulatedGroovyDomainClass.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 original author or authors. + * Copyright 2016-2018 original author 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/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/groovy/SimulatedGroovyDomainClassRepository.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/groovy/SimulatedGroovyDomainClassRepository.java index 1ef51679e..40d745aec 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/groovy/SimulatedGroovyDomainClassRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/groovy/SimulatedGroovyDomainClassRepository.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 original author or authors. + * Copyright 2016-2018 original author 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/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/json/Jackson2DatatypeHelperIntegrationTests.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/json/Jackson2DatatypeHelperIntegrationTests.java index 66f2bb1ec..1a536bc00 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/json/Jackson2DatatypeHelperIntegrationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/json/Jackson2DatatypeHelperIntegrationTests.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. @@ -41,7 +41,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; /** * Integration tests for {@link Jackson2DatatypeHelper}. - * + * * @author Oliver Gierke */ @RunWith(SpringJUnit4ClassRunner.class) diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/json/PersistentEntitySerializationTests.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/json/PersistentEntitySerializationTests.java index c6f98e340..deb15c9aa 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/json/PersistentEntitySerializationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/json/PersistentEntitySerializationTests.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. @@ -72,7 +72,7 @@ import com.jayway.jsonpath.JsonPath; /** * Integration tests for entity (de)serialization. - * + * * @author Jon Brisbin * @author Greg Turnquist * @author Oliver Gierke diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/json/RepositoryTestsConfig.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/json/RepositoryTestsConfig.java index 2f8a13e1f..8d7d2475b 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/json/RepositoryTestsConfig.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/json/RepositoryTestsConfig.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/support/BackendIdConverterHandlerMethodArgumentResolverIntegrationTests.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/support/BackendIdConverterHandlerMethodArgumentResolverIntegrationTests.java index 82b93642a..5b152222e 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/support/BackendIdConverterHandlerMethodArgumentResolverIntegrationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/support/BackendIdConverterHandlerMethodArgumentResolverIntegrationTests.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.web.context.request.ServletWebRequest; /** * Integration tests for {@link BackendIdHandlerMethodArgumentResolver}. - * + * * @author Oliver Gierke */ @ContextConfiguration(classes = JpaRepositoryConfig.class) diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/support/ExceptionHandlingCustomizationIntegrationTests.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/support/ExceptionHandlingCustomizationIntegrationTests.java index 241bf4344..dcd9b6906 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/support/ExceptionHandlingCustomizationIntegrationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/support/ExceptionHandlingCustomizationIntegrationTests.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. @@ -36,7 +36,7 @@ import org.springframework.web.bind.annotation.ExceptionHandler; /** * Integration tests for customization of Spring Data REST's exception handling. - * + * * @author Thibaud Lepretre * @author Oliver Gierke */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/support/RepositoryEntityLinksIntegrationTests.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/support/RepositoryEntityLinksIntegrationTests.java index c24365eef..e886bb122 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/support/RepositoryEntityLinksIntegrationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/support/RepositoryEntityLinksIntegrationTests.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.web.util.UriComponentsBuilder; /** * Integration tests for {@link RepositoryEntityLinks}. - * + * * @author Oliver Gierke */ @ContextConfiguration(classes = JpaRepositoryConfig.class) diff --git a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/util/TestUtils.java b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/util/TestUtils.java index 600f5a357..efc29bfd9 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/util/TestUtils.java +++ b/spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/util/TestUtils.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. @@ -23,7 +23,7 @@ import org.springframework.data.rest.webmvc.jpa.JpaWebTests; /** * Test helper methods. - * + * * @author Oliver Gierke * @author Christoph Strobl */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/Address.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/Address.java index 73f3a4c8d..1bac49ae4 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/Address.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/Address.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/Profile.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/Profile.java index e264fe28e..0b96de86c 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/Profile.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/Profile.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/ProfileRepository.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/ProfileRepository.java index 9e986ce44..2064ec7dc 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/ProfileRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/ProfileRepository.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/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/Receipt.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/Receipt.java index 4b5d3b961..c6e1e7731 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/Receipt.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/Receipt.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/ReceiptRepository.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/ReceiptRepository.java index 38af7b45a..8231d97de 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/ReceiptRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/ReceiptRepository.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/User.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/User.java index 73d46ff09..cf4568bbb 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/User.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/User.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/UserRepository.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/UserRepository.java index 39cf5c666..0a2dd0ee5 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/UserRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/UserRepository.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/UserSummary.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/UserSummary.java index 3cde1cee0..d39665b94 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/UserSummary.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/UserSummary.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/groovy/SimulatedGroovyDomainClass.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/groovy/SimulatedGroovyDomainClass.java index f4dfba3b6..80a926120 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/groovy/SimulatedGroovyDomainClass.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/groovy/SimulatedGroovyDomainClass.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 original author or authors. + * Copyright 2016-2018 original author 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/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/groovy/SimulatedGroovyDomainClassRepository.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/groovy/SimulatedGroovyDomainClassRepository.java index 364bcf73a..7aae97c1b 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/groovy/SimulatedGroovyDomainClassRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/main/java/org/springframework/data/rest/tests/mongodb/groovy/SimulatedGroovyDomainClassRepository.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/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/tests/mongodb/MongoDbRepositoryConfig.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/tests/mongodb/MongoDbRepositoryConfig.java index fb7ac4497..20a3960db 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/tests/mongodb/MongoDbRepositoryConfig.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/tests/mongodb/MongoDbRepositoryConfig.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. @@ -31,7 +31,7 @@ import com.mongodb.MongoClient; @EnableMongoAuditing public class MongoDbRepositoryConfig extends AbstractMongoConfiguration { - /* + /* * (non-Javadoc) * @see org.springframework.data.mongodb.config.AbstractMongoConfiguration#getDatabaseName() */ @@ -40,7 +40,7 @@ public class MongoDbRepositoryConfig extends AbstractMongoConfiguration { return "spring-data-rest-sample"; } - /* + /* * (non-Javadoc) * @see org.springframework.data.mongodb.config.AbstractMongoConfiguration#getMappingBasePackage() */ @@ -49,7 +49,7 @@ public class MongoDbRepositoryConfig extends AbstractMongoConfiguration { return ""; } - /* + /* * (non-Javadoc) * @see org.springframework.data.mongodb.config.AbstractMongoConfiguration#mongo() */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/tests/mongodb/MongoWebTests.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/tests/mongodb/MongoWebTests.java index ac6b5811d..b78e89d37 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/tests/mongodb/MongoWebTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/tests/mongodb/MongoWebTests.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. @@ -45,7 +45,7 @@ import com.jayway.jsonpath.JsonPath; /** * Integration tests for MongoDB repositories. - * + * * @author Oliver Gierke * @author Greg Turnquist */ @@ -101,7 +101,7 @@ public class MongoWebTests extends CommonWebTests { userRepository.deleteAll(); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.AbstractWebIntegrationTests#expectedRootLinkRels() */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/tests/mongodb/TestUtils.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/tests/mongodb/TestUtils.java index 40d46e52e..530edd32c 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/tests/mongodb/TestUtils.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/tests/mongodb/TestUtils.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. @@ -23,7 +23,7 @@ import org.springframework.util.Assert; /** * Test helper methods. - * + * * @author Oliver Gierke * @author Christoph Strobl */ @@ -33,7 +33,7 @@ public class TestUtils { /** * Returns the given {@link String} as {@link InputStream}. - * + * * @param source must not be {@literal null}. * @return */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/PersistentEntityResourceAssemblerIntegrationTests.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/PersistentEntityResourceAssemblerIntegrationTests.java index 983fe8040..3ba22a857 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/PersistentEntityResourceAssemblerIntegrationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/PersistentEntityResourceAssemblerIntegrationTests.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.fasterxml.jackson.databind.ObjectMapper; /** * Integration tests for {@link PersistentEntityResourceAssembler}. - * + * * @author Oliver Gierke */ @ContextConfiguration(classes = { TestConfiguration.class, MongoDbRepositoryConfig.class }) diff --git a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMappingIntegrationTests.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMappingIntegrationTests.java index 994b41dcb..f0a0924d4 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMappingIntegrationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMappingIntegrationTests.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.web.servlet.HandlerExecutionChain; /** * Integration tests for {@link BasePathAwareHandlerMapping}. - * + * * @author Oliver Gierke * @soundtrack Elephants Crossing - Echo (Irrelephant) */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/config/AbstractRepositoryRestMvcConfigurationIntegrationTests.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/config/AbstractRepositoryRestMvcConfigurationIntegrationTests.java index b907c12d4..93bd93db8 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/config/AbstractRepositoryRestMvcConfigurationIntegrationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/config/AbstractRepositoryRestMvcConfigurationIntegrationTests.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. @@ -26,7 +26,7 @@ import org.springframework.web.context.WebApplicationContext; /** * Base class for integration tests that are run against a particular configuration defined by the subclass. - * + * * @author Oliver Gierke */ @RunWith(SpringJUnit4ClassRunner.class) diff --git a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/config/JsonPatchHandlerUnitTests.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/config/JsonPatchHandlerUnitTests.java index 154798d0f..f3ba2b166 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/config/JsonPatchHandlerUnitTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/config/JsonPatchHandlerUnitTests.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. @@ -44,7 +44,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; /** * Unit tests for {@link JsonPatchHandler}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/config/LegacyRepresentationConfigIntegrationTests.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/config/LegacyRepresentationConfigIntegrationTests.java index 2829db5d9..77cf5f3c4 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/config/LegacyRepresentationConfigIntegrationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/config/LegacyRepresentationConfigIntegrationTests.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.test.context.ContextConfiguration; /** * Integration tests to check the legacy representation is rendered if HAL is not the default media type. - * + * * @author Oliver Gierke */ @ContextConfiguration diff --git a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/config/QuerydslAwareRootResourceInformationHandlerMethodArgumentResolverUnitTests.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/config/QuerydslAwareRootResourceInformationHandlerMethodArgumentResolverUnitTests.java index 0731f7e66..63e1aff1d 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/config/QuerydslAwareRootResourceInformationHandlerMethodArgumentResolverUnitTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/config/QuerydslAwareRootResourceInformationHandlerMethodArgumentResolverUnitTests.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. @@ -51,7 +51,7 @@ import com.querydsl.core.types.Predicate; /** * Unit tests for {@link QuerydslAwareRootResourceInformationHandlerMethodArgumentResolver}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/json/PersistentEntitySerializationTests.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/json/PersistentEntitySerializationTests.java index 5e198bc06..72ef0b8c1 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/json/PersistentEntitySerializationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/json/PersistentEntitySerializationTests.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. @@ -57,7 +57,7 @@ import com.jayway.jsonpath.JsonPath; /** * Integration tests for entity (de)serialization. - * + * * @author Jon Brisbin * @author Greg Turnquist * @author Oliver Gierke diff --git a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/json/PersistentEntityToJsonSchemaConverterUnitTests.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/json/PersistentEntityToJsonSchemaConverterUnitTests.java index 8ca23faf6..c8d1168cd 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/json/PersistentEntityToJsonSchemaConverterUnitTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/json/PersistentEntityToJsonSchemaConverterUnitTests.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/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/support/RepositoryLinkBuildUnitTests.java b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/support/RepositoryLinkBuildUnitTests.java index 1f68fa878..e69e32890 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/support/RepositoryLinkBuildUnitTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-mongodb/src/test/java/org/springframework/data/rest/webmvc/support/RepositoryLinkBuildUnitTests.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. @@ -31,7 +31,7 @@ import org.springframework.hateoas.Link; /** * Unit tests for {@link RepositoryLinkBuilder}. - * + * * @author Oliver Gierke */ public class RepositoryLinkBuildUnitTests { diff --git a/spring-data-rest-tests/spring-data-rest-tests-security/src/main/java/org/springframework/data/rest/tests/security/Order.java b/spring-data-rest-tests/spring-data-rest-tests-security/src/main/java/org/springframework/data/rest/tests/security/Order.java index 734d6e959..4134cdcb1 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-security/src/main/java/org/springframework/data/rest/tests/security/Order.java +++ b/spring-data-rest-tests/spring-data-rest-tests-security/src/main/java/org/springframework/data/rest/tests/security/Order.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/spring-data-rest-tests/spring-data-rest-tests-security/src/main/java/org/springframework/data/rest/tests/security/Person.java b/spring-data-rest-tests/spring-data-rest-tests-security/src/main/java/org/springframework/data/rest/tests/security/Person.java index 71d89866d..445cd3beb 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-security/src/main/java/org/springframework/data/rest/tests/security/Person.java +++ b/spring-data-rest-tests/spring-data-rest-tests-security/src/main/java/org/springframework/data/rest/tests/security/Person.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/spring-data-rest-tests/spring-data-rest-tests-security/src/test/java/org/springframework/data/rest/tests/security/PreAuthorizedOrderRepository.java b/spring-data-rest-tests/spring-data-rest-tests-security/src/test/java/org/springframework/data/rest/tests/security/PreAuthorizedOrderRepository.java index 7f1a10237..5c6a0e12e 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-security/src/test/java/org/springframework/data/rest/tests/security/PreAuthorizedOrderRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-security/src/test/java/org/springframework/data/rest/tests/security/PreAuthorizedOrderRepository.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-security/src/test/java/org/springframework/data/rest/tests/security/SecuredPersonRepository.java b/spring-data-rest-tests/spring-data-rest-tests-security/src/test/java/org/springframework/data/rest/tests/security/SecuredPersonRepository.java index 6a3bfe0ff..b4c6bf656 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-security/src/test/java/org/springframework/data/rest/tests/security/SecuredPersonRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-security/src/test/java/org/springframework/data/rest/tests/security/SecuredPersonRepository.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-security/src/test/java/org/springframework/data/rest/tests/security/SecurityConfiguration.java b/spring-data-rest-tests/spring-data-rest-tests-security/src/test/java/org/springframework/data/rest/tests/security/SecurityConfiguration.java index 7560e2773..63e6422b6 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-security/src/test/java/org/springframework/data/rest/tests/security/SecurityConfiguration.java +++ b/spring-data-rest-tests/spring-data-rest-tests-security/src/test/java/org/springframework/data/rest/tests/security/SecurityConfiguration.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-security/src/test/java/org/springframework/data/rest/tests/security/SecurityIntegrationTests.java b/spring-data-rest-tests/spring-data-rest-tests-security/src/test/java/org/springframework/data/rest/tests/security/SecurityIntegrationTests.java index 57a1861d5..997de7573 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-security/src/test/java/org/springframework/data/rest/tests/security/SecurityIntegrationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-security/src/test/java/org/springframework/data/rest/tests/security/SecurityIntegrationTests.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/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/Address.java b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/Address.java index 1abfc2a1f..a2b3a2bd9 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/Address.java +++ b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/Address.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/Customer.java b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/Customer.java index bae23d2ab..6bcfb5d49 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/Customer.java +++ b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/Customer.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/CustomerExcerpt.java b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/CustomerExcerpt.java index 72120b6f3..8a226a6c6 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/CustomerExcerpt.java +++ b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/CustomerExcerpt.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/CustomerRepository.java b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/CustomerRepository.java index 6c2c3bdd1..ea742491f 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/CustomerRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/CustomerRepository.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/LineItem.java b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/LineItem.java index 50a47b289..507bd7c78 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/LineItem.java +++ b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/LineItem.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/LineItemType.java b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/LineItemType.java index 8a358d9d5..e712e8def 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/LineItemType.java +++ b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/LineItemType.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/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/LineItemTypeRepository.java b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/LineItemTypeRepository.java index a2b196a4e..f4e0a2c85 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/LineItemTypeRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/LineItemTypeRepository.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/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/Order.java b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/Order.java index 0b66fad7a..a1e3025c2 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/Order.java +++ b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/Order.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/OrderRepository.java b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/OrderRepository.java index c1c96d143..10881f237 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/OrderRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/OrderRepository.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/Product.java b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/Product.java index 6ba8487ea..a4ec8b905 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/Product.java +++ b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/Product.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/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/ProductExcerpt.java b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/ProductExcerpt.java index 28aa5fef6..fc6e5eb45 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/ProductExcerpt.java +++ b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/ProductExcerpt.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/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/ProductRepository.java b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/ProductRepository.java index b320f0093..dd0584120 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/ProductRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-shop/src/main/java/org/springframework/data/rest/tests/shop/ProductRepository.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/spring-data-rest-tests/spring-data-rest-tests-shop/src/test/java/org/springframework/data/rest/tests/shop/ShopConfiguration.java b/spring-data-rest-tests/spring-data-rest-tests-shop/src/test/java/org/springframework/data/rest/tests/shop/ShopConfiguration.java index 9b2f4443f..9b9458f87 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-shop/src/test/java/org/springframework/data/rest/tests/shop/ShopConfiguration.java +++ b/spring-data-rest-tests/spring-data-rest-tests-shop/src/test/java/org/springframework/data/rest/tests/shop/ShopConfiguration.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-shop/src/test/java/org/springframework/data/rest/tests/shop/ShopIntegrationTests.java b/spring-data-rest-tests/spring-data-rest-tests-shop/src/test/java/org/springframework/data/rest/tests/shop/ShopIntegrationTests.java index c21388aa4..3c1871617 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-shop/src/test/java/org/springframework/data/rest/tests/shop/ShopIntegrationTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-shop/src/test/java/org/springframework/data/rest/tests/shop/ShopIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 original author or authors. + * Copyright 2016-2018 original author 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.jayway.jsonpath.JsonPath; /** * Integration tests for projections. - * + * * @author Oliver Gierke * @author Craig Andrews */ diff --git a/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/Product.java b/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/Product.java index b71e02108..1614edc58 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/Product.java +++ b/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/Product.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/ProductRepository.java b/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/ProductRepository.java index 27452a662..a3c9c3f10 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/ProductRepository.java +++ b/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/ProductRepository.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/SolrInfrastructureConfig.java b/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/SolrInfrastructureConfig.java index 9ec2c3041..48984ee68 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/SolrInfrastructureConfig.java +++ b/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/SolrInfrastructureConfig.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. @@ -111,7 +111,7 @@ public class SolrInfrastructureConfig { *
* To prevent error messages popping up we register a {@link CloseHook} re adding the index directory and removing it * after {@link SolrCore#close()}. - * + * * @param factory */ private void attachCloseHook(SolrClientFactory factory) { diff --git a/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/SolrTestBase.java b/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/SolrTestBase.java index f43c4922b..53e678c07 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/SolrTestBase.java +++ b/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/SolrTestBase.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. diff --git a/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/SolrWebTests.java b/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/SolrWebTests.java index a9a822117..bbd637474 100755 --- a/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/SolrWebTests.java +++ b/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/SolrWebTests.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/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/TestUtils.java b/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/TestUtils.java index 73c3de702..12ed751c2 100644 --- a/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/TestUtils.java +++ b/spring-data-rest-tests/spring-data-rest-tests-solr/src/test/java/org/springframework/data/rest/webmvc/solr/TestUtils.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. @@ -28,7 +28,7 @@ import org.springframework.util.StringUtils; /** * Test helper methods. - * + * * @author Oliver Gierke * @author Christoph Strobl */ @@ -38,7 +38,7 @@ class TestUtils { /** * Filters the given {@link Resource} by replacing values within. - * + * * @param source must not be {@literal null}. * @param replacements * @return {@link Resource} with replaced values. diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/AbstractRepositoryRestController.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/AbstractRepositoryRestController.java index 48167a1fa..634f0e727 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/AbstractRepositoryRestController.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/AbstractRepositoryRestController.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. @@ -49,7 +49,7 @@ class AbstractRepositoryRestController { /** * Creates a new {@link AbstractRepositoryRestController} for the given {@link PagedResourcesAssembler} and * {@link AuditableBeanWrapperFactory}. - * + * * @param pagedResourcesAssembler must not be {@literal null}. */ public AbstractRepositoryRestController(PagedResourcesAssembler pagedResourcesAssembler) { diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/BasePathAwareController.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/BasePathAwareController.java index 1c02c908c..5fcf59b4c 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/BasePathAwareController.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/BasePathAwareController.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. @@ -26,7 +26,7 @@ import org.springframework.stereotype.Component; /** * Annotation to declare a controller that declares request mappings to be augmented with a base URI in the Spring Data * REST configuration. - * + * * @author Oliver Gierke */ @Documented diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/BasePathAwareHandlerMapping.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/BasePathAwareHandlerMapping.java index 6acef065f..3df7668e8 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/BasePathAwareHandlerMapping.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/BasePathAwareHandlerMapping.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. @@ -61,7 +61,7 @@ import org.springframework.web.util.UrlPathHelper; /** * A {@link RequestMappingHandlerMapping} that augments the request mappings - * + * * @author Oliver Gierke */ public class BasePathAwareHandlerMapping extends RequestMappingHandlerMapping { @@ -74,7 +74,7 @@ public class BasePathAwareHandlerMapping extends RequestMappingHandlerMapping { /** * Creates a new {@link BasePathAwareHandlerMapping} using the given {@link RepositoryRestConfiguration}. - * + * * @param configuration must not be {@literal null}. */ public BasePathAwareHandlerMapping(RepositoryRestConfiguration configuration) { @@ -83,7 +83,7 @@ public class BasePathAwareHandlerMapping extends RequestMappingHandlerMapping { this.configuration = configuration; } - /* + /* * (non-Javadoc) * @see org.springframework.web.servlet.handler.AbstractHandlerMethodMapping#lookupHandlerMethod(java.lang.String, javax.servlet.http.HttpServletRequest) */ @@ -113,7 +113,7 @@ public class BasePathAwareHandlerMapping extends RequestMappingHandlerMapping { return super.lookupHandlerMethod(lookupPath, new CustomAcceptHeaderHttpServletRequest(request, mediaTypes)); } - /* + /* * (non-Javadoc) * @see org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#getMappingForMethod(java.lang.reflect.Method, java.lang.Class) */ @@ -135,7 +135,7 @@ public class BasePathAwareHandlerMapping extends RequestMappingHandlerMapping { /** * Customize the given {@link PatternsRequestCondition} and prefix. - * + * * @param condition will never be {@literal null}. * @param prefix will never be {@literal null}. * @return @@ -156,7 +156,7 @@ public class BasePathAwareHandlerMapping extends RequestMappingHandlerMapping { /** * Customize the given {@link ProducesRequestCondition}. Default implementation returns the condition as is. - * + * * @param condition will never be {@literal null}. * @return */ @@ -164,7 +164,7 @@ public class BasePathAwareHandlerMapping extends RequestMappingHandlerMapping { return condition; } - /* + /* * (non-Javadoc) * @see org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#isHandler(java.lang.Class) */ @@ -176,7 +176,7 @@ public class BasePathAwareHandlerMapping extends RequestMappingHandlerMapping { return type.isAnnotationPresent(BasePathAwareController.class); } - /* + /* * (non-Javadoc) * @see org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#afterPropertiesSet() */ @@ -574,7 +574,7 @@ public class BasePathAwareHandlerMapping extends RequestMappingHandlerMapping { /** * Creates a new {@link CustomAcceptHeaderHttpServletRequest} for the given delegate {@link HttpServletRequest} and * the list of {@link MediaType}. - * + * * @param request must not be {@literal null}. * @param acceptMediaTypes must not be {@literal null} or empty. */ @@ -595,7 +595,7 @@ public class BasePathAwareHandlerMapping extends RequestMappingHandlerMapping { this.acceptMediaTypeStrings = acceptMediaTypeStrings; } - /* + /* * (non-Javadoc) * @see javax.servlet.http.HttpServletRequestWrapper#getHeader(java.lang.String) */ @@ -609,7 +609,7 @@ public class BasePathAwareHandlerMapping extends RequestMappingHandlerMapping { return super.getHeader(name); } - /* + /* * (non-Javadoc) * @see javax.servlet.http.HttpServletRequestWrapper#getHeaders(java.lang.String) */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/BaseUri.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/BaseUri.java index bbdfce1b2..fb1d1853a 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/BaseUri.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/BaseUri.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. @@ -32,7 +32,7 @@ import org.springframework.web.util.UrlPathHelper; /** * Value object to be able to extract the lookup path within a configured base URI that forms a URI namespace. - * + * * @author Oliver Gierke */ public class BaseUri { @@ -44,7 +44,7 @@ public class BaseUri { /** * Creates a new {@link BaseUri} with the given URI as base. - * + * * @param uri must not be {@literal null}. */ public BaseUri(URI uri) { @@ -57,7 +57,7 @@ public class BaseUri { /** * Creates a new {@link BaseUri} with the given URI as base. - * + * * @param uri must not be {@literal null}. */ public BaseUri(String uri) { @@ -66,7 +66,7 @@ public class BaseUri { /** * Returns the base URI. - * + * * @return */ public URI getUri() { @@ -76,7 +76,7 @@ public class BaseUri { /** * Extracts the actual lookup path within the Spring Data REST managed URI space. This includes stripping the * necessary parts of the base URI from the source lookup path. - * + * * @param request must not be {@literal null}. * @return the stripped lookup path with then the repository URI space or {@literal null} in case the lookup path is * not pointing into the repository URI space. @@ -88,7 +88,7 @@ public class BaseUri { /** * Extracts the actual lookup path within the Spring Data REST managed URI space. This includes stripping the * necessary parts of the base URI from the source lookup path. - * + * * @param request must not be {@literal null}. * @return the stripped lookup path with then the repository URI space or {@literal null} in case the lookup path is * not pointing into the repository URI space. @@ -102,7 +102,7 @@ public class BaseUri { /** * Extracts the actual lookup path within the Spring Data REST managed URI space. This includes stripping the * necessary parts of the base URI from the source lookup path. - * + * * @param lookupPath must not be {@literal null}. * @return the stripped lookup path with then the repository URI space or {@literal null} in case the lookup path is * not pointing into the repository URI space. @@ -113,7 +113,7 @@ public class BaseUri { // Temporary fix for SPR-13455 lookupPath = lookupPath.replaceAll("//", "/"); - + lookupPath = trimTrailingCharacter(lookupPath, '/'); if (!baseUri.isAbsolute()) { @@ -147,7 +147,7 @@ public class BaseUri { /** * Returns a new {@link UriComponentsBuilder} for the base URI. If the base URI is not absolute, it'll lokup the URI * for the current servlet mapping and extend it accordingly. - * + * * @return */ public UriComponentsBuilder getUriComponentsBuilder() { diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ControllerUtils.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ControllerUtils.java index eef470fc6..055cd4b31 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ControllerUtils.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ControllerUtils.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. @@ -47,7 +47,7 @@ public class ControllerUtils { /** * Wrap a resource as a {@link ResourceEntity} and attach given headers and status. - * + * * @param status * @param headers * @param resource @@ -66,7 +66,7 @@ public class ControllerUtils { /** * Return an empty response that is only comprised of a status - * + * * @param status * @return */ @@ -76,7 +76,7 @@ public class ControllerUtils { /** * Return an empty response that is only comprised of headers and a status - * + * * @param status * @param headers * @return diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/EmbeddedResourcesAssembler.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/EmbeddedResourcesAssembler.java index 621922d55..56a6ca2c7 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/EmbeddedResourcesAssembler.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/EmbeddedResourcesAssembler.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/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/HttpHeadersPreparer.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/HttpHeadersPreparer.java index db25e133d..e5777d339 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/HttpHeadersPreparer.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/HttpHeadersPreparer.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. @@ -35,7 +35,7 @@ import org.springframework.util.Assert; /** * Value object to prepare {@link HttpHeaders} for {@link PersistentEntityResource} and {@link PersistentEntity} * instances. - * + * * @author Oliver Gierke * @soundtrack Ron Spielman Trio - Matchstick */ @@ -52,7 +52,7 @@ public class HttpHeadersPreparer { /** * Returns the default headers to be returned for the given {@link PersistentEntityResource}. Will set {@link ETag} * and {@code Last-Modified} headers if applicable. - * + * * @param resource can be {@literal null}. * @return */ @@ -66,7 +66,7 @@ public class HttpHeadersPreparer { /** * Returns the default headers to be returned for the given {@link PersistentEntity} and value. Will set {@link ETag} * and {@code Last-Modified} headers if applicable. - * + * * @param entity must not be {@literal null}. * @param value must not be {@literal null}. * @return @@ -87,7 +87,7 @@ public class HttpHeadersPreparer { /** * Returns whether the given object is still valid in the context of the given {@link HttpHeaders}' requirements. - * + * * @param source must not be {@literal null}. * @param headers must not be {@literal null}. * @return @@ -108,7 +108,7 @@ public class HttpHeadersPreparer { /** * Returns the {@link AuditableBeanWrapper} for the given source. - * + * * @param source can be {@literal null}. * @return */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/IncomingRequest.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/IncomingRequest.java index 8505300d2..c553d5222 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/IncomingRequest.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/IncomingRequest.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. @@ -36,7 +36,7 @@ public class IncomingRequest { /** * Creates a new {@link IncomingRequest} from {@link ServerHttpRequest}. - * + * * @param request must not be {@literal null}. */ public IncomingRequest(ServerHttpRequest request) { @@ -49,7 +49,7 @@ public class IncomingRequest { /** * Returns whether the request is a PATCH request. - * + * * @return */ public boolean isPatchRequest() { @@ -58,7 +58,7 @@ public class IncomingRequest { /** * Returns whether the request is a PATCH request with a payload of type {@link RestMediaTypes#JSON_PATCH_JSON}. - * + * * @return */ public boolean isJsonPatchRequest() { @@ -67,7 +67,7 @@ public class IncomingRequest { /** * Returns whether the request is a PATCH request with a payload of type {@link RestMediaTypes#MERGE_PATCH_JSON}. - * + * * @return */ public boolean isJsonMergePatchRequest() { @@ -76,7 +76,7 @@ public class IncomingRequest { /** * Returns the body of the request. - * + * * @return will never be {@literal null}. * @throws IOException */ @@ -86,7 +86,7 @@ public class IncomingRequest { /** * Returns the underlying {@link ServerHttpRequest}. - * + * * @return will never be {@literal null}. */ public ServerHttpRequest getServerHttpRequest() { diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/PersistentEntityResource.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/PersistentEntityResource.java index a88462beb..edccec0f4 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/PersistentEntityResource.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/PersistentEntityResource.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. @@ -34,7 +34,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; /** * A Spring HATEOAS {@link Resource} subclass that holds a reference to the entity's {@link PersistentEntity} metadata. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -49,7 +49,7 @@ public class PersistentEntityResource extends Resource { /** * Returns whether the content of the resource is a new entity about to be created. Used to distinguish between * creation and updates for incoming requests. - * + * * @return */ private final @Getter boolean isNew; @@ -58,7 +58,7 @@ public class PersistentEntityResource extends Resource { /** * Creates a new {@link PersistentEntityResource} for the given {@link PersistentEntity}, content, embedded * {@link Resources}, links and flag whether to render all associations. - * + * * @param entity must not be {@literal null}. * @param content must not be {@literal null}. * @param links must not be {@literal null}. @@ -79,7 +79,7 @@ public class PersistentEntityResource extends Resource { /** * Returns the {@link PersistentEntity} for the underlying instance. - * + * * @return */ public PersistentEntity> getPersistentEntity() { @@ -88,7 +88,7 @@ public class PersistentEntityResource extends Resource { /** * Returns the {@link PersistentPropertyAccessor} for the underlying content bean. - * + * * @return */ public PersistentPropertyAccessor getPropertyAccessor() { @@ -97,7 +97,7 @@ public class PersistentEntityResource extends Resource { /** * Returns the resources that are supposed to be rendered in the {@code _embedded} clause. - * + * * @return the embeddeds */ public Iterable getEmbeddeds() { @@ -106,7 +106,7 @@ public class PersistentEntityResource extends Resource { /** * Creates a new {@link Builder} to create {@link PersistentEntityResource}s eventually. - * + * * @param content must not be {@literal null}. * @param entity must not be {@literal null}. * @return @@ -130,7 +130,7 @@ public class PersistentEntityResource extends Resource { /** * Creates a new {@link Builder} instance for the given content and {@link PersistentEntity}. - * + * * @param content must not be {@literal null}. * @param entity must not be {@literal null}. */ @@ -146,7 +146,7 @@ public class PersistentEntityResource extends Resource { /** * Configures the builder to embed the given {@link EmbeddedWrapper} instances. Creates a {@link Resources} instance * to make sure the {@link EmbeddedWrapper} handling gets applied to the serialization output ignoring the links. - * + * * @param resources can be {@literal null}. * @return the builder */ @@ -158,7 +158,7 @@ public class PersistentEntityResource extends Resource { /** * Adds the given {@link Link} to the {@link PersistentEntityResource}. - * + * * @param link must not be {@literal null}. * @return the builder */ @@ -180,7 +180,7 @@ public class PersistentEntityResource extends Resource { /** * Finally creates the {@link PersistentEntityResource} instance. - * + * * @return */ public PersistentEntityResource build() { @@ -190,7 +190,7 @@ public class PersistentEntityResource extends Resource { /** * Finally creates the {@link PersistentEntityResource} instance to symbolize the contained entity is about to be * created. - * + * * @return */ public PersistentEntityResource forCreation() { @@ -208,7 +208,7 @@ public class PersistentEntityResource extends Resource { super(content); } - /* + /* * (non-Javadoc) * @see org.springframework.hateoas.ResourceSupport#getLinks() */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/PersistentEntityResourceAssembler.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/PersistentEntityResourceAssembler.java index 12fd2a8e7..d1db84e4f 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/PersistentEntityResourceAssembler.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/PersistentEntityResourceAssembler.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. @@ -32,7 +32,7 @@ import org.springframework.util.Assert; /** * {@link ResourceAssembler} to create {@link PersistentEntityResource}s for arbitrary domain objects. - * + * * @author Oliver Gierke */ @RequiredArgsConstructor @@ -44,7 +44,7 @@ public class PersistentEntityResourceAssembler implements ResourceAssemblerOPTIONS /. - * + * * @return * @since 2.2 */ @@ -86,7 +86,7 @@ public class RepositoryController extends AbstractRepositoryRestController { /** * HEAD / - * + * * @return * @since 2.2 */ @@ -97,7 +97,7 @@ public class RepositoryController extends AbstractRepositoryRestController { /** * Lists all repositories exported by creating a link list pointing to resources exposing the repositories. - * + * * @return */ @RequestMapping(value = { "/", "" }, method = RequestMethod.GET) diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryEntityController.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryEntityController.java index 12a66811c..e340c9d1a 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryEntityController.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryEntityController.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. @@ -98,7 +98,7 @@ class RepositoryEntityController extends AbstractRepositoryRestController implem * Creates a new {@link RepositoryEntityController} for the given {@link Repositories}, * {@link RepositoryRestConfiguration}, {@link RepositoryEntityLinks}, {@link PagedResourcesAssembler}, * {@link ConversionService} and {@link AuditableBeanWrapperFactory}. - * + * * @param repositories must not be {@literal null}. * @param config must not be {@literal null}. * @param entityLinks must not be {@literal null}. @@ -129,7 +129,7 @@ class RepositoryEntityController extends AbstractRepositoryRestController implem /** * OPTIONS /{repository}. - * + * * @param information * @return * @since 2.2 @@ -147,7 +147,7 @@ class RepositoryEntityController extends AbstractRepositoryRestController implem /** * HEAD /{repository} - * + * * @param resourceInformation * @return * @throws HttpRequestMethodNotSupportedException @@ -176,7 +176,7 @@ class RepositoryEntityController extends AbstractRepositoryRestController implem /** * GET /{repository} - Returns the collection resource (paged or unpaged). - * + * * @param resourceInformation * @param pageable * @param sort @@ -252,7 +252,7 @@ class RepositoryEntityController extends AbstractRepositoryRestController implem /** * POST /{repository} - Creates a new entity instances from the collection resource. - * + * * @param resourceInformation * @param payload * @param assembler @@ -275,7 +275,7 @@ class RepositoryEntityController extends AbstractRepositoryRestController implem /** * OPTIONS /{repository}/{id} - * + * * @param information * @return * @since 2.2 @@ -294,7 +294,7 @@ class RepositoryEntityController extends AbstractRepositoryRestController implem /** * HEAD /{repsoitory}/{id} - * + * * @param resourceInformation * @param id * @return @@ -319,7 +319,7 @@ class RepositoryEntityController extends AbstractRepositoryRestController implem /** * GET /{repository}/{id} - Returns a single entity. - * + * * @param resourceInformation * @param id * @return @@ -342,7 +342,7 @@ class RepositoryEntityController extends AbstractRepositoryRestController implem /** * PUT /{repository}/{id} - Updates an existing entity or creates one at exactly that place. - * + * * @param resourceInformation * @param payload * @param id @@ -464,7 +464,7 @@ class RepositoryEntityController extends AbstractRepositoryRestController implem /** * Triggers the creation of the domain object and renders it into the response if needed. - * + * * @param domainObject * @param invoker * @return @@ -488,7 +488,7 @@ class RepositoryEntityController extends AbstractRepositoryRestController implem /** * Sets the location header pointing to the resource representing the given instance. Will make sure we properly * expand the URI template potentially created as self link. - * + * * @param headers must not be {@literal null}. * @param assembler must not be {@literal null}. * @param source must not be {@literal null}. @@ -501,7 +501,7 @@ class RepositoryEntityController extends AbstractRepositoryRestController implem /** * Returns the object backing the item resource for the given {@link RootResourceInformation} and id. - * + * * @param resourceInformation * @param id * @return diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryLinksResource.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryLinksResource.java index b0b4f085c..b5b09225a 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryLinksResource.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryLinksResource.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.hateoas.ResourceSupport; /** * Dedicated resource type to represent the links pointing to collection resources exposed for repositories. - * + * * @author Jon Brisbin * @author Oliver Gierke */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryPropertyReferenceController.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryPropertyReferenceController.java index d8d552500..78bd1087b 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryPropertyReferenceController.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryPropertyReferenceController.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. @@ -99,7 +99,7 @@ class RepositoryPropertyReferenceController extends AbstractRepositoryRestContro this.repositoryInvokerFactory = repositoryInvokerFactory; } - /* + /* * (non-Javadoc) * @see org.springframework.context.ApplicationEventPublisherAware#setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher) */ @@ -478,7 +478,7 @@ class RepositoryPropertyReferenceController extends AbstractRepositoryRestContro String.format(message, parameters)); } - /* + /* * (non-Javadoc) * @see java.lang.Throwable#getMessage() */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestController.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestController.java index a080e244c..f4cc78adb 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestController.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestController.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. @@ -26,7 +26,7 @@ import org.springframework.stereotype.Component; /** * Annotation to demarcate Spring MVC controllers provided by Spring Data REST. Allows to easily detect them and exclude * them from standard Spring MVC handling. - * + * * @author Oliver Gierke */ @Documented diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestExceptionHandler.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestExceptionHandler.java index dedf40b50..b8958d542 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestExceptionHandler.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestExceptionHandler.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. @@ -40,7 +40,7 @@ import org.springframework.web.bind.annotation.ExceptionHandler; /** * Exception handler for Spring Data REST controllers. - * + * * @author Thibaud Lepretre * @author Oliver Gierke */ @@ -53,7 +53,7 @@ public class RepositoryRestExceptionHandler { /** * Creates a new {@link RepositoryRestExceptionHandler} using the given {@link MessageSource}. - * + * * @param messageSource must not be {@literal null}. */ public RepositoryRestExceptionHandler(MessageSource messageSource) { @@ -64,7 +64,7 @@ public class RepositoryRestExceptionHandler { /** * Handles {@link ResourceNotFoundException} by returning {@code 404 Not Found}. - * + * * @param o_O the exception to handle. * @return */ @@ -75,7 +75,7 @@ public class RepositoryRestExceptionHandler { /** * Handles {@link HttpMessageNotReadableException} by returning {@code 400 Bad Request}. - * + * * @param o_O the exception to handle. * @return */ @@ -100,7 +100,7 @@ public class RepositoryRestExceptionHandler { /** * Handles {@link RepositoryConstraintViolationException}s by returning {@code 400 Bad Request}. - * + * * @param o_O the exception to handle. * @return */ @@ -140,7 +140,7 @@ public class RepositoryRestExceptionHandler { /** * Handles {@link ETagDoesntMatchException} by returning {@code 412 Precondition Failed}. - * + * * @param o_O the exception to handle. * @return */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerAdapter.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerAdapter.java index 409d59c0c..4c755ac05 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerAdapter.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerAdapter.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. @@ -28,7 +28,7 @@ import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandl * parameters used in the REST exporter controller. Also only looks for handler methods in the Spring Data REST provided * controller classes to help isolate this handler adapter from other handler adapters the user might have configured in * their Spring MVC context. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -40,7 +40,7 @@ public class RepositoryRestHandlerAdapter /** * Creates a new {@link RepositoryRestHandlerAdapter} using the given {@link HandlerMethodArgumentResolver} and * {@link org.springframework.hateoas.mvc.ResourceProcessorInvoker}. - * + * * @param argumentResolvers must not be {@literal null}. * @param invoker must not be {@literal null}. */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMapping.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMapping.java index 5318ec001..62fa75e8e 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMapping.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMapping.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. @@ -154,7 +154,7 @@ public class RepositoryRestHandlerMapping extends BasePathAwareHandlerMapping { return mappings.exportsTopLevelResourceFor(getRepositoryBasePath(repositoryLookupPath)) ? handlerMethod : null; } - /* + /* * (non-Javadoc) * @see org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping#handleNoMatch(java.util.Set, java.lang.String, javax.servlet.http.HttpServletRequest) */ @@ -189,7 +189,7 @@ public class RepositoryRestHandlerMapping extends BasePathAwareHandlerMapping { } } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.BasePathAwareHandlerMapping#process(org.springframework.web.servlet.mvc.condition.ProducesRequestCondition) */ @@ -245,7 +245,7 @@ public class RepositoryRestHandlerMapping extends BasePathAwareHandlerMapping { INSTANCE; - /* + /* * (non-Javadoc) * @see org.springframework.util.StringValueResolver#resolveStringValue(java.lang.String) */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositorySchemaController.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositorySchemaController.java index 1cc9d2486..a416964d7 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositorySchemaController.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositorySchemaController.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.bind.annotation.RequestMapping; /** * Controller to expose a JSON schema via {@code /repository/schema}. - * + * * @author Jon Brisbin * @author Oliver Gierke * @author Greg Turnquist @@ -41,7 +41,7 @@ class RepositorySchemaController { /** * Creates a new {@link RepositorySchemaController} using the given {@link PersistentEntityToJsonSchemaConverter}. - * + * * @param jsonSchemaConverter must not be {@literal null}. */ @Autowired @@ -54,7 +54,7 @@ class RepositorySchemaController { /** * Exposes a JSON schema for the repository referenced. - * + * * @param resourceInformation will never be {@literal null}. * @return */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositorySearchController.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositorySearchController.java index 59d34d28f..402f5bb8d 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositorySearchController.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositorySearchController.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. @@ -67,7 +67,7 @@ import org.springframework.web.bind.annotation.ResponseBody; /** * Controller to lookup and execute searches on a given repository. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -84,7 +84,7 @@ class RepositorySearchController extends AbstractRepositoryRestController { /** * Creates a new {@link RepositorySearchController} using the given {@link PagedResourcesAssembler}, * {@link EntityLinks} and {@link ResourceMappings}. - * + * * @param assembler must not be {@literal null}. * @param entityLinks must not be {@literal null}. * @param mappings must not be {@literal null}. @@ -105,7 +105,7 @@ class RepositorySearchController extends AbstractRepositoryRestController { /** * OPTIONS /{repository}/search. - * + * * @param resourceInformation * @return * @since 2.2 @@ -123,7 +123,7 @@ class RepositorySearchController extends AbstractRepositoryRestController { /** * HEAD /{repository}/search - Checks whether the search resource is present. - * + * * @param resourceInformation * @return */ @@ -138,7 +138,7 @@ class RepositorySearchController extends AbstractRepositoryRestController { /** * GET /{repository}/search - Exposes links to the individual search resources exposed by the backing * repository. - * + * * @param resourceInformation * @return */ @@ -163,7 +163,7 @@ class RepositorySearchController extends AbstractRepositoryRestController { /** * Executes the search with the given name. - * + * * @param resourceInformation * @param parameters * @param search @@ -193,7 +193,7 @@ class RepositorySearchController extends AbstractRepositoryRestController { /** * Turns the given source into a {@link ResourceSupport} if needed and possible. Uses the given * {@link PersistentEntityResourceAssembler} for the actual conversion. - * + * * @param source can be must not be {@literal null}. * @param assembler must not be {@literal null}. * @param domainType the domain type in case the source is an empty iterable, must not be {@literal null}. @@ -226,7 +226,7 @@ class RepositorySearchController extends AbstractRepositoryRestController { /** * Executes a query method and exposes the results in compact form. - * + * * @param resourceInformation * @param parameters * @param repository @@ -274,7 +274,7 @@ class RepositorySearchController extends AbstractRepositoryRestController { /** * OPTIONS /{repository}/search/{search}. - * + * * @param information * @param search * @return @@ -293,7 +293,7 @@ class RepositorySearchController extends AbstractRepositoryRestController { /** * Handles a {@code HEAD} request for individual searches. - * + * * @param information * @param search * @return @@ -309,7 +309,7 @@ class RepositorySearchController extends AbstractRepositoryRestController { /** * Checks that the given request is actually executable. Will reject execution if we don't find a search with the * given name. - * + * * @param resourceInformation * @param searchName * @return @@ -367,7 +367,7 @@ class RepositorySearchController extends AbstractRepositoryRestController { /** * Verifies that the given {@link RootResourceInformation} has searches exposed. - * + * * @param resourceInformation */ private static SearchResourceMappings verifySearchesExposed(RootResourceInformation resourceInformation) { @@ -384,7 +384,7 @@ class RepositorySearchController extends AbstractRepositoryRestController { /** * Tries to turn all elements of the given {@link List} into URIs and falls back to keeping the original element if * the conversion fails. - * + * * @param source can be {@literal null}. * @return */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositorySearchesResource.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositorySearchesResource.java index 0c352a49b..b8f0ef37b 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositorySearchesResource.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositorySearchesResource.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.fasterxml.jackson.annotation.JsonIgnore; /** * A custom {@link ResourceSupport} type to be able to write custom {@link ResourceProcessor}s to add additional links * to ones automatically exposed for Spring Data repository query methods. - * + * * @author Oliver Gierke */ public class RepositorySearchesResource extends ResourceSupport { @@ -33,7 +33,7 @@ public class RepositorySearchesResource extends ResourceSupport { /** * Creates a new {@link RepositorySearchesResource} for the given domain type. - * + * * @param domainType must not be {@literal null}. */ RepositorySearchesResource(Class domainType) { @@ -44,7 +44,7 @@ public class RepositorySearchesResource extends ResourceSupport { /** * Returns the domain type for which the resource lists searches. - * + * * @return */ @JsonIgnore diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ResourceNotFoundException.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ResourceNotFoundException.java index 85afe5364..41f399d85 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ResourceNotFoundException.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ResourceNotFoundException.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 org.springframework.web.bind.annotation.ResponseStatus; /** * Indicates a resource was not found. - * + * * @author Jon Brisbin * @author Oliver Gierke */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ResourceProcessorHandlerMethodReturnValueHandler.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ResourceProcessorHandlerMethodReturnValueHandler.java index d7ee5c9e8..dc4e1e8db 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ResourceProcessorHandlerMethodReturnValueHandler.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ResourceProcessorHandlerMethodReturnValueHandler.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. @@ -37,7 +37,7 @@ import org.springframework.web.method.support.ModelAndViewContainer; /** * {@link HandlerMethodReturnValueHandler} to post-process the objects returned from controller methods using the * configured {@link ResourceProcessor}s. - * + * * @author Oliver Gierke * @deprecated use the same type from Spring HATEOAS, will be removed in 2.7. */ @@ -119,7 +119,7 @@ public class ResourceProcessorHandlerMethodReturnValueHandler implements Handler * Re-wraps the result of the post-processing work into an {@link HttpEntity} or {@link ResponseEntity} if the * original value was one of those two types. Copies headers and status code from the original value but uses the new * body. - * + * * @param newBody the post-processed value. * @param originalValue the original input value. * @return diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ResourceProcessorInvoker.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ResourceProcessorInvoker.java index 74103311a..5975bc280 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ResourceProcessorInvoker.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ResourceProcessorInvoker.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. @@ -49,7 +49,7 @@ public class ResourceProcessorInvoker { /** * Creates a new {@link ResourceProcessorInvoker} to consider the given {@link ResourceProcessor} to post-process the * controller methods return value to before invoking the delegate. - * + * * @param processors the {@link ResourceProcessor}s to be considered, must not be {@literal null}. */ public ResourceProcessorInvoker(Collection> processors) { @@ -77,7 +77,7 @@ public class ResourceProcessorInvoker { /** * Invokes all {@link ResourceProcessor} instances registered for the type of the given value. - * + * * @param value must not be {@literal null}. * @return */ @@ -90,7 +90,7 @@ public class ResourceProcessorInvoker { /** * Invokes all {@link ResourceProcessor} instances registered for the type of the given value and reference type. - * + * * @param value must not be {@literal null}. * @param referenceType must not be {@literal null}. * @return @@ -128,7 +128,7 @@ public class ResourceProcessorInvoker { /** * Invokes all registered {@link ResourceProcessor}s registered for the given {@link ResolvableType}. - * + * * @param value the object to process * @param type * @return @@ -160,7 +160,7 @@ public class ResourceProcessorInvoker { /** * Interface to unify interaction with {@link ResourceProcessor}s. The {@link Ordered} rank should be determined by * the underlying processor. - * + * * @author Oliver Gierke */ private interface ProcessorWrapper extends Ordered { @@ -168,7 +168,7 @@ public class ResourceProcessorInvoker { /** * Returns whether the underlying processor supports the given {@link ResolvableType}. It might also additionally * inspect the object that would eventually be handed to the processor. - * + * * @param type the type of object to be post processed, will never be {@literal null}. * @param value the object that would be passed into the processor eventually, can be {@literal null}. * @return @@ -178,7 +178,7 @@ public class ResourceProcessorInvoker { /** * Performs the actual invocation of the processor. Implementations can be sure * {@link #supports(ResolvableType, Object)} has been called before and returned {@literal true}. - * + * * @param object */ Object invokeProcessor(Object object); @@ -186,7 +186,7 @@ public class ResourceProcessorInvoker { /** * Default implementation of {@link ProcessorWrapper} to generically deal with {@link ResourceSupport} types. - * + * * @author Oliver Gierke */ private static class DefaultProcessorWrapper implements ResourceProcessorInvoker.ProcessorWrapper { @@ -196,7 +196,7 @@ public class ResourceProcessorInvoker { /** * Creates a new {@link DefaultProcessorWrapper} with the given {@link ResourceProcessor}. - * + * * @param processor must not be {@literal null}. */ public DefaultProcessorWrapper(ResourceProcessor processor) { @@ -216,7 +216,7 @@ public class ResourceProcessorInvoker { return isRawTypeAssignable(targetType, getRawType(type)); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.ResourceProcessorHandlerMethodReturnValueHandler.PostProcessorWrapper#invokeProcessor(java.lang.Object) */ @@ -237,7 +237,7 @@ public class ResourceProcessorInvoker { /** * Returns the target type the underlying {@link ResourceProcessor} wants to get invoked for. - * + * * @return the targetType */ public ResolvableType getTargetType() { @@ -248,14 +248,14 @@ public class ResourceProcessorInvoker { /** * {@link ProcessorWrapper} to deal with {@link ResourceProcessor}s for {@link Resource}s. Will fall back to peeking * into the {@link Resource}'s content for type resolution. - * + * * @author Oliver Gierke */ private static class ResourceProcessorWrapper extends ResourceProcessorInvoker.DefaultProcessorWrapper { /** * Creates a new {@link ResourceProcessorWrapper} for the given {@link ResourceProcessor}. - * + * * @param processor must not be {@literal null}. */ public ResourceProcessorWrapper(ResourceProcessor processor) { @@ -279,7 +279,7 @@ public class ResourceProcessorInvoker { /** * Returns whether the given {@link Resource} matches the given target {@link ResolvableType}. We inspect the * {@link Resource}'s value to determine the match. - * + * * @param resource * @param target must not be {@literal null}. * @return whether the given {@link Resource} can be assigned to the given target {@link ResolvableType} @@ -319,14 +319,14 @@ public class ResourceProcessorInvoker { /** * {@link ProcessorWrapper} for {@link ResourceProcessor}s targeting {@link Resources}. Will peek into the content of * the {@link Resources} for type matching decisions if needed. - * + * * @author Oliver Gierke */ static class ResourcesProcessorWrapper extends ResourceProcessorInvoker.DefaultProcessorWrapper { /** * Creates a new {@link ResourcesProcessorWrapper} for the given {@link ResourceProcessor}. - * + * * @param processor must not be {@literal null}. */ public ResourcesProcessorWrapper(ResourceProcessor processor) { @@ -350,7 +350,7 @@ public class ResourceProcessorInvoker { /** * Returns whether the given {@link Resources} instance matches the given {@link ResolvableType}. We predict this by * inspecting the first element of the content of the {@link Resources}. - * + * * @param resources the {@link Resources} to inspect. * @param target that target {@link ResolvableType}. * @return @@ -398,7 +398,7 @@ public class ResourceProcessorInvoker { /** * Helper extension of {@link AnnotationAwareOrderComparator} to make {@link #getOrder(Object)} public to allow it * being used in a standalone fashion. - * + * * @author Oliver Gierke */ private static class CustomOrderAwareComparator extends AnnotationAwareOrderComparator { diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ResourceProcessorInvokingHandlerAdapter.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ResourceProcessorInvokingHandlerAdapter.java index 313f3af59..6f0d03b41 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ResourceProcessorInvokingHandlerAdapter.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ResourceProcessorInvokingHandlerAdapter.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.web.servlet.mvc.method.annotation.RequestMappingHandl *

* This is a separate component as it might make sense to deploy it in a standalone SpringMVC application to enable post * processing. It would actually make most sense in Spring HATEOAS project. - * + * * @author Oliver Gierke * @author Phil Webb * @author Mark Paluch @@ -51,7 +51,7 @@ public class ResourceProcessorInvokingHandlerAdapter extends RequestMappingHandl /** * Creates a new {@link ResourceProcessorInvokingHandlerAdapter} with the given {@link ResourceProcessorInvoker}. - * + * * @param invoker must not be {@literal null}. */ @Autowired(required = false) @@ -84,7 +84,7 @@ public class ResourceProcessorInvokingHandlerAdapter extends RequestMappingHandl /** * Gets a {@link HandlerMethodReturnValueHandlerComposite} for return handlers, dealing with API changes introduced in * Spring 4.0. - * + * * @return a HandlerMethodReturnValueHandlerComposite */ @SuppressWarnings("unchecked") diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ResourceStatus.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ResourceStatus.java index 188228bee..cde873d77 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ResourceStatus.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ResourceStatus.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. @@ -34,7 +34,7 @@ import org.springframework.util.Assert; /** * Simple abstraction to capture the status of a resource to determine whether it has been modified or not and produce * {@link ResponseEntity} via its {@link StatusAndHeaders} sub component. - * + * * @author Oliver Gierke * @since 2.6 * @soundtrack Blumentopf - Dass ich nicht lache (Kein Zufall) @@ -49,7 +49,7 @@ class ResourceStatus { /** * Returns the {@link StatusAndHeaders} calculated from the given {@link HttpHeaders}, domain object and * {@link RootResourceInformation. - * + * * @param requestHeaders must not be {@literal null}. * @param domainObject must not be {@literal null}. * @param entity must not be {@literal null}. @@ -93,7 +93,7 @@ class ResourceStatus { /** * Creates a {@link ResponseEntity} based on the given {@link PersistentEntityResource}. - * + * * @param supplier a {@link Supplier} to provide a {@link PersistentEntityResource} eventually, must not be * {@literal null}. * @return diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RestMediaTypes.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RestMediaTypes.java index 850d042be..b279b6e60 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RestMediaTypes.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RestMediaTypes.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. @@ -20,7 +20,7 @@ import org.springframework.http.MediaType; /** * Constants to refer to supported media types. - * + * * @author Oliver Gierke * @author Greg Turnquist */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RootResourceInformation.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RootResourceInformation.java index bc36b61aa..7e43905fd 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RootResourceInformation.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RootResourceInformation.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. @@ -32,7 +32,7 @@ import org.springframework.web.HttpRequestMethodNotSupportedException; /** * Meta-information about the root repository resource. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -83,7 +83,7 @@ public class RootResourceInformation { /** * Verifies that the given {@link HttpMethod} is supported for the given {@link ResourceType}. - * + * * @param httpMethod must not be {@literal null}. * @param resourceType must not be {@literal null}. * @throws ResourceNotFoundException if the repository is not exported at all. @@ -110,7 +110,7 @@ public class RootResourceInformation { /** * Verifies that the given {@link HttpMethod} is supported for the given {@link PersistentProperty}. - * + * * @param httpMethod must not be {@literal null}. * @param property must not be {@literal null}. * @throws ResourceNotFoundException if the repository is not exported at all. diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/alps/AlpsController.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/alps/AlpsController.java index 883d7ea93..c76cbed02 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/alps/AlpsController.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/alps/AlpsController.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.web.bind.annotation.RequestMapping; /** * Controller exposing semantic documentation for the resources exposed using the Application Level Profile Semantics * format. - * + * * @author Oliver Gierke * @author Greg Turnquist * @see http://alps.io @@ -51,7 +51,7 @@ public class AlpsController { /** * Creates a new {@link AlpsController} for the given {@link ResourceMappings}. - * + * * @param configuration must not be {@literal null}. */ @Autowired @@ -64,7 +64,7 @@ public class AlpsController { /** * Exposes the allowed HTTP methods for the ALPS resources. - * + * * @return */ @RequestMapping(value = ProfileController.RESOURCE_PROFILE_MAPPING, method = OPTIONS, @@ -81,7 +81,7 @@ public class AlpsController { /** * Exposes an ALPS resource to describe an individual repository resource. - * + * * @param information * @return */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/alps/AlpsJsonHttpMessageConverter.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/alps/AlpsJsonHttpMessageConverter.java index e4afe016f..01141474d 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/alps/AlpsJsonHttpMessageConverter.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/alps/AlpsJsonHttpMessageConverter.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. @@ -38,7 +38,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; /** * {@link HttpMessageConverter} to render {@link Alps} and {@link RootResourceInformation} instances as * {@code application/alps+json}. - * + * * @author Oliver Gierke */ public class AlpsJsonHttpMessageConverter extends MappingJackson2HttpMessageConverter @@ -48,7 +48,7 @@ public class AlpsJsonHttpMessageConverter extends MappingJackson2HttpMessageConv /** * Creates a new {@link AlpsJsonHttpMessageConverter} for the given {@link Converter}. - * + * * @param converter must not be {@literal null}. */ public AlpsJsonHttpMessageConverter(RootResourceInformationToAlpsDescriptorConverter converter) { @@ -64,7 +64,7 @@ public class AlpsJsonHttpMessageConverter extends MappingJackson2HttpMessageConv setSupportedMediaTypes(Arrays.asList(RestMediaTypes.ALPS_JSON, MediaType.APPLICATION_JSON, MediaType.ALL)); } - /* + /* * (non-Javadoc) * @see org.springframework.http.converter.json.MappingJackson2HttpMessageConverter#canWrite(java.lang.Class, org.springframework.http.MediaType) */ @@ -74,7 +74,7 @@ public class AlpsJsonHttpMessageConverter extends MappingJackson2HttpMessageConv && super.canWrite(clazz, mediaType); } - /* + /* * (non-Javadoc) * @see org.springframework.http.converter.AbstractGenericHttpMessageConverter#canWrite(java.lang.reflect.Type, java.lang.Class, org.springframework.http.MediaType) */ @@ -83,7 +83,7 @@ public class AlpsJsonHttpMessageConverter extends MappingJackson2HttpMessageConv return canWrite(clazz, mediaType); } - /* + /* * (non-Javadoc) * @see org.springframework.http.converter.json.MappingJackson2HttpMessageConverter#canRead(java.lang.reflect.Type, java.lang.Class, org.springframework.http.MediaType) */ @@ -92,7 +92,7 @@ public class AlpsJsonHttpMessageConverter extends MappingJackson2HttpMessageConv return false; } - /* + /* * (non-Javadoc) * @see org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice#beforeBodyWrite(java.lang.Object, org.springframework.core.MethodParameter, org.springframework.http.MediaType, java.lang.Class, org.springframework.http.server.ServerHttpRequest, org.springframework.http.server.ServerHttpResponse) */ @@ -105,7 +105,7 @@ public class AlpsJsonHttpMessageConverter extends MappingJackson2HttpMessageConv ? Collections.singletonMap("alps", converter.convert((RootResourceInformation) body)) : body; } - /* + /* * (non-Javadoc) * @see org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice#supports(org.springframework.core.MethodParameter, java.lang.Class) */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/alps/RootResourceInformationToAlpsDescriptorConverter.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/alps/RootResourceInformationToAlpsDescriptorConverter.java index 38fdead70..008a6dac3 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/alps/RootResourceInformationToAlpsDescriptorConverter.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/alps/RootResourceInformationToAlpsDescriptorConverter.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. @@ -73,7 +73,7 @@ import com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition; /** * Converter to create Alps {@link Descriptor} instances for a {@link RootResourceInformation}. - * + * * @author Oliver Gierke * @author Greg Turnquist */ @@ -160,7 +160,7 @@ public class RootResourceInformationToAlpsDescriptorConverter { /** * Builds a descriptor for the projection parameter of the given resource. - * + * * @param metadata * @return */ @@ -250,7 +250,7 @@ public class RootResourceInformationToAlpsDescriptorConverter { /** * Creates the {@link Descriptor}s for pagination parameters. - * + * * @param type * @return */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/ArgumentResolverPagingAndSortingTemplateVariables.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/ArgumentResolverPagingAndSortingTemplateVariables.java index a6a1595ec..87633bf9f 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/ArgumentResolverPagingAndSortingTemplateVariables.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/ArgumentResolverPagingAndSortingTemplateVariables.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. @@ -35,7 +35,7 @@ import org.springframework.web.util.UriComponentsBuilder; /** * {@link PagingAndSortingTemplateVariables} implementation to delegate to the HATEOAS-enabled * {@link HandlerMethodArgumentResolver}s for {@link Pageable} and {@link Sort}. - * + * * @author Oliver Gierke * @since 2.3 */ @@ -50,7 +50,7 @@ class ArgumentResolverPagingAndSortingTemplateVariables implements PagingAndSort /** * Creates a new {@link ArgumentResolverPagingAndSortingTemplateVariables} using the given * {@link HateoasPageableHandlerMethodArgumentResolver} and {@link HateoasSortHandlerMethodArgumentResolver}. - * + * * @param pagingResolver must not be {@literal null}. * @param sortResolver must not be {@literal null}. */ @@ -64,7 +64,7 @@ class ArgumentResolverPagingAndSortingTemplateVariables implements PagingAndSort this.sortResolver = sortResolver; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.support.PagingAndSortingTemplateVariables#getPaginationTemplateVariables(org.springframework.core.MethodParameter, org.springframework.web.util.UriComponents) */ @@ -73,7 +73,7 @@ class ArgumentResolverPagingAndSortingTemplateVariables implements PagingAndSort return pagingResolver.getPaginationTemplateVariables(parameter, components); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.support.PagingAndSortingTemplateVariables#getSortTemplateVariables(org.springframework.core.MethodParameter, org.springframework.web.util.UriComponents) */ @@ -82,7 +82,7 @@ class ArgumentResolverPagingAndSortingTemplateVariables implements PagingAndSort return sortResolver.getSortTemplateVariables(parameter, template); } - /* + /* * (non-Javadoc) * @see org.springframework.hateoas.mvc.UriComponentsContributor#enhance(org.springframework.web.util.UriComponentsBuilder, org.springframework.core.MethodParameter, java.lang.Object) */ @@ -96,7 +96,7 @@ class ArgumentResolverPagingAndSortingTemplateVariables implements PagingAndSort } } - /* + /* * (non-Javadoc) * @see org.springframework.hateoas.mvc.UriComponentsContributor#supportsParameter(org.springframework.core.MethodParameter) */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/JsonPatchHandler.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/JsonPatchHandler.java index a9efc5af3..bd412f678 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/JsonPatchHandler.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/JsonPatchHandler.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 com.fasterxml.jackson.databind.node.ObjectNode; * JSON Patch library by Francis Galiegue but applies a customization to remove operations. As the patched node set * needs to be applied to the existing domain objects (see {@link DomainObjectReader} for that) we turn remove calls * into - * + * * @author Oliver Gierke * @author Mathias Düsterhöft * @see http://tools.ietf.org/html/rfc6902 @@ -49,7 +49,7 @@ class JsonPatchHandler { /** * Creates a new {@link JsonPatchHandler} with the given {@link ObjectMapper} and {@link DomainObjectReader}. - * + * * @param mapper must not be {@literal null}. * @param reader must not be {@literal null}. */ @@ -67,7 +67,7 @@ class JsonPatchHandler { /** * Applies the body of the given {@link IncomingRequest} as patch on the given target object. - * + * * @param request must not be {@literal null}. * @param target must not be {@literal null}. * @return @@ -101,7 +101,7 @@ class JsonPatchHandler { /** * Returns all {@link JsonPatchOperation}s to be applied. - * + * * @param source must not be {@literal null}. * @return * @throws HttpMessageNotReadableException in case the payload can't be read. diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/PersistentEntityResourceAssemblerArgumentResolver.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/PersistentEntityResourceAssemblerArgumentResolver.java index d2846853b..edf4b9f1e 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/PersistentEntityResourceAssemblerArgumentResolver.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/PersistentEntityResourceAssemblerArgumentResolver.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. @@ -33,7 +33,7 @@ import org.springframework.web.method.support.ModelAndViewContainer; /** * {@link HandlerMethodArgumentResolver} to create {@link PersistentEntityResourceAssembler}s. - * + * * @author Oliver Gierke */ @RequiredArgsConstructor @@ -45,7 +45,7 @@ public class PersistentEntityResourceAssemblerArgumentResolver implements Handle private final @NonNull ProjectionFactory projectionFactory; private final @NonNull Associations links; - /* + /* * (non-Javadoc) * @see org.springframework.web.method.support.HandlerMethodArgumentResolver#supportsParameter(org.springframework.core.MethodParameter) */ @@ -54,7 +54,7 @@ public class PersistentEntityResourceAssemblerArgumentResolver implements Handle return PersistentEntityResourceAssembler.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) */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/PersistentEntityResourceHandlerMethodArgumentResolver.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/PersistentEntityResourceHandlerMethodArgumentResolver.java index 16be0ae2f..6e1693c28 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/PersistentEntityResourceHandlerMethodArgumentResolver.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/PersistentEntityResourceHandlerMethodArgumentResolver.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. @@ -52,7 +52,7 @@ import com.fasterxml.jackson.databind.node.ObjectNode; /** * Custom {@link HandlerMethodArgumentResolver} to create {@link PersistentEntityResource} instances. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -70,7 +70,7 @@ public class PersistentEntityResourceHandlerMethodArgumentResolver implements Ha /** * Creates a new {@link PersistentEntityResourceHandlerMethodArgumentResolver} for the given * {@link HttpMessageConverter}s and {@link RootResourceInformationHandlerMethodArgumentResolver}.. - * + * * @param messageConverters must not be {@literal null}. * @param resourceInformationResolver must not be {@literal null}. * @param idResolver must not be {@literal null}. @@ -159,7 +159,7 @@ public class PersistentEntityResourceHandlerMethodArgumentResolver implements Ha /** * Reads the given {@link ServerHttpRequest} into an object of the type of the given {@link RootResourceInformation}, * potentially applying the content to an object of the given id. - * + * * @param information must not be {@literal null}. * @param request must not be {@literal null}. * @param converter must not be {@literal null}. diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/ProjectionDefinitionRegistar.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/ProjectionDefinitionRegistar.java index a30e22f17..92cdb9bad 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/ProjectionDefinitionRegistar.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/ProjectionDefinitionRegistar.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. @@ -32,7 +32,7 @@ import org.springframework.util.Assert; * registered with the {@link RepositoryRestConfiguration}. This rather external configuration has been used to make * sure we don't introduce a cyclic dependency between {@link RepositoryRestConfiguration} an * {@link RepositoryResourceMappings} as the latter need access to the former to discover mappings in the first place. - * + * * @author Oliver Gierke * @since 2.5 * @soundtrack Katinka - Ausverkauf @@ -43,7 +43,7 @@ public class ProjectionDefinitionRegistar extends InstantiationAwareBeanPostProc /** * Creates a new {@link ProjectionDefinitionRegistar} for the given {@link RepositoryRestConfiguration}. - * + * * @param config must not be {@literal null}. */ public ProjectionDefinitionRegistar(ObjectFactory config) { @@ -53,7 +53,7 @@ public class ProjectionDefinitionRegistar extends InstantiationAwareBeanPostProc this.config = config; } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter#postProcessAfterInitialization(java.lang.Object, java.lang.String) */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/QuerydslAwareRootResourceInformationHandlerMethodArgumentResolver.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/QuerydslAwareRootResourceInformationHandlerMethodArgumentResolver.java index 1fc24ce90..73292e145 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/QuerydslAwareRootResourceInformationHandlerMethodArgumentResolver.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/QuerydslAwareRootResourceInformationHandlerMethodArgumentResolver.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. @@ -42,7 +42,7 @@ import com.querydsl.core.types.Predicate; /** * {@link HandlerMethodArgumentResolver} to create {@link RootResourceInformation} for injection into Spring MVC * controller methods. - * + * * @author Oliver Gierke * @since 2.4 */ @@ -56,7 +56,7 @@ class QuerydslAwareRootResourceInformationHandlerMethodArgumentResolver /** * Creates a new {@link QuerydslAwareRootResourceInformationHandlerMethodArgumentResolver} using the given * {@link Repositories}, {@link RepositoryInvokerFactory} and {@link ResourceMetadataHandlerMethodArgumentResolver}. - * + * * @param repositories must not be {@literal null}. * @param invokerFactory must not be {@literal null}. * @param resourceMetadataResolver must not be {@literal null}. @@ -72,7 +72,7 @@ class QuerydslAwareRootResourceInformationHandlerMethodArgumentResolver this.factory = factory; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.config.RootResourceInformationHandlerMethodArgumentResolver#postProcess(org.springframework.data.repository.support.RepositoryInvoker, java.lang.Class, java.util.Map) */ @@ -111,7 +111,7 @@ class QuerydslAwareRootResourceInformationHandlerMethodArgumentResolver /** * Converts the given Map into a {@link MultiValueMap}. - * + * * @param source must not be {@literal null}. * @return */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestConfigurer.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestConfigurer.java index cd8ea5340..a3fd6ee8d 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestConfigurer.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestConfigurer.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. @@ -27,7 +27,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; /** * Component to configure and customize the setup of Spring Data REST. - * + * * @author Oliver Gierke * @since 2.4 * @soundtrack Florian Reichelt & Max Ender - Abschlusskonzert (https://www.youtube.com/watch?v=5WP0P-ndinY) @@ -36,21 +36,21 @@ public interface RepositoryRestConfigurer { /** * Override this method to add additional configuration. - * + * * @param config Main configuration bean. */ void configureRepositoryRestConfiguration(RepositoryRestConfiguration config); /** * Override this method to add your own converters. - * + * * @param conversionService Default ConversionService bean. */ void configureConversionService(ConfigurableConversionService conversionService); /** * Override this method to add validators manually. - * + * * @param validatingListener The {@link org.springframework.context.ApplicationListener} responsible for invoking * {@link org.springframework.validation.Validator} instances. */ @@ -58,21 +58,21 @@ public interface RepositoryRestConfigurer { /** * Configure the {@link ExceptionHandlerExceptionResolver}. - * + * * @param exceptionResolver The default exception resolver on which you can add custom argument resolvers. */ void configureExceptionHandlerExceptionResolver(ExceptionHandlerExceptionResolver exceptionResolver); /** * Configure the available {@link HttpMessageConverter}s by adding your own. - * + * * @param messageConverters The converters to be used by the system. */ void configureHttpMessageConverters(List> messageConverters); /** * Configure the Jackson {@link ObjectMapper} directly. - * + * * @param objectMapper The {@literal ObjectMapper} to be used by the system. */ void configureJacksonObjectMapper(ObjectMapper objectMapper); diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestConfigurerAdapter.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestConfigurerAdapter.java index 69f0081d5..0aecdd72a 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestConfigurerAdapter.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestConfigurerAdapter.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. @@ -27,49 +27,49 @@ import com.fasterxml.jackson.databind.ObjectMapper; /** * Convenience adapter for {@link RepositoryRestConfigurer} to allow selective override of configuration methods. - * + * * @author Oliver Gierke * @since 2.4 * @soundtrack Florian Reichelt & Max Ender - Abschlusskonzert (https://www.youtube.com/watch?v=5WP0P-ndinY) */ public class RepositoryRestConfigurerAdapter implements RepositoryRestConfigurer { - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.config.RepositoryRestConfigurer#configureRepositoryRestConfiguration(org.springframework.data.rest.core.config.RepositoryRestConfiguration) */ @Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) {} - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.config.RepositoryRestConfigurer#configureConversionService(org.springframework.core.convert.support.ConfigurableConversionService) */ @Override public void configureConversionService(ConfigurableConversionService conversionService) {} - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.config.RepositoryRestConfigurer#configureValidatingRepositoryEventListener(org.springframework.data.rest.core.event.ValidatingRepositoryEventListener) */ @Override public void configureValidatingRepositoryEventListener(ValidatingRepositoryEventListener validatingListener) {} - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.config.RepositoryRestConfigurer#configureExceptionHandlerExceptionResolver(org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver) */ @Override public void configureExceptionHandlerExceptionResolver(ExceptionHandlerExceptionResolver exceptionResolver) {} - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.config.RepositoryRestConfigurer#configureHttpMessageConverters(java.util.List) */ @Override public void configureHttpMessageConverters(List> messageConverters) {} - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.config.RepositoryRestConfigurer#configureJacksonObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestConfigurerDelegate.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestConfigurerDelegate.java index 39c5c34a6..7eb7990df 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestConfigurerDelegate.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestConfigurerDelegate.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.fasterxml.jackson.databind.ObjectMapper; /** * Delegating implementation of {@link RepositoryRestConfigurer} that will forward all calls to configuration methods to * all registered {@link RepositoryRestConfigurer}. - * + * * @author Oliver Gierke * @soundtrack Florian Reichelt & Max Ender - Abschlusskonzert (https://www.youtube.com/watch?v=5WP0P-ndinY) */ @@ -39,7 +39,7 @@ class RepositoryRestConfigurerDelegate implements RepositoryRestConfigurer { /** * Creates a new {@link RepositoryRestConfigurerDelegate} for the given {@link RepositoryRestConfigurer}s. - * + * * @param delegates must not be {@literal null}. */ public RepositoryRestConfigurerDelegate(Iterable delegates) { @@ -49,7 +49,7 @@ class RepositoryRestConfigurerDelegate implements RepositoryRestConfigurer { this.delegates = delegates; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.config.RepositoryRestConfigurer#configureRepositoryRestConfiguration(org.springframework.data.rest.core.config.RepositoryRestConfiguration) */ @@ -61,7 +61,7 @@ class RepositoryRestConfigurerDelegate implements RepositoryRestConfigurer { } } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.config.RepositoryRestConfigurer#configureConversionService(org.springframework.core.convert.support.ConfigurableConversionService) */ @@ -73,7 +73,7 @@ class RepositoryRestConfigurerDelegate implements RepositoryRestConfigurer { } } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.config.RepositoryRestConfigurer#configureExceptionHandlerExceptionResolver(org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver) */ @@ -85,7 +85,7 @@ class RepositoryRestConfigurerDelegate implements RepositoryRestConfigurer { } } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.config.RepositoryRestConfigurer#configureHttpMessageConverters(java.util.List) */ @@ -97,7 +97,7 @@ class RepositoryRestConfigurerDelegate implements RepositoryRestConfigurer { } } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.config.RepositoryRestConfigurer#configureJacksonObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) */ @@ -109,7 +109,7 @@ class RepositoryRestConfigurerDelegate implements RepositoryRestConfigurer { } } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.config.RepositoryRestConfigurer#configureValidatingRepositoryEventListener(org.springframework.data.rest.core.event.ValidatingRepositoryEventListener) */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.java index ba845b8e6..cebef5fb5 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.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. @@ -164,7 +164,7 @@ import com.fasterxml.jackson.datatype.jdk8.Jdk8Module; *

* Any XML files located in the classpath under the {@literal META-INF/spring-data-rest/} path will be automatically * found and loaded into this {@link org.springframework.context.ApplicationContext}. - * + * * @author Oliver Gierke * @author Jon Brisbin * @author Greg Turnquist @@ -199,7 +199,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon super(context, conversionService); } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.BeanClassLoaderAware#setBeanClassLoader(java.lang.ClassLoader) */ @@ -208,7 +208,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon this.beanClassLoader = classLoader; } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.InitializingBean#afterPropertiesSet() */ @@ -316,7 +316,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon /** * {@link org.springframework.beans.factory.config.BeanPostProcessor} to turn beans annotated as * {@link org.springframework.data.rest.repository.annotation.RepositoryEventHandler}s. - * + * * @return */ @Bean @@ -326,7 +326,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon /** * For merging incoming objects materialized from JSON with existing domain objects loaded from the repository. - * + * * @return * @throws Exception */ @@ -338,7 +338,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon /** * Turns an {@link javax.servlet.http.HttpServletRequest} into a * {@link org.springframework.http.server.ServerHttpRequest}. - * + * * @return */ @Bean @@ -348,7 +348,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon /** * A convenience resolver that pulls together all the information needed to service a request. - * + * * @return */ @Bean @@ -388,7 +388,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon /** * A special {@link org.springframework.hateoas.EntityLinks} implementation that takes repository and current * configuration into account when generating links. - * + * * @return * @throws Exception */ @@ -404,7 +404,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon /** * Reads incoming JSON into an entity. - * + * * @return */ @Bean @@ -417,7 +417,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon /** * Turns a domain class into a {@link org.springframework.data.rest.webmvc.json.JsonSchema}. - * + * * @return */ @Bean @@ -430,7 +430,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon /** * The {@link MessageSourceAccessor} to provide messages for {@link ResourceDescription}s being rendered. - * + * * @return */ @Bean @@ -456,7 +456,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon /** * The Jackson {@link ObjectMapper} used internally. - * + * * @return */ @Bean @@ -474,7 +474,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon /** * The {@link HttpMessageConverter} used by Spring MVC to read and write JSON data. - * + * * @return */ @Bean @@ -545,7 +545,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon /** * The {@link HttpMessageConverter} used to create {@literal text/uri-list} responses. - * + * * @return */ @Bean @@ -571,7 +571,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon /** * Special {@link org.springframework.web.servlet.HandlerAdapter} that only recognizes handler methods defined in the * provided controller classes. - * + * * @param resourceProcessors {@link ResourceProcessor}s available in the {@link ApplicationContext}. * @return */ @@ -645,7 +645,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon /** * Jackson module responsible for intelligently serializing and deserializing JSON that corresponds to an entity. - * + * * @return */ protected Module persistentEntityJackson2Module() { @@ -683,7 +683,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon return new DefaultExcerptProjector(projectionFactory, resourceMappings()); } - /* + /* * (non-Javadoc) * @see org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter#extendHandlerExceptionResolvers(java.util.List) */ @@ -746,7 +746,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon return new AlpsJsonHttpMessageConverter(alpsConverter()); } - /* + /* * (non-Javadoc) * @see org.springframework.data.web.config.HateoasAwareSpringDataWebConfiguration#pageableResolver() */ @@ -763,7 +763,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon return resolver; } - /* + /* * (non-Javadoc) * @see org.springframework.data.web.config.HateoasAwareSpringDataWebConfiguration#sortResolver() */ @@ -914,7 +914,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon // HAL Browser // - /* + /* * (non-Javadoc) * @see org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter#addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry) */ @@ -940,7 +940,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon /** * Creates a new {@link ResourceSupportHttpMessageConverter} with the given order. - * + * * @param order the order for the {@link HttpMessageConverter}. */ public ResourceSupportHttpMessageConverter(int order) { @@ -948,7 +948,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon this.order = order; } - /* + /* * (non-Javadoc) * @see org.springframework.core.Ordered#getOrder() */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/ResourceMetadataHandlerMethodArgumentResolver.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/ResourceMetadataHandlerMethodArgumentResolver.java index 30eddd777..700d12fe9 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/ResourceMetadataHandlerMethodArgumentResolver.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/ResourceMetadataHandlerMethodArgumentResolver.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. @@ -33,7 +33,7 @@ import org.springframework.web.method.support.ModelAndViewContainer; /** * {@link HandlerMethodArgumentResolver} to create {@link ResourceMetadata} instances. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -46,7 +46,7 @@ public class ResourceMetadataHandlerMethodArgumentResolver implements HandlerMet /** * Creates a new {@link ResourceMetadataHandlerMethodArgumentResolver} for the given {@link Repositories} and * {@link ResourceMappings}. - * + * * @param repositories must not be {@literal null}. * @param mappings must not be {@literal null}. * @param baseUri must not be {@literal null}. diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RootResourceInformationHandlerMethodArgumentResolver.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RootResourceInformationHandlerMethodArgumentResolver.java index 50afb00a5..9c5178603 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RootResourceInformationHandlerMethodArgumentResolver.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RootResourceInformationHandlerMethodArgumentResolver.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. @@ -33,7 +33,7 @@ import org.springframework.web.method.support.ModelAndViewContainer; /** * {@link HandlerMethodArgumentResolver} to create {@link RootResourceInformation} for injection into Spring MVC * controller methods. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -46,7 +46,7 @@ public class RootResourceInformationHandlerMethodArgumentResolver implements Han /** * Creates a new {@link RootResourceInformationHandlerMethodArgumentResolver} using the given {@link Repositories}, * {@link RepositoryInvokerFactory} and {@link ResourceMetadataHandlerMethodArgumentResolver}. - * + * * @param repositories must not be {@literal null}. * @param invokerFactory must not be {@literal null}. * @param resourceMetadataResolver must not be {@literal null}. @@ -95,7 +95,7 @@ public class RootResourceInformationHandlerMethodArgumentResolver implements Han /** * Potentially customize the given {@link RepositoryInvoker} for the given domain type. Default implementations simply * returns the given invoker as is. - * + * * @param parameter must not be {@literal null}. * @param invoker will never be {@literal null}. * @param domainType will never be {@literal null}. diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/convert/UriListHttpMessageConverter.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/convert/UriListHttpMessageConverter.java index c606b15f5..744eb21b6 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/convert/UriListHttpMessageConverter.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/convert/UriListHttpMessageConverter.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. @@ -38,7 +38,7 @@ import org.springframework.util.StringUtils; /** * {@link Converter} to render all {@link Link}s contained in a {@link ResourceSupport} as {@code text/uri-list} and * parse a request of that media type back into a {@link ResourceSupport} instance. - * + * * @author Jon Brisbin * @author Greg Turnquist * @author Oliver Gierke diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/DomainObjectReader.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/DomainObjectReader.java index 1070e8aaa..770d90ae6 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/DomainObjectReader.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/DomainObjectReader.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. @@ -57,7 +57,7 @@ import com.fasterxml.jackson.databind.node.ObjectNode; * Component to apply an {@link ObjectNode} to an existing domain object. This is effectively a best-effort workaround * for Jackson's inability to apply a (partial) JSON document to an existing object in a deeply nested way. We manually * detect nested objects, lookup the original value and apply the merge recursively. - * + * * @author Oliver Gierke * @author Mark Paluch * @author Craig Andrews @@ -72,7 +72,7 @@ public class DomainObjectReader { /** * Reads the given input stream into an {@link ObjectNode} and applies that to the given existing instance. - * + * * @param source must not be {@literal null}. * @param target must not be {@literal null}. * @param mapper must not be {@literal null}. @@ -93,7 +93,7 @@ public class DomainObjectReader { /** * Reads the given source node onto the given target object and applies PUT semantics, i.e. explicitly - * + * * @param source must not be {@literal null}. * @param target must not be {@literal null}. * @param mapper @@ -122,7 +122,7 @@ public class DomainObjectReader { /** * Merges the state of given source object onto the target one preserving PUT semantics. - * + * * @param source can be {@literal null}. * @param target can be {@literal null}. * @param mapper must not be {@literal null}. @@ -156,7 +156,7 @@ public class DomainObjectReader { /** * Copies the unmapped properties of the given {@link MappedProperties} from the source object to the target instance. - * + * * @param properties must not be {@literal null}. * @param source must not be {@literal null}. * @param target must not be {@literal null}. @@ -194,7 +194,7 @@ public class DomainObjectReader { /** * Merges the given {@link ObjectNode} onto the given object. - * + * * @param root must not be {@literal null}. * @param target must not be {@literal null}. * @param mapper must not be {@literal null}. @@ -286,7 +286,7 @@ public class DomainObjectReader { * Handles the given {@link JsonNode} by treating it as {@link ArrayNode} and the given source value as * {@link Collection}-like value. Looks up the actual type to handle from the potentially available first element, * falling back to component type lookup on the given type. - * + * * @param node must not be {@literal null}. * @param source must not be {@literal null}. * @param mapper must not be {@literal null}. @@ -307,7 +307,7 @@ public class DomainObjectReader { /** * Applies the diff handling to {@link ArrayNode}s, potentially recursing into nested ones. - * + * * @param array the source {@link ArrayNode}m, must not be {@literal null}. * @param collection the actual collection values, must not be {@literal null}. * @param mapper the {@link ObjectMapper} to use, must not be {@literal null}. @@ -358,7 +358,7 @@ public class DomainObjectReader { /** * Merges nested {@link Map} values for the given source {@link Map}, the {@link ObjectNode} and {@link ObjectMapper}. - * + * * @param source can be {@literal null}. * @param node must not be {@literal null}. * @param mapper must not be {@literal null}. @@ -491,7 +491,7 @@ public class DomainObjectReader { /** * Returns the given source instance as {@link Collection} or creates a new one for the given type. - * + * * @param source can be {@literal null}. * @param type must not be {@literal null} in case {@code source} is null. * @return @@ -514,7 +514,7 @@ public class DomainObjectReader { /** * Surrounds the given source {@link String} with quotes so that they represent a valid JSON String. - * + * * @param source can be {@literal null}. * @return */ @@ -524,7 +524,7 @@ public class DomainObjectReader { /** * Returns the raw type of the given {@link TypeInformation} or {@link Object} as fallback. - * + * * @param type can be {@literal null}. * @return */ @@ -536,7 +536,7 @@ public class DomainObjectReader { * Returns the type to read for the given value and default type. The type will be defaulted to {@link Object} if * missing. If the given value's type is different from the given default (i.e. more concrete) the value's type will * be used. - * + * * @param value can be {@literal null}. * @param type can be {@literal null}. * @return @@ -562,7 +562,7 @@ public class DomainObjectReader { /** * {@link SimpleAssociationHandler} that skips linkable associations and forwards handling for all other ones to the * delegate {@link SimplePropertyHandler}. - * + * * @author Oliver Gierke */ @RequiredArgsConstructor @@ -588,7 +588,7 @@ public class DomainObjectReader { /** * {@link SimplePropertyHandler} to merge the states of the given objects. - * + * * @author Oliver Gierke */ private class MergingPropertyHandler implements SimplePropertyHandler { @@ -601,7 +601,7 @@ public class DomainObjectReader { /** * Creates a new {@link MergingPropertyHandler} for the given source, target, {@link PersistentEntity} and * {@link ObjectMapper}. - * + * * @param source must not be {@literal null}. * @param target must not be {@literal null}. * @param entity must not be {@literal null}. diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/EnumTranslator.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/EnumTranslator.java index 8a68658ff..8a1d652ad 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/EnumTranslator.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/EnumTranslator.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. @@ -39,7 +39,7 @@ public class EnumTranslator implements EnumTranslationConfiguration { /** * Creates a new {@link EnumTranslator} using the given {@link MessageSourceAccessor}. - * + * * @param messageSourceAccessor must not be {@literal null}. */ public EnumTranslator(MessageSourceAccessor messageSourceAccessor) { @@ -51,7 +51,7 @@ public class EnumTranslator implements EnumTranslationConfiguration { this.parseEnumNameAsFallback = true; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.config.EnumTranslationConfiguration#setEnableDefaultTranslation(boolean) */ @@ -60,7 +60,7 @@ public class EnumTranslator implements EnumTranslationConfiguration { this.enableDefaultTranslation = enableDefaultTranslation; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.core.config.EnumTranslationConfiguration#setParseEnumNameAsFallback(boolean) */ @@ -73,7 +73,7 @@ public class EnumTranslator implements EnumTranslationConfiguration { * Resolves the given enum value into a {@link String} consulting the configured {@link MessageSourceAccessor} * potentially falling back to the default translation if configured. Returning the plain enum name if no resolution * applies. - * + * * @param value must not be {@literal null}. * @return */ @@ -104,7 +104,7 @@ public class EnumTranslator implements EnumTranslationConfiguration { /** * Parses the given source text into the corresponding enum value using the configured {@link MessageSourceAccessor} * potentially falling back to the default translation or the plain enum name if configured. - * + * * @param type must not be {@literal null}. * @param text can be {@literal null} * @return the resolved enum or {@literal null} if the resolution failed. @@ -136,7 +136,7 @@ public class EnumTranslator implements EnumTranslationConfiguration { /** * Resolves the given {@link String} text into an enum value of the given type potentially trying to resolve it * through the configured {@link MessageSourceAccessor}. - * + * * @param type must not be {@literal null}. * @param text must not be {@literal null} or empty. * @param resolve whether to resolve the source {@link String} through the message source. @@ -159,7 +159,7 @@ public class EnumTranslator implements EnumTranslationConfiguration { /** * Renders a default translation for the given enum (capitalized, lower case, underscores replaced by spaces). - * + * * @param value must not be {@literal null}. * @return */ @@ -169,7 +169,7 @@ public class EnumTranslator implements EnumTranslationConfiguration { /** * Tries to obtain an enum value assuming the given text is a default translation of the enum name. - * + * * @param type must not be {@literal null}. * @param text must not be {@literal null} or empty. * @return diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/Jackson2DatatypeHelper.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/Jackson2DatatypeHelper.java index 424b3f3d0..0117435d4 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/Jackson2DatatypeHelper.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/Jackson2DatatypeHelper.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. @@ -26,7 +26,7 @@ import com.fasterxml.jackson.datatype.joda.JodaModule; /** * Helper class to register datatype modules based on their presence in the classpath. - * + * * @author Jon Brisbin * @author Oliver Gierke */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/JacksonMappingAwareSortTranslator.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/JacksonMappingAwareSortTranslator.java index 740da5d20..e689091fe 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/JacksonMappingAwareSortTranslator.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/JacksonMappingAwareSortTranslator.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. @@ -59,7 +59,7 @@ public class JacksonMappingAwareSortTranslator { /** * Creates a new {@link JacksonMappingAwareSortTranslator} for the given {@link ObjectMapper}, {@link Repositories}, * {@link DomainClassResolver} and {@link PersistentEntities}. - * + * * @param objectMapper must not be {@literal null}. * @param repositories must not be {@literal null}. * @param domainClassResolver must not be {@literal null}. @@ -237,7 +237,7 @@ public class JacksonMappingAwareSortTranslator { /** * Creates the initial {@link TypedSegment} given {@link PersistentEntities}, {@link ObjectMapper} and * {@link PersistentEntity}. - * + * * @param persistentEntities must not be {@literal null}. * @param objectMapper must not be {@literal null}. * @param rootEntity the initial entity to start mapping from, must not be {@literal null}. diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/JacksonMetadata.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/JacksonMetadata.java index cbc36d7e0..682876854 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/JacksonMetadata.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/JacksonMetadata.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. @@ -40,7 +40,7 @@ import com.fasterxml.jackson.databind.ser.DefaultSerializerProvider; /** * Value object to abstract Jackson based bean metadata of a given type. - * + * * @author Oliver Gierke * @author Greg Turnquist */ @@ -53,7 +53,7 @@ public class JacksonMetadata implements Iterable { /** * Creates a new {@link JacksonMetadata} instance for the given {@link ObjectMapper} and type. - * + * * @param mapper must not be {@literal null}. * @param type must not be {@literal null}. */ @@ -79,7 +79,7 @@ public class JacksonMetadata implements Iterable { /** * Returns the {@link BeanPropertyDefinition} for the given {@link PersistentProperty}. - * + * * @param property must not be {@literal null}. * @return can be {@literal null} in case there's no Jackson property to be exposed for the given * {@link PersistentProperty}. @@ -93,7 +93,7 @@ public class JacksonMetadata implements Iterable { /** * Returns the fallback {@link ResourceDescription} to be used for the given {@link BeanPropertyDefinition}. - * + * * @param ownerMetadata must not be {@literal null}. * @param definition must not be {@literal null}. * @return @@ -113,7 +113,7 @@ public class JacksonMetadata implements Iterable { /** * Check if a given property for a type is available to be exported, i.e. serialized via Jackson. - * + * * @param property must not be {@literal null}. * @return */ @@ -126,7 +126,7 @@ public class JacksonMetadata implements Iterable { /** * Returns whether the backing type is considered a Jackson value type. - * + * * @return the isValue */ public boolean isValueType() { @@ -135,7 +135,7 @@ public class JacksonMetadata implements Iterable { /** * Returns whether the given {@link PersistentProperty} is considered read-only by Jackson. - * + * * @param property must not be {@literal null}. * @return */ @@ -147,7 +147,7 @@ public class JacksonMetadata implements Iterable { /** * Returns the {@link JsonSerializer} for the given type, or {@literal null} if none available. - * + * * @param type must not be {@literal null}. * @return */ @@ -173,7 +173,7 @@ public class JacksonMetadata implements Iterable { } } - /* + /* * (non-Javadoc) * @see java.lang.Iterable#iterator() */ @@ -184,7 +184,7 @@ public class JacksonMetadata implements Iterable { /** * Finds the {@link BeanPropertyDefinition} for the given {@link PersistentProperty} within the given definitions. - * + * * @param property must not be {@literal null}. * @param definitions must not be {@literal null}. * @return diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/JacksonSerializers.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/JacksonSerializers.java index cace91f7d..0641f0af0 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/JacksonSerializers.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/JacksonSerializers.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. @@ -42,7 +42,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; /** * Custom Spring Data REST Jackson serializers. - * + * * @author Oliver Gierke * @since 2.4 * @soundtrack Wallis Bird - I Could Be Your Man (Yeah! Wallis Bird Live 2007-2014) @@ -53,7 +53,7 @@ public class JacksonSerializers extends SimpleModule { /** * Creates a new {@link JacksonSerializers} with the given {@link EnumTranslator}. - * + * * @param translator must not be {@literal null}. */ public JacksonSerializers(EnumTranslator translator) { @@ -83,7 +83,7 @@ public class JacksonSerializers extends SimpleModule { /** * Creates a new {@link EnumTranslatingSerializer} using the given {@link EnumTranslator}. - * + * * @param translator must not be {@literal null}. */ public EnumTranslatingSerializer(EnumTranslator translator) { @@ -95,7 +95,7 @@ public class JacksonSerializers extends SimpleModule { this.translator = translator; } - /* + /* * (non-Javadoc) * @see com.fasterxml.jackson.databind.ser.std.StdSerializer#serialize(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider) */ @@ -104,7 +104,7 @@ public class JacksonSerializers extends SimpleModule { gen.writeString(translator.asText(value)); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.json.JsonSchemaPropertyCustomizer#customize(org.springframework.data.rest.webmvc.json.JsonSchema.JsonSchemaProperty, org.springframework.data.util.TypeInformation) */ @@ -136,7 +136,7 @@ public class JacksonSerializers extends SimpleModule { /** * Creates a new {@link EnumTranslatingDeserializer} using the given {@link EnumTranslator}. - * + * * @param translator must not be {@literal null}. */ public EnumTranslatingDeserializer(EnumTranslator translator) { @@ -146,7 +146,7 @@ public class JacksonSerializers extends SimpleModule { /** * Creates a new {@link EnumTranslatingDeserializer} using the given {@link EnumTranslator} and {@link BeanProperty} * . - * + * * @param translator must not be {@literal null}. * @param property can be {@literal null}. */ @@ -160,7 +160,7 @@ public class JacksonSerializers extends SimpleModule { this.property = property; } - /* + /* * (non-Javadoc) * @see com.fasterxml.jackson.databind.deser.ContextualDeserializer#createContextual(com.fasterxml.jackson.databind.DeserializationContext, com.fasterxml.jackson.databind.BeanProperty) */ @@ -170,7 +170,7 @@ public class JacksonSerializers extends SimpleModule { return new EnumTranslatingDeserializer(translator, property); } - /* + /* * (non-Javadoc) * @see com.fasterxml.jackson.databind.JsonDeserializer#deserialize(com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.DeserializationContext) */ @@ -188,7 +188,7 @@ public class JacksonSerializers extends SimpleModule { /** * Returns the value types for containers or the original type otherwise. - * + * * @param type must not be {@literal null}. * @return */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/JsonSchema.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/JsonSchema.java index 17d0b654f..327707fd5 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/JsonSchema.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/JsonSchema.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. @@ -43,7 +43,7 @@ import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; /** * Model class to render JSON schema documents. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -61,7 +61,7 @@ public class JsonSchema { /** * Creates a new {@link JsonSchema} instance for the given title, description, {@link AbstractJsonSchemaProperty}s and * {@link Definitions}. - * + * * @param title must not be {@literal null} or empty. * @param description can be {@literal null}. * @param properties must not be {@literal null}. @@ -109,7 +109,7 @@ public class JsonSchema { /** * Turns the given {@link TypeInformation} into a JSON Schema type string. - * + * * @param typeInformation * @return * @see > properties) { @@ -344,7 +344,7 @@ public class JsonSchema { /** * Configures the {@link JsonSchemaProperty} to reflect the given type. - * + * * @param type must not be {@literal null}. * @return */ @@ -356,7 +356,7 @@ public class JsonSchema { /** * Configures the {@link JsonSchemaProperty} to reflect the given type. - * + * * @param type must not be {@literal null}. * @return */ @@ -383,7 +383,7 @@ public class JsonSchema { /** * Configures the given {@link JsonSchemaFormat} to be exposed on the current {@link JsonSchemaProperty}. - * + * * @param format must not be {@literal null}. * @return */ @@ -397,7 +397,7 @@ public class JsonSchema { /** * Configures the {@link JsonSchemaProperty} to require the given regular expression as pattern. - * + * * @param regex must not be {@literal null}. * @return */ @@ -409,7 +409,7 @@ public class JsonSchema { /** * Configures the {@link JsonSchemaProperty} to require the given {@link Pattern}. - * + * * @param pattern must not be {@literal null}. * @return */ @@ -423,7 +423,7 @@ public class JsonSchema { /** * Turns the current {@link JsonSchemaProperty} into an association. - * + * * @return */ public JsonSchemaProperty asAssociation() { @@ -484,7 +484,7 @@ public class JsonSchema { /** * Returns the current {@link EnumProperty} exposing the given values. - * + * * @param values must not be {@literal null}. * @return */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/JsonSchemaPropertyCustomizer.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/JsonSchemaPropertyCustomizer.java index ff97f3530..12b4cb172 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/JsonSchemaPropertyCustomizer.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/JsonSchemaPropertyCustomizer.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 org.springframework.data.util.TypeInformation; /** * Callback interface to customize the {@link JsonSchemaProperty} created by default for a given type. - * + * * @author Oliver Gierke * @since 2.4 * @soundtrack Superflight - Four Sided Cube (Bellyjam) @@ -29,7 +29,7 @@ public interface JsonSchemaPropertyCustomizer { /** * Returns the customized {@link JsonSchemaProperty} based on the given one and the given type. - * + * * @param property will never be {@literal null}. * @param type will never be {@literal null}. * @return diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/MappedProperties.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/MappedProperties.java index 596bfe05e..dbda12db9 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/MappedProperties.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/MappedProperties.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. @@ -142,7 +142,7 @@ class MappedProperties { /** * Returns all properties only known to Jackson. - * + * * @return the names of all properties that are not known to Spring Data but appear in the Jackson metamodel. */ public Iterable getSpringDataUnmappedProperties() { @@ -162,7 +162,7 @@ class MappedProperties { /** * Returns whether the given {@link PersistentProperty} is mapped, i.e. known to both Jackson and Spring Data. - * + * * @param property must not be {@literal null}. * @return */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/MappingAwareDefaultedPageableArgumentResolver.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/MappingAwareDefaultedPageableArgumentResolver.java index 5cd779661..225d761d1 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/MappingAwareDefaultedPageableArgumentResolver.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/MappingAwareDefaultedPageableArgumentResolver.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/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/MappingAwarePageableArgumentResolver.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/MappingAwarePageableArgumentResolver.java index 848821cf1..827d05233 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/MappingAwarePageableArgumentResolver.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/MappingAwarePageableArgumentResolver.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. @@ -35,7 +35,7 @@ import org.springframework.web.method.support.ModelAndViewContainer; * A resolved {@link Pageable} is post-processed by applying Jackson field-to-property mapping if it contains a * {@link Sort} instance. Customized fields are resolved to their property names. Unknown properties are removed from * {@link Sort}. - * + * * @author Mark Paluch * @author Oliver Gierke * @since 2.6 diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/MappingAwareSortArgumentResolver.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/MappingAwareSortArgumentResolver.java index 59c7ff3fa..91c80d9bb 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/MappingAwareSortArgumentResolver.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/MappingAwareSortArgumentResolver.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. @@ -33,7 +33,7 @@ import org.springframework.web.method.support.ModelAndViewContainer; *

* A resolved {@link Sort} is post-processed by applying Jackson field-to-property mapping. Customized fields are * resolved to their property names. Unknown properties are removed from {@link Sort}. - * + * * @author Mark Paluch * @author Oliver Gierke * @since 2.6 diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/PersistentEntityJackson2Module.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/PersistentEntityJackson2Module.java index b8e6ae389..f1f28619a 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/PersistentEntityJackson2Module.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/PersistentEntityJackson2Module.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. @@ -93,7 +93,7 @@ import com.fasterxml.jackson.databind.util.NameTransformer; /** * Jackson 2 module to serialize and deserialize {@link PersistentEntityResource}s. - * + * * @author Jon Brisbin * @author Oliver Gierke * @author Greg Turnquist @@ -108,7 +108,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { /** * Creates a new {@link PersistentEntityJackson2Module} using the given {@link ResourceMappings}, {@link Repositories} * , {@link RepositoryRestConfiguration}, {@link UriToEntityConverter} and {@link SelfLinkProvider}. - * + * * @param associations must not be {@literal null}. * @param entities must not be {@literal null}. * @param converter must not be {@literal null}. @@ -144,7 +144,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { /** * Custom {@link JsonSerializer} for {@link PersistentEntityResource}s to turn associations into {@link Link}s. * Delegates to standard {@link Resource} serialization afterwards. - * + * * @author Oliver Gierke */ @SuppressWarnings("serial") @@ -155,7 +155,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { /** * Creates a new {@link PersistentEntityResourceSerializer} using the given {@link PersistentEntities} and * {@link Associations}. - * + * * @param entities must not be {@literal null}. */ private PersistentEntityResourceSerializer(LinkCollector collector) { @@ -223,7 +223,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { /** * {@link BeanSerializerModifier} to drop the property descriptors for associations. - * + * * @author Oliver Gierke */ @RequiredArgsConstructor @@ -234,7 +234,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { private final @NonNull NestedEntitySerializer nestedEntitySerializer; private final @NonNull LookupObjectSerializer lookupObjectSerializer; - /* + /* * (non-Javadoc) * @see com.fasterxml.jackson.databind.ser.BeanSerializerModifier#changeProperties(com.fasterxml.jackson.databind.SerializationConfig, com.fasterxml.jackson.databind.BeanDescription, java.util.List) */ @@ -298,7 +298,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { /** * Returns the {@link PersistentProperty} for the property with the given final name (the name that it will be * rendered under eventually). - * + * * @param finalName the output name the property will be rendered under. * @param entity the {@link PersistentEntity} to find the property on. * @param description the Jackson {@link BeanDescription}. @@ -337,7 +337,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { this.invoker = invoker; } - /* + /* * (non-Javadoc) * @see com.fasterxml.jackson.databind.ser.std.StdSerializer#serialize(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider) */ @@ -395,7 +395,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { * A {@link BeanDeserializerModifier} that registers a custom {@link UriStringDeserializer} for association properties * of {@link PersistentEntity}s. This allows to submit URIs for those properties in request payloads, so that * non-optional associations can be populated on resource creation. - * + * * @author Oliver Gierke */ @RequiredArgsConstructor @@ -406,7 +406,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { private final @NonNull UriToEntityConverter converter; private final @NonNull RepositoryInvokerFactory factory; - /* + /* * (non-Javadoc) * @see com.fasterxml.jackson.databind.deser.BeanDeserializerModifier#updateBuilder(com.fasterxml.jackson.databind.DeserializationConfig, com.fasterxml.jackson.databind.BeanDescription, com.fasterxml.jackson.databind.deser.BeanDeserializerBuilder) */ @@ -470,7 +470,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { /** * Custom {@link JsonDeserializer} to interpret {@link String} values as URIs and resolve them using a * {@link UriToEntityConverter}. - * + * * @author Oliver Gierke * @author Valentin Rentschler */ @@ -485,7 +485,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { /** * Creates a new {@link UriStringDeserializer} for the given {@link PersistentProperty} using the given * {@link UriToEntityConverter}. - * + * * @param property must not be {@literal null}. * @param converter must not be {@literal null}. */ @@ -497,7 +497,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { this.converter = converter; } - /* + /* * (non-Javadoc) * @see com.fasterxml.jackson.databind.JsonDeserializer#deserialize(com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.DeserializationContext) */ @@ -523,7 +523,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { /** * Deserialize by ignoring the {@link TypeDeserializer}, as URIs will either resolve to {@literal null} or a * concrete instance anyway. - * + * * @see com.fasterxml.jackson.databind.deser.std.StdDeserializer#deserializeWithType(com.fasterxml.jackson.core.JsonParser, * com.fasterxml.jackson.databind.DeserializationContext, * com.fasterxml.jackson.databind.jsontype.TypeDeserializer) @@ -546,7 +546,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { /** * Creates a new {@link ProjectionSerializer} for the given {@link LinkCollector}, {@link ResourceMappings} whether * to be in unwrapping mode or not. - * + * * @param collector must not be {@literal null}. * @param mappings must not be {@literal null}. * @param invoker must not be {@literal null}. @@ -563,7 +563,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { this.unwrapping = unwrapping; } - /* + /* * (non-Javadoc) * @see com.fasterxml.jackson.databind.ser.std.StdSerializer#serialize(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider) */ @@ -585,7 +585,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { } } - /* + /* * (non-Javadoc) * @see com.fasterxml.jackson.databind.JsonSerializer#isUnwrappingSerializer() */ @@ -594,7 +594,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { return unwrapping; } - /* + /* * (non-Javadoc) * @see com.fasterxml.jackson.databind.JsonSerializer#unwrappingSerializer(com.fasterxml.jackson.databind.util.NameTransformer) */ @@ -605,7 +605,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { /** * Creates a {@link ProjectionResource} for the given {@link TargetAware}. - * + * * @param value must not be {@literal null}. * @return */ @@ -658,7 +658,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { /** * Creates a new {@link ProjectionResourceContentSerializer}. - * + * * @param unwrapping whether to expose the unwrapping state. */ public ProjectionResourceContentSerializer(boolean unwrapping) { @@ -667,7 +667,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { this.unwrapping = unwrapping; } - /* + /* * (non-Javadoc) * @see com.fasterxml.jackson.databind.ser.std.StdSerializer#serialize(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider) */ @@ -681,7 +681,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { serialize(value.getProjection(), jgen, provider); } - /* + /* * (non-Javadoc) * @see com.fasterxml.jackson.databind.JsonSerializer#isUnwrappingSerializer() */ @@ -690,7 +690,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { return unwrapping; } - /* + /* * (non-Javadoc) * @see com.fasterxml.jackson.databind.JsonSerializer#unwrappingSerializer(com.fasterxml.jackson.databind.util.NameTransformer) */ @@ -703,7 +703,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { /** * {@link ValueInstantiator} to create collection or map instances based on the type of the configured * {@link PersistentProperty}. - * + * * @author Oliver Gierke */ private static class CollectionValueInstantiator extends ValueInstantiator { @@ -712,7 +712,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { /** * Creates a new {@link CollectionValueInstantiator} for the given {@link PersistentProperty}. - * + * * @param property must not be {@literal null} and must be a collection. */ public CollectionValueInstantiator(PersistentProperty property) { @@ -723,7 +723,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { this.property = property; } - /* + /* * (non-Javadoc) * @see com.fasterxml.jackson.databind.deser.ValueInstantiator#getValueTypeDesc() */ @@ -732,7 +732,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { return property.getType().getName(); } - /* + /* * (non-Javadoc) * @see com.fasterxml.jackson.databind.deser.ValueInstantiator#createUsingDefault(com.fasterxml.jackson.databind.DeserializationContext) */ @@ -757,7 +757,7 @@ public class PersistentEntityJackson2Module extends SimpleModule { this.invoker = factory.getInvokerFor(_valueClass); } - /* + /* * (non-Javadoc) * @see com.fasterxml.jackson.databind.JsonDeserializer#deserialize(com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.DeserializationContext) */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/PersistentEntityToJsonSchemaConverter.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/PersistentEntityToJsonSchemaConverter.java index fff97d335..e75d7a858 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/PersistentEntityToJsonSchemaConverter.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/PersistentEntityToJsonSchemaConverter.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. @@ -66,7 +66,7 @@ import com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition; /** * Converter to create {@link JsonSchema} instances for {@link PersistentEntity}s. - * + * * @author Jon Brisbin * @author Oliver Gierke * @author Greg Turnquist @@ -88,7 +88,7 @@ public class PersistentEntityToJsonSchemaConverter implements ConditionalGeneric /** * Creates a new {@link PersistentEntityToJsonSchemaConverter} for the given {@link PersistentEntities} and * {@link ResourceMappings}. - * + * * @param entities must not be {@literal null}. * @param mappings must not be {@literal null}. * @param accessor must not be {@literal null}. @@ -138,7 +138,7 @@ public class PersistentEntityToJsonSchemaConverter implements ConditionalGeneric /** * Converts the given type into a {@link JsonSchema} instance. - * + * * @param domainType must not be {@literal null}. * @return */ @@ -314,7 +314,7 @@ public class PersistentEntityToJsonSchemaConverter implements ConditionalGeneric /** * Creates a new {@link JsonSchemaPropertyRegistrar} using the given {@link JacksonMetadata}. - * + * * @param metadata must not be {@literal null}. */ public JsonSchemaPropertyRegistrar(JacksonMetadata metadata) { @@ -361,7 +361,7 @@ public class PersistentEntityToJsonSchemaConverter implements ConditionalGeneric return new JsonSchemaPropertyCustomizer() { - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.json.JsonSchemaPropertyCustomizer#customize(org.springframework.data.rest.webmvc.json.JsonSchema.JsonSchemaProperty, org.springframework.data.util.TypeInformation) */ @@ -394,7 +394,7 @@ public class PersistentEntityToJsonSchemaConverter implements ConditionalGeneric /** * Creates a new {@link ResolvableProperty} for the given {@link BeanPropertyDefinition}. - * + * * @param property must not be {@literal null}. */ public ResolvableProperty(BeanPropertyDefinition property) { @@ -427,7 +427,7 @@ public class PersistentEntityToJsonSchemaConverter implements ConditionalGeneric /** * Creates a new {@link ResolvableType} for the given type. - * + * * @param type must not be {@literal null}. */ public ResolvableType(Class type) { @@ -539,14 +539,14 @@ public class PersistentEntityToJsonSchemaConverter implements ConditionalGeneric /** * Creates a new {@link DefaultingMessageSourceResolvable} for the given delegate {@link MessageSourceResolvable}. - * + * * @param delegate must not be {@literal null}. */ public DefaultingMessageSourceResolvable(MessageSourceResolvable delegate) { this.delegate = delegate; } - /* + /* * (non-Javadoc) * @see org.springframework.context.MessageSourceResolvable#getArguments() */ @@ -555,7 +555,7 @@ public class PersistentEntityToJsonSchemaConverter implements ConditionalGeneric return delegate.getArguments(); } - /* + /* * (non-Javadoc) * @see org.springframework.context.MessageSourceResolvable#getCodes() */ @@ -564,7 +564,7 @@ public class PersistentEntityToJsonSchemaConverter implements ConditionalGeneric return delegate.getCodes(); } - /* + /* * (non-Javadoc) * @see org.springframework.context.MessageSourceResolvable#getDefaultMessage() */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/WrappedProperties.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/WrappedProperties.java index 6569a73aa..3c7a98f56 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/WrappedProperties.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/WrappedProperties.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. @@ -113,7 +113,7 @@ class WrappedProperties { /** * This class resolves {@code @JsonUnwrapped} field names to a list of involved {@link PersistentProperty properties}. - * + * * @author Mark Paluch */ @RequiredArgsConstructor diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/package-info.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/package-info.java index 2533be269..ef7519ff5 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/package-info.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/package-info.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,4 +17,4 @@ * * @author Oliver Gierke */ -package org.springframework.data.rest.webmvc.json; \ No newline at end of file +package org.springframework.data.rest.webmvc.json; diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/AddOperation.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/AddOperation.java index 811072901..b00ceed74 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/AddOperation.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/AddOperation.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. @@ -18,7 +18,7 @@ package org.springframework.data.rest.webmvc.json.patch; /** * Operation to add a new value to the given "path". Will throw a {@link PatchException} if the path is invalid or if * the given value is not assignable to the given path. - * + * * @author Craig Walls * @author Oliver Gierke */ @@ -26,7 +26,7 @@ class AddOperation extends PatchOperation { /** * Constructs the add operation - * + * * @param path The path where the value will be added. (e.g., '/foo/bar/4') * @param value The value to add. */ @@ -47,7 +47,7 @@ class AddOperation extends PatchOperation { path.bindTo(type).addValue(targetObject, evaluateValueFromTarget(targetObject, type)); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.json.patch.PatchOperation#evaluateValueFromTarget(java.lang.Object, java.lang.Class) */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/CopyOperation.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/CopyOperation.java index af4c9b9b2..6e8bb90e1 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/CopyOperation.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/CopyOperation.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 lombok.RequiredArgsConstructor; * In light of this, it's probably a good idea to perform a "replace" after a "copy" to set the ID property (which may * or may not be "id"). *

- * + * * @author Craig Walls * @author Oliver Gierke */ @@ -45,7 +45,7 @@ class CopyOperation extends PatchOperation { /** * Constructs the copy operation - * + * * @param path The path to copy the source value to. (e.g., '/foo/bar/4') * @param from The source path from which a value will be copied. (e.g., '/foo/bar/5') */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/JsonLateObjectEvaluator.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/JsonLateObjectEvaluator.java index 29de507f6..d15fc645c 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/JsonLateObjectEvaluator.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/JsonLateObjectEvaluator.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. @@ -23,7 +23,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; /** * {@link LateObjectEvaluator} implementation that assumes values represented as JSON objects. - * + * * @author Craig Walls * @author Oliver Trosien * @author Oliver Gierke diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/JsonPatchPatchConverter.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/JsonPatchPatchConverter.java index 4d51eeb26..049fad4cd 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/JsonPatchPatchConverter.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/JsonPatchPatchConverter.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. @@ -28,7 +28,7 @@ import com.fasterxml.jackson.databind.node.ArrayNode; /** * Convert {@link JsonNode}s containing JSON Patch to/from {@link Patch} objects. - * + * * @author Craig Walls * @author Oliver Gierke * @author Mathias Düsterhöft @@ -41,7 +41,7 @@ public class JsonPatchPatchConverter implements PatchConverter { /** * Constructs a {@link Patch} object given a JsonNode. - * + * * @param jsonNode a JsonNode containing the JSON Patch * @return a {@link Patch} */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/LateObjectEvaluator.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/LateObjectEvaluator.java index 6efc251de..779d4bc9f 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/LateObjectEvaluator.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/LateObjectEvaluator.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 @@ package org.springframework.data.rest.webmvc.json.patch; * This interface allows for pluggable evaluation of values, allowing {@link Patch} to remain independent of any * specific patch representation. *

- * + * * @author Craig Walls */ interface LateObjectEvaluator { diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/MoveOperation.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/MoveOperation.java index 5ad076e15..88d2429a8 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/MoveOperation.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/MoveOperation.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 lombok.RequiredArgsConstructor; * on the values of each item in the list. When the same list resource is retrieved again later, the order will again be * decided by the query, effectively undoing any previous move operation. *

- * + * * @author Craig Walls * @author Oliver Gierke */ @@ -39,7 +39,7 @@ class MoveOperation extends PatchOperation { /** * Constructs the move operation. - * + * * @param path The path to move the source value to. (e.g., '/foo/bar/4') * @param from The source path from which a value will be moved. (e.g., '/foo/bar/5') */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/Patch.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/Patch.java index d0ad2c587..9d5d0d04e 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/Patch.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/Patch.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 java.util.List; * This class (and {@link PatchOperation} capture the definition of a patch, but are not coupled to any specific patch * representation. *

- * + * * @author Craig Walls * @author Oliver Gierke */ @@ -51,7 +51,7 @@ public class Patch { /** * Applies the Patch to a given Object graph. Makes a copy of the given object so that it will remain unchanged after * application of the patch and in case any errors occur while performing the patch. - * + * * @param in The object graph to apply the patch to. * @param type The object type. * @param the object type. @@ -70,7 +70,7 @@ public class Patch { /** * Applies the Patch to a given List of objects. Makes a copy of the given list so that it will remain unchanged after * application of the patch and in case any errors occur while performing the patch. - * + * * @param in The list to apply the patch to. * @param type The list's generic type. * @param the list's generic type. diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/PatchConverter.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/PatchConverter.java index 71994eae5..8ba6019b1 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/PatchConverter.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/PatchConverter.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. @@ -27,7 +27,7 @@ import com.fasterxml.jackson.databind.JsonNode; * For example, if the {@link Patch} is to be represented as JSON Patch, the representation type could be * {@link JsonNode} or some other JSON library's type that holds a JSON document. *

- * + * * @author Craig Walls * @author Oliver Gierke * @param A type holding a representation of the patch. For example, a JsonNode if working with JSON Patch. @@ -36,7 +36,7 @@ public interface PatchConverter { /** * Convert a patch document representation to a {@link Patch}. - * + * * @param patchRepresentation the representation of a patch. * @return the {@link Patch} object that the document represents. */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/PatchException.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/PatchException.java index 9f902afab..93c128c3c 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/PatchException.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/PatchException.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. @@ -17,7 +17,7 @@ package org.springframework.data.rest.webmvc.json.patch; /** * Exception thrown if an error occurs in the course of applying a Patch. - * + * * @author Craig Walls * @author Oliver Gierke */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/PatchOperation.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/PatchOperation.java index 8f26e085f..bea039bec 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/PatchOperation.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/PatchOperation.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. @@ -20,7 +20,7 @@ import lombok.RequiredArgsConstructor; /** * Abstract base class representing and providing support methods for patch operations. - * + * * @author Craig Walls * @author Mathias Düsterhöft * @author Oliver Gierke @@ -34,7 +34,7 @@ public abstract class PatchOperation { /** * Constructs the operation. - * + * * @param op the operation name. (e.g., 'move') * @param path the path to perform the operation on. (e.g., '/1/description') */ @@ -44,7 +44,7 @@ public abstract class PatchOperation { /** * Performs late-value evaluation on the operation value if the value is a {@link LateObjectEvaluator}. - * + * * @param targetObject the target object, used as assistance in determining the evaluated object's type. * @param entityType the entityType * @param the entity type @@ -61,7 +61,7 @@ public abstract class PatchOperation { /** * Perform the operation in the given target object. - * + * * @param target the target of the operation, must not be {@literal null}. * @param type must not be {@literal null}. */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/RemoveOperation.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/RemoveOperation.java index b48ce13f0..0081698ed 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/RemoveOperation.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/RemoveOperation.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. @@ -18,7 +18,7 @@ package org.springframework.data.rest.webmvc.json.patch; /** * Operation that removes the value at the given path. Will throw a {@link PatchException} if the given path isn't valid * or if the path is non-nullable. - * + * * @author Craig Walls * @author Oliver Gierke */ @@ -26,7 +26,7 @@ class RemoveOperation extends PatchOperation { /** * Constructs the remove operation - * + * * @param path The path of the value to be removed. (e.g., '/foo/bar/4') */ private RemoveOperation(SpelPath path) { diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/ReplaceOperation.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/ReplaceOperation.java index 3debd7f32..76b8d78ac 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/ReplaceOperation.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/ReplaceOperation.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. @@ -20,7 +20,7 @@ import lombok.RequiredArgsConstructor; /** * Operation that replaces the value at the given path with a new value. - * + * * @author Craig Walls * @author Oliver Gierke */ @@ -28,7 +28,7 @@ class ReplaceOperation extends PatchOperation { /** * Constructs the replace operation - * + * * @param path The path whose value is to be replaced. (e.g., '/foo/bar/4') * @param value The value that will replace the current path value. */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/SpelPath.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/SpelPath.java index acfa32781..e3be1c275 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/SpelPath.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/SpelPath.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. @@ -41,7 +41,7 @@ import org.springframework.util.ConcurrentReferenceHashMap; /** * Value object to represent a SpEL-backed patch path. - * + * * @author Oliver Gierke */ @RequiredArgsConstructor(access = AccessLevel.PRIVATE) @@ -64,7 +64,7 @@ class SpelPath { /** * Returns a {@link SpelPath} for the given source. - * + * * @param source must not be {@literal null}. * @return */ @@ -74,7 +74,7 @@ class SpelPath { /** * Returns a {@link TypedSpelPath} binding the expression to the given type. - * + * * @param type must not be {@literal null}. * @return */ @@ -87,7 +87,7 @@ class SpelPath { /** * Returns the leaf type of the underlying expression or the given type - * + * * @param type * @return */ @@ -100,7 +100,7 @@ class SpelPath { /** * Returns whether the current path represents an append path, i.e. is supposed to append to collection. - * + * * @return */ public boolean isAppend() { @@ -111,7 +111,7 @@ class SpelPath { return SpelPath.of(path.substring(0, path.lastIndexOf('/'))); } - /* + /* * (non-Javadoc) * @see java.lang.Object#toString() */ @@ -120,7 +120,7 @@ class SpelPath { return path; } - /* + /* * (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ @@ -140,7 +140,7 @@ class SpelPath { return this.path.equals(that.path); } - /* + /* * (non-Javadoc) * @see java.lang.Object#hashCode() */ @@ -229,7 +229,7 @@ class SpelPath { /** * Returns the {@link TypedSpelPath} for the given {@link SpelPath} and type. - * + * * @param path must not be {@literal null}. * @param type must not be {@literal null}. * @return @@ -244,7 +244,7 @@ class SpelPath { /** * Returns the value pointed to by the current path with the given target object. - * + * * @param target must not be {@literal null}. * @return can be {@literal null}. */ @@ -262,7 +262,7 @@ class SpelPath { /** * Sets the given value on the given target object. - * + * * @param target must not be {@literal null}. * @param value can be {@literal null}. */ @@ -275,7 +275,7 @@ class SpelPath { /** * Returns the type of the expression target based on the given root. - * + * * @param root must not be {@literal null}. * @return */ @@ -288,7 +288,7 @@ class SpelPath { /** * Copies the value pointed to by the given path within the given source object to the current expression target. - * + * * @param path the {@link SpelPath} to look the value up from, must not be {@literal null}. * @param source the source object to look the value up from, must not be {@literal null}. * @return @@ -305,7 +305,7 @@ class SpelPath { /** * Moves the value pointed to by the given path within the given source object to the current expression target and * removes the value from its original position. - * + * * @param path the {@link SpelPath} to look the value up from, must not be {@literal null}. * @param source the source object to look the value up from, must not be {@literal null}. * @return @@ -320,7 +320,7 @@ class SpelPath { /** * Removes the value pointed to by the current path within the given target. - * + * * @param target must not be {@literal null}. * @return the original value that was just removed. */ @@ -351,7 +351,7 @@ class SpelPath { /** * Adds a value to the operation's path. If the path references a list index, the value is added to the list at the * given index. If the path references an object property, the property is set to the value. - * + * * @param target The target object. * @param value The value to add. */ @@ -410,7 +410,7 @@ class SpelPath { /** * Verifies that the given path exists on the given type. Skips collection index parts and append characters. - * + * * @param path must not be {@literal null} or empty. * @param type must not be {@literal null}. * @return the {@link PropertyPath} if the path could be resolved or {@link Optional#empty()} in case an empty path diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/TestOperation.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/TestOperation.java index a16c137c1..27ea802c3 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/TestOperation.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/TestOperation.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. @@ -31,7 +31,7 @@ import org.springframework.util.ObjectUtils; * If the value given matches the value given at the path, the operation completes as a no-op. On the other hand, if the * values do not match or if there are any errors interpreting the path, a {@link PatchException} will be thrown. *

- * + * * @author Craig Walls * @author Oliver Gierke */ @@ -39,7 +39,7 @@ class TestOperation extends PatchOperation { /** * Constructs the test operation - * + * * @param path The path to test. (e.g., '/foo/bar/4') * @param value The value to test the path against. */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/mapping/Associations.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/mapping/Associations.java index 55359e0ee..9d59a7b51 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/mapping/Associations.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/mapping/Associations.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. @@ -82,7 +82,7 @@ public class Associations { /** * Returns the {@link ResourceMetadata} for the given type. - * + * * @param type must not be {@literal null}. * @return */ @@ -95,7 +95,7 @@ public class Associations { /** * Returns whether the type of the given {@link PersistentProperty} is configured as lookup type. - * + * * @param property must not be {@literal null}. * @return */ @@ -112,7 +112,7 @@ public class Associations { /** * Returns whether the given {@link Association} is linkable. - * + * * @param association must not be {@literal null}. * @return */ @@ -125,7 +125,7 @@ public class Associations { /** * Returns whether the given property is an association that is linkable. - * + * * @param property must not be {@literal null}. * @return */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/mapping/LinkCollectingAssociationHandler.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/mapping/LinkCollectingAssociationHandler.java index f2bcc4ad7..87c6096f7 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/mapping/LinkCollectingAssociationHandler.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/mapping/LinkCollectingAssociationHandler.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. @@ -30,7 +30,7 @@ import org.springframework.util.Assert; /** * {@link SimpleAssociationHandler} that will collect {@link Link}s for all linkable associations. - * + * * @author Oliver Gierke * @since 2.1 */ @@ -48,7 +48,7 @@ public class LinkCollectingAssociationHandler implements SimpleAssociationHandle /** * Creates a new {@link LinkCollectingAssociationHandler} for the given {@link PersistentEntities}, {@link Path} and * {@link Associations}. - * + * * @param entities must not be {@literal null}. * @param path must not be {@literal null}. * @param associations must not be {@literal null}. @@ -78,14 +78,14 @@ public class LinkCollectingAssociationHandler implements SimpleAssociationHandle /** * Returns the links collected after the {@link Association} has been traversed. - * + * * @return the links */ public List getLinks() { return links; } - /* + /* * (non-Javadoc) * @see org.springframework.data.mapping.SimpleAssociationHandler#doWithAssociation(org.springframework.data.mapping.Association) */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/mapping/LinkCollector.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/mapping/LinkCollector.java index e9ffc26f4..5fece6833 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/mapping/LinkCollector.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/mapping/LinkCollector.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/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/mapping/NestedLinkCollectingAssociationHandler.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/mapping/NestedLinkCollectingAssociationHandler.java index eabe6f2ae..646b98de7 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/mapping/NestedLinkCollectingAssociationHandler.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/mapping/NestedLinkCollectingAssociationHandler.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. @@ -48,7 +48,7 @@ public class NestedLinkCollectingAssociationHandler implements SimpleAssociation private final @Getter List links = new ArrayList(); - /* + /* * (non-Javadoc) * @see org.springframework.data.mapping.SimpleAssociationHandler#doWithAssociation(org.springframework.data.mapping.Association) */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/spi/BackendIdConverter.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/spi/BackendIdConverter.java index fe8dccfec..9d52fcc2e 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/spi/BackendIdConverter.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/spi/BackendIdConverter.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,14 +21,14 @@ import org.springframework.plugin.core.Plugin; /** * SPI to allow the customization of how entity ids are exposed in URIs generated. - * + * * @author Oliver Gierke */ public interface BackendIdConverter extends Plugin> { /** * Returns the id of the entity to be looked up eventually. - * + * * @param id the source id as it was parsed from the incoming request, will never be {@literal null}. * @param entityType the type of the object to be resolved, will never be {@literal null}. * @return must not be {@literal null}. @@ -37,7 +37,7 @@ public interface BackendIdConverter extends Plugin> { /** * Returns the id to be used in the URI generated to point to an entity of the given type with the given id. - * + * * @param id the entity's id, will never be {@literal null}. * @param entityType the type of the entity to expose. * @return @@ -46,14 +46,14 @@ public interface BackendIdConverter extends Plugin> { /** * The default {@link BackendIdConverter} that will simply use ids as they are. - * + * * @author Oliver Gierke */ public enum DefaultIdConverter implements BackendIdConverter { INSTANCE; - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.support.BackendIdConverter#fromRequestId(java.lang.String, java.lang.Class) */ @@ -62,7 +62,7 @@ public interface BackendIdConverter extends Plugin> { return id; } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.support.BackendIdConverter#toRequestId(java.lang.Object, java.lang.Class) */ @@ -71,7 +71,7 @@ public interface BackendIdConverter extends Plugin> { return id.toString(); } - /* + /* * (non-Javadoc) * @see org.springframework.plugin.core.Plugin#supports(java.lang.Object) */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/BackendId.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/BackendId.java index ee3139361..1bc11a10b 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/BackendId.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/BackendId.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 java.lang.annotation.Target; /** * Annotation to bind the backend id of an entity. - * + * * @author Oliver Gierke */ @Retention(RetentionPolicy.RUNTIME) diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/BackendIdHandlerMethodArgumentResolver.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/BackendIdHandlerMethodArgumentResolver.java index 457d2d08a..501020fd9 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/BackendIdHandlerMethodArgumentResolver.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/BackendIdHandlerMethodArgumentResolver.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. @@ -34,7 +34,7 @@ import org.springframework.web.method.support.ModelAndViewContainer; /** * {@link HandlerMethodArgumentResolver} to resolve entity ids for injection int handler method arguments annotated with * {@link BackendId}. - * + * * @author Oliver Gierke */ public class BackendIdHandlerMethodArgumentResolver implements HandlerMethodArgumentResolver { @@ -46,7 +46,7 @@ public class BackendIdHandlerMethodArgumentResolver implements HandlerMethodArgu /** * Creates a new {@link BackendIdHandlerMethodArgumentResolver} for the given {@link BackendIdConverter}s and * {@link ResourceMetadataHandlerMethodArgumentResolver}. - * + * * @param idConverters the {@link BackendIdConverter}s registered in the system, must not be {@literal null}.. * @param resourceMetadataResolver the resolver to obtain {@link ResourceMetadata} from, must not be {@literal null}. * @param baseUri must not be {@literal null}. @@ -63,7 +63,7 @@ public class BackendIdHandlerMethodArgumentResolver implements HandlerMethodArgu this.baseUri = baseUri; } - /* + /* * (non-Javadoc) * @see org.springframework.web.method.support.HandlerMethodArgumentResolver#supportsParameter(org.springframework.core.MethodParameter) */ @@ -72,7 +72,7 @@ public class BackendIdHandlerMethodArgumentResolver implements HandlerMethodArgu return parameter.hasParameterAnnotation(BackendId.class); } - /* + /* * (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) */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/DefaultExcerptProjector.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/DefaultExcerptProjector.java index ef92b2822..dda8e799b 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/DefaultExcerptProjector.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/DefaultExcerptProjector.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 org.springframework.util.Assert; /** * {@link DefaultedPageable} implementation of {@link ExcerptProjector} that uses the given {@link ProjectionFactory} * and considers the given {@link ResourceMappings}. - * + * * @author Oliver Gierke * @since 2.5 */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/DefaultedPageable.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/DefaultedPageable.java index de4558e29..ee27c4d75 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/DefaultedPageable.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/DefaultedPageable.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. @@ -19,7 +19,7 @@ import org.springframework.data.domain.Pageable; /** * Value object to capture a {@link Pageable} as well it is the default one configured. - * + * * @author Oliver Gierke */ public class DefaultedPageable { @@ -29,7 +29,7 @@ public class DefaultedPageable { /** * Creates a new {@link DefaultedPageable} with the given {@link Pageable} and default flag. - * + * * @param pageable can be {@literal null}. * @param isDefault */ @@ -41,7 +41,7 @@ public class DefaultedPageable { /** * Returns the delegate {@link Pageable}. - * + * * @return can be {@literal null}. */ public Pageable getPageable() { @@ -50,7 +50,7 @@ public class DefaultedPageable { /** * Returns whether the contained {@link Pageable} is the default one configured. - * + * * @return the isDefault */ public boolean isDefault() { diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/DefaultedPageableHandlerMethodArgumentResolver.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/DefaultedPageableHandlerMethodArgumentResolver.java index a595bc644..c73ca3e28 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/DefaultedPageableHandlerMethodArgumentResolver.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/DefaultedPageableHandlerMethodArgumentResolver.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.web.method.support.ModelAndViewContainer; * {@link HandlerMethodArgumentResolver} to resolve {@link DefaultedPageable} if requested. Allows to find out whether * the resolved {@link Pageable} is logically identical to the fallback on configured on the delegate * {@link PageableHandlerMethodArgumentResolver}. - * + * * @author Oliver Gierke */ public class DefaultedPageableHandlerMethodArgumentResolver implements HandlerMethodArgumentResolver { @@ -38,7 +38,7 @@ public class DefaultedPageableHandlerMethodArgumentResolver implements HandlerMe /** * Creates a new {@link DefaultedPageableHandlerMethodArgumentResolver} delegating to the given * {@link PageableHandlerMethodArgumentResolver}. - * + * * @param resolver must not be {@literal null}. */ public DefaultedPageableHandlerMethodArgumentResolver(PageableHandlerMethodArgumentResolver resolver) { @@ -47,7 +47,7 @@ public class DefaultedPageableHandlerMethodArgumentResolver implements HandlerMe this.resolver = resolver; } - /* + /* * (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) */ @@ -59,7 +59,7 @@ public class DefaultedPageableHandlerMethodArgumentResolver implements HandlerMe return new DefaultedPageable(pageable, resolver.isFallbackPageable(pageable)); } - /* + /* * (non-Javadoc) * @see org.springframework.web.method.support.HandlerMethodArgumentResolver#supportsParameter(org.springframework.core.MethodParameter) */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/DelegatingHandlerMapping.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/DelegatingHandlerMapping.java index 6d34a391d..cea73c78f 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/DelegatingHandlerMapping.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/DelegatingHandlerMapping.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. @@ -32,7 +32,7 @@ import org.springframework.web.servlet.HandlerMapping; /** * A {@link HandlerMapping} that considers a {@link List} of delegates. It will keep on traversing the delegates in case * an {@link HttpMediaTypeNotAcceptableException} is thrown while trying to lookup the handler on a particular delegate. - * + * * @author Oliver Gierke * @soundtrack Benny Greb - Stabila (Moving Parts) */ @@ -42,7 +42,7 @@ public class DelegatingHandlerMapping implements HandlerMapping, Ordered { /** * Creates a new {@link DelegatingHandlerMapping} for the given delegates. - * + * * @param delegates must not be {@literal null}. */ public DelegatingHandlerMapping(List delegates) { @@ -52,7 +52,7 @@ public class DelegatingHandlerMapping implements HandlerMapping, Ordered { this.delegates = delegates; } - /* + /* * (non-Javadoc) * @see org.springframework.core.Ordered#getOrder() */ @@ -61,7 +61,7 @@ public class DelegatingHandlerMapping implements HandlerMapping, Ordered { return Ordered.LOWEST_PRECEDENCE - 100; } - /* + /* * (non-Javadoc) * @see org.springframework.web.servlet.HandlerMapping#getHandler(javax.servlet.http.HttpServletRequest) */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/DomainClassResolver.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/DomainClassResolver.java index c8c1e3204..2aef9a4dd 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/DomainClassResolver.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/DomainClassResolver.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/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/ETag.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/ETag.java index 5b5929bc9..16bee9aca 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/ETag.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/ETag.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. @@ -30,7 +30,7 @@ import org.springframework.util.Assert; /** * A value object to represent ETags. - * + * * @author Oliver Gierke */ @EqualsAndHashCode @@ -42,7 +42,7 @@ public final class ETag { /** * Creates a new {@link ETag} from the given value. - * + * * @param value can be {@literal null}. */ private ETag(String value) { @@ -52,7 +52,7 @@ public final class ETag { /** * Creates a new {@link ETag} for the given {@link String} value. Falls back to {@link #NO_ETAG} in case * {@literal null} is provided. - * + * * @param value the source ETag value, must not be {@literal null}. * @return */ @@ -66,7 +66,7 @@ public final class ETag { /** * Creates a new {@link ETag} for the given {@link PersistentEntityResource}. - * + * * @param resource must not be {@literal null}. * @return */ @@ -79,7 +79,7 @@ public final class ETag { /** * Creates a new {@link ETag} from the given {@link PersistentEntity} and target bean. - * + * * @param entity must not be {@literal null}. * @param bean must not be {@literal null}. * @return @@ -91,7 +91,7 @@ public final class ETag { /** * Verifies the ETag to be created for the given target bean with the current one and raises a * {@link ETagDoesntMatchException} in case they don't match. - * + * * @param entity must not be {@literal null}. * @param target can be {@literal null}. * @throws ETagDoesntMatchException in case the calculated {@link ETag} for the given bean does not match the current @@ -111,7 +111,7 @@ public final class ETag { /** * Returns whether the {@link ETag} matches the given {@link PersistentEntity} and target. A more dissenting way of * checking matches as it does not match if the ETag is {@link #NO_ETAG}. - * + * * @param entity must not be {@literal null}. * @param target can be {@literal null}. * @return @@ -127,7 +127,7 @@ public final class ETag { /** * Adds the current {@link ETag} to the given headers. - * + * * @param headers must not be {@literal null}. * @return the {@link HttpHeaders} with the ETag header been set if the current {@link ETag} instance is not * {@link #NO_ETAG}. @@ -145,7 +145,7 @@ public final class ETag { return headers; } - /* + /* * (non-Javadoc) * @see java.lang.Object#toString() */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/ETagArgumentResolver.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/ETagArgumentResolver.java index 9ba48eac6..bd343a54f 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/ETagArgumentResolver.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/ETagArgumentResolver.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,13 +28,13 @@ import org.springframework.web.method.support.ModelAndViewContainer; /** * {@link HandlerMethodArgumentResolver} to resolve If-Match headers for optimistic locking handling {@link IfMatch}. - * + * * @author Pablo Lozano * @author Oliver Gierke */ public class ETagArgumentResolver implements HandlerMethodArgumentResolver { - /* + /* * (non-Javadoc) * @see org.springframework.web.method.support.HandlerMethodArgumentResolver#supportsParameter(org.springframework.core.MethodParameter) */ @@ -43,7 +43,7 @@ public class ETagArgumentResolver implements HandlerMethodArgumentResolver { return parameter.getParameterType().equals(ETag.class); } - /* + /* * (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) */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/ETagDoesntMatchException.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/ETagDoesntMatchException.java index 70471ebbb..999baecfe 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/ETagDoesntMatchException.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/ETagDoesntMatchException.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. @@ -19,7 +19,7 @@ import org.springframework.util.Assert; /** * An exception being thrown in case the {@link ETag} calculated for a particular object does not match an expected one. - * + * * @author Oliver Gierke * @see ETag#verify(org.springframework.data.mapping.PersistentEntity, Object) */ @@ -33,7 +33,7 @@ public class ETagDoesntMatchException extends RuntimeException { /** * Creates a new {@link ETagDoesntMatchException} for the given bean as well as the {@link ETag} it was expected to * match. - * + * * @param bean must not be {@literal null}. * @param expected must not be {@literal null}. */ @@ -48,7 +48,7 @@ public class ETagDoesntMatchException extends RuntimeException { /** * Returns the bean not matching the {@link ETag}. - * + * * @return the bean */ public Object getBean() { @@ -57,7 +57,7 @@ public class ETagDoesntMatchException extends RuntimeException { /** * Returns the {@link ETag} the bean was expected to match. - * + * * @return the expected */ public ETag getExpectedETag() { diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/ExcerptProjector.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/ExcerptProjector.java index 54753025a..675f2eb4a 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/ExcerptProjector.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/ExcerptProjector.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. @@ -17,7 +17,7 @@ package org.springframework.data.rest.webmvc.support; /** * Interface for a component that can provide excerpt projections. - * + * * @author Oliver Gierke * @since 2.5 */ @@ -27,7 +27,7 @@ public interface ExcerptProjector { * Creates a excerpt projection for the given source. If no excerpt projection is available, the call will fall back * to the behavior of {@link #project(Object)}. If you completely wish to skip handling the object, check for the * presence of an excerpt projection using {@link #hasExcerptProjection(Class)}. - * + * * @param source must not be {@literal null}. * @return */ @@ -35,7 +35,7 @@ public interface ExcerptProjector { /** * Returns whether an excerpt projection has been registered for the given type. - * + * * @param type must not be {@literal null}. * @return */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/HttpMethodHandlerMethodArgumentResolver.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/HttpMethodHandlerMethodArgumentResolver.java index 3cfca17e9..a63ce0bf7 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/HttpMethodHandlerMethodArgumentResolver.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/HttpMethodHandlerMethodArgumentResolver.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,14 +27,14 @@ import org.springframework.web.method.support.ModelAndViewContainer; /** * {@link HandlerMethodArgumentResolver} to provide {@link HttpMethod} instances for innjection into MVC controller * methods. - * + * * @author Oliver Gierke */ public enum HttpMethodHandlerMethodArgumentResolver implements HandlerMethodArgumentResolver { INSTANCE; - /* + /* * (non-Javadoc) * @see org.springframework.web.method.support.HandlerMethodArgumentResolver#supportsParameter(org.springframework.core.MethodParameter) */ @@ -43,7 +43,7 @@ public enum HttpMethodHandlerMethodArgumentResolver implements HandlerMethodArgu return HttpMethod.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) */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/PagingAndSortingTemplateVariables.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/PagingAndSortingTemplateVariables.java index 22f4f402e..d54530a35 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/PagingAndSortingTemplateVariables.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/PagingAndSortingTemplateVariables.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.web.util.UriComponents; /** * Interface to abstract the access of {@link TemplateVariables} for pagination and sorting. - * + * * @author Oliver Gierke * @since 2.3 */ @@ -30,7 +30,7 @@ public interface PagingAndSortingTemplateVariables extends UriComponentsContribu /** * Returns the {@link TemplateVariables} for pagination. - * + * * @param parameter can be {@literal null}. * @param components must not be {@literal null}. * @return @@ -39,7 +39,7 @@ public interface PagingAndSortingTemplateVariables extends UriComponentsContribu /** * Returns the {@link TemplateVariables} for sorting. - * + * * @param parameter can be {@literal null}. * @param components must not be {@literal null}. * @return diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/PersistentEntityProjector.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/PersistentEntityProjector.java index ea886dcaa..e1ccd18dd 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/PersistentEntityProjector.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/PersistentEntityProjector.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. @@ -24,7 +24,7 @@ import org.springframework.util.StringUtils; /** * {@link Projector} looking up a projection by name for the given source type. - * + * * @author Oliver Gierke */ public class PersistentEntityProjector extends DefaultExcerptProjector implements Projector { @@ -36,7 +36,7 @@ public class PersistentEntityProjector extends DefaultExcerptProjector implement /** * Creates a new {@link PersistentEntityProjector} using the given {@link ProjectionDefinitions}, * {@link ProjectionFactory} and projection name. - * + * * @param projectionDefinitions must not be {@literal null}. * @param factory must not be {@literal null}. * @param projection can be empty. @@ -69,7 +69,7 @@ public class PersistentEntityProjector extends DefaultExcerptProjector implement }); } - /* + /* * (non-Javadoc) * @see org.springframework.data.rest.webmvc.support.DefaultExcerptProjector#projectExcerpt(java.lang.Object) */ @@ -88,7 +88,7 @@ public class PersistentEntityProjector extends DefaultExcerptProjector implement /** * Creates the projection for the given source instance falling back to the given {@link Converter} if no explicit * projection is selected. - * + * * @param source must not be {@literal null}. * @param converter must not be {@literal null}. * @return diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/Projector.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/Projector.java index 550fd8b2c..e10bd51d3 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/Projector.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/Projector.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 @@ package org.springframework.data.rest.webmvc.support; /** * Interface for a component being able to create projections for objects. - * + * * @author Oliver Gierke */ public interface Projector extends ExcerptProjector { @@ -25,7 +25,7 @@ public interface Projector extends ExcerptProjector { /** * Returns the projection object for the given source. This may result in the same object being returned or a * completely different acting as projection for the source. - * + * * @param source must not be {@literal null}. * @return */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/RepositoryConstraintViolationExceptionMessage.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/RepositoryConstraintViolationExceptionMessage.java index 8f10efb3c..bc252982f 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/RepositoryConstraintViolationExceptionMessage.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/RepositoryConstraintViolationExceptionMessage.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 RepositoryConstraintViolationExceptionMessage { /** * Creates a new {@link RepositoryConstraintViolationExceptionMessage} for the given * {@link RepositoryConstraintViolationException} and {@link MessageSourceAccessor}. - * + * * @param exception must not be {@literal null}. * @param accessor must not be {@literal null}. */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/RepositoryEntityLinks.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/RepositoryEntityLinks.java index a6b591fdb..144bd538d 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/RepositoryEntityLinks.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/RepositoryEntityLinks.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. @@ -55,7 +55,7 @@ import org.springframework.web.util.UriComponentsBuilder; /** * {@link EntityLinks} implementation that is able to create {@link Link} for domain classes managed by Spring Data * REST. - * + * * @author Jon Brisbin * @author Oliver Gierke */ @@ -99,7 +99,7 @@ public class RepositoryEntityLinks extends AbstractEntityLinks { /** * Returns the link to to the paged colelction resource for the given type, pre-expanding the - * + * * @param type must not be {@literal null}. * @param pageable the pageable to can be {@literal null}. * @return @@ -146,7 +146,7 @@ public class RepositoryEntityLinks extends AbstractEntityLinks { /** * Returns all links to search resource for the given type. - * + * * @param type must not be {@literal null}. * @return * @since 2.3 @@ -158,7 +158,7 @@ public class RepositoryEntityLinks extends AbstractEntityLinks { /** * Returns all link to search resources for the given type, pre-expanded with the given {@link Pageable} if * applicable. - * + * * @param type must not be {@literal null}. * @param pageable can be {@literal null}. * @return @@ -170,7 +170,7 @@ public class RepositoryEntityLinks extends AbstractEntityLinks { /** * Returns all link to search resources for the given type, pre-expanded with the given {@link Sort} if applicable. - * + * * @param type must not be {@literal null}. * @param sort can be {@literal null}. * @return @@ -182,7 +182,7 @@ public class RepositoryEntityLinks extends AbstractEntityLinks { /** * Creates the link to the search resource with the given rel for a given type. - * + * * @param domainType must not be {@literal null}. * @param rel must not be {@literal null} or empty. * @return @@ -195,7 +195,7 @@ public class RepositoryEntityLinks extends AbstractEntityLinks { /** * Creates the link to the search resource with the given rel for a given type. Uses the given {@link Pageable} to * pre-expand potentially available template variables. - * + * * @param domainType must not be {@literal null}. * @param rel must not be {@literal null} or empty. * @param pageable can be {@literal null}. @@ -209,7 +209,7 @@ public class RepositoryEntityLinks extends AbstractEntityLinks { /** * Creates the link to the search resource with the given rel for a given type. Uses the given {@link Sort} to * pre-expand potentially available template variables. - * + * * @param domainType must not be {@literal null}. * @param rel must not be {@literal null} or empty. * @param sort can be {@literal null}. @@ -223,7 +223,7 @@ public class RepositoryEntityLinks extends AbstractEntityLinks { /** * Returns all links to search resources of the given type. Pre-expands the template with the given {@link Pageable} * and {@link Sort} if applicable. - * + * * @param type must not be {@literal null}. * @param pageable can be {@literal null}. * @param sort can be {@literal null}. @@ -245,7 +245,7 @@ public class RepositoryEntityLinks extends AbstractEntityLinks { /** * Returns the link pointing to the search resource with the given rel of the given type and pre-expands the * calculated URi tempalte with the given {@link Pageable} and {@link Sort}. - * + * * @param type must not be {@literal null}. * @param rel must not be {@literal null} or empty. * @param pageable can be {@literal null}. @@ -280,7 +280,7 @@ public class RepositoryEntityLinks extends AbstractEntityLinks { /** * Returns the {@link TemplateVariables} to be added for pagination for the given {@link UriComponentsBuilder} in case * the given {@link ResourceMapping} is a paging resource. - * + * * @param components must not be {@literal null}. * @param mapping must not be {@literal null}. * @param pageable can be {@literal null}. @@ -298,7 +298,7 @@ public class RepositoryEntityLinks extends AbstractEntityLinks { /** * Returns all {@link TemplateVariables} that need to be added based on the given {@link UriComponents}, * {@link MethodResourceMapping}, {@link Pageable} and {@link Sort}. - * + * * @param components must not be {@literal null}. * @param mapping must not be {@literal null}. * @param pageable can be {@literal null} @@ -318,7 +318,7 @@ public class RepositoryEntityLinks extends AbstractEntityLinks { /** * Returns the {@link TemplateVariables} for the projection parameter if projections are vonfigured for the given * type. - * + * * @param type must not be {@literal null}. * @return will never be {@literal null}. */ @@ -335,7 +335,7 @@ public class RepositoryEntityLinks extends AbstractEntityLinks { /** * Returns the {@link TemplateVariables} for all parameters of the given {@link MethodResourceMapping}. - * + * * @param mapping must not be {@literal null}. * @return will never be {@literal null}. */ diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/RepositoryLinkBuilder.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/RepositoryLinkBuilder.java index ba34e1329..30fcdcb09 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/RepositoryLinkBuilder.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/RepositoryLinkBuilder.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.web.util.UriComponentsBuilder; /** * {@link LinkBuilder} to be able to create links pointing to repositories. - * + * * @author Oliver Gierke */ public class RepositoryLinkBuilder extends LinkBuilderSupport { @@ -37,7 +37,7 @@ public class RepositoryLinkBuilder extends LinkBuilderSupport { private static final Answer DEFAULT = Mockito.RETURNS_DEFAULTS; - /* + /* * (non-Javadoc) * @see org.mockito.stubbing.Answer#answer(org.mockito.invocation.InvocationOnMock) */ diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/config/ArgumentResolverPagingAndSortingTemplateVariablesUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/config/ArgumentResolverPagingAndSortingTemplateVariablesUnitTests.java index c5764d543..00fc2724a 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/config/ArgumentResolverPagingAndSortingTemplateVariablesUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/config/ArgumentResolverPagingAndSortingTemplateVariablesUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 original author or authors. + * Copyright 2015-2018 original author 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.util.UriComponentsBuilder; /** * Unit tests for {@link ArgumentResolverPagingAndSortingTemplateVariables}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/config/PersistentEntityResourceHandlerMethodArgumentResolverUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/config/PersistentEntityResourceHandlerMethodArgumentResolverUnitTests.java index 35dca6f31..f2d8a570d 100644 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/config/PersistentEntityResourceHandlerMethodArgumentResolverUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/config/PersistentEntityResourceHandlerMethodArgumentResolverUnitTests.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 @@ import org.springframework.web.method.support.ModelAndViewContainer; /** * Unit tests for {@link PersistentEntityResourceHandlerMethodArgumentResolver}. - * + * * @author Oliver Gierke */ public class PersistentEntityResourceHandlerMethodArgumentResolverUnitTests { diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvConfigurationIntegrationTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvConfigurationIntegrationTests.java index f3d2c95ba..d850e5fdc 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvConfigurationIntegrationTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvConfigurationIntegrationTests.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. @@ -62,7 +62,7 @@ import com.jayway.jsonpath.JsonPath; /** * Integration tests for basic application bootstrapping (general configuration related checks). - * + * * @author Oliver Gierke */ public class RepositoryRestMvConfigurationIntegrationTests { diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/DomainObjectReaderUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/DomainObjectReaderUnitTests.java index 623ed4c94..f1b7b2c8a 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/DomainObjectReaderUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/DomainObjectReaderUnitTests.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. @@ -79,7 +79,7 @@ import com.google.common.base.Charsets; /** * Unit tests for {@link DomainObjectReader}. - * + * * @author Oliver Gierke * @author Craig Andrews * @author Mathias Düsterhöft @@ -751,7 +751,7 @@ public class DomainObjectReaderUnitTests { private final Map values; - /* + /* * (non-Javadoc) * @see com.fasterxml.jackson.databind.JsonDeserializer#deserialize(com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.DeserializationContext) */ diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/EnumTranslatorUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/EnumTranslatorUnitTests.java index 1d0253361..1709c1020 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/EnumTranslatorUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/EnumTranslatorUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 original author or authors. + * Copyright 2015-2018 original author 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.context.support.StaticMessageSource; /** * Unit tests for {@link EnumTranslator}. - * + * * @author Oliver Gierke */ public class EnumTranslatorUnitTests { diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/JacksonMetadataUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/JacksonMetadataUnitTests.java index f38b4ba70..9e31f7a94 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/JacksonMetadataUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/JacksonMetadataUnitTests.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.fasterxml.jackson.databind.ser.std.StdSerializer; /** * Unit tests for {@link JacksonMetadata}. - * + * * @author Oliver Gierke * @soundtrack Four Sided Cube - Bad Day's Remembrance (Bunch of Sides) */ diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/JacksonSerializersUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/JacksonSerializersUnitTests.java index 12b1935dd..1f4cdb503 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/JacksonSerializersUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/JacksonSerializersUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 original author or authors. + * Copyright 2016-2018 original author 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 com.fasterxml.jackson.databind.ObjectMapper; /** * Unit tests for {@link JacksonSerializers}. - * + * * @author Oliver Gierke * @soundtrack James Bay - Move Together (Chaos And The Calm) */ diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/JsonSchemaUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/JsonSchemaUnitTests.java index 8493a5d7a..d651c71b8 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/JsonSchemaUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/JsonSchemaUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 original author or authors. + * Copyright 2015-2018 original author 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.TypeInformation; /** * Unit tests for {@link JsonSchema}. - * + * * @author Oliver Gierke */ public class JsonSchemaUnitTests { diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/MappedPropertiesUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/MappedPropertiesUnitTests.java index 3fdce5433..8c9445857 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/MappedPropertiesUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/MappedPropertiesUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 original author or authors. + * Copyright 2016-2018 original author 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.fasterxml.jackson.databind.ObjectMapper; /** * Unit tests for {@link MappedProperties}. - * + * * @author Oliver Gierke */ public class MappedPropertiesUnitTests { diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/MappingAwarePageableArgumentResolverUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/MappingAwarePageableArgumentResolverUnitTests.java index d9c370d41..0426c5c57 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/MappingAwarePageableArgumentResolverUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/MappingAwarePageableArgumentResolverUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 original author or authors. + * Copyright 2016-2018 original author 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.method.support.ModelAndViewContainer; /** * Unit tests for {@link MappingAwarePageableArgumentResolver}. - * + * * @author Mark Paluch */ @RunWith(MockitoJUnitRunner.class) diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/PersistentEntityJackson2ModuleUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/PersistentEntityJackson2ModuleUnitTests.java index 6e4c15e03..c25182ded 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/PersistentEntityJackson2ModuleUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/PersistentEntityJackson2ModuleUnitTests.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. @@ -57,7 +57,7 @@ import com.jayway.jsonpath.JsonPath; /** * Unit tests for {@link PersistentEntityJackson2Module}. - * + * * @author Oliver Gierke * @author Valentin Rentschler */ diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/ProjectionJacksonIntegrationTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/ProjectionJacksonIntegrationTests.java index 4150aed52..92db37e53 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/ProjectionJacksonIntegrationTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/ProjectionJacksonIntegrationTests.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 com.jayway.jsonpath.JsonPath; /** * Integration tests for Jackson marshalling of projected objects. - * + * * @author Oliver Gierke */ public class ProjectionJacksonIntegrationTests { diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/SortTranslatorUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/SortTranslatorUnitTests.java index 6cd795477..f698f9034 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/SortTranslatorUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/SortTranslatorUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 original author or authors. + * Copyright 2016-2018 original author 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/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/UriStringDeserializerUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/UriStringDeserializerUnitTests.java index 604d20f20..4b9303c56 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/UriStringDeserializerUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/UriStringDeserializerUnitTests.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. @@ -42,7 +42,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; /** * Unit tests for {@link UriStringDeserializer}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/WrappedPropertiesUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/WrappedPropertiesUnitTests.java index 3d05208a6..ecbc9d93d 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/WrappedPropertiesUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/WrappedPropertiesUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 original author or authors. + * Copyright 2016-2018 original author 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.fasterxml.jackson.databind.ObjectMapper; /** * Unit tests for {@link WrappedProperties}. - * + * * @author Mark Paluch */ public class WrappedPropertiesUnitTests { diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/AddOperationUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/AddOperationUnitTests.java index 66d9f7423..8474f8f3f 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/AddOperationUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/AddOperationUnitTests.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/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/CopyOperationUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/CopyOperationUnitTests.java index b72966ada..571b9a0da 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/CopyOperationUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/CopyOperationUnitTests.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/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/JsonPatchUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/JsonPatchUnitTests.java index 21425e057..8e130e430 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/JsonPatchUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/JsonPatchUnitTests.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/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/MoveOperationUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/MoveOperationUnitTests.java index e18991558..90e22f3bf 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/MoveOperationUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/MoveOperationUnitTests.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/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/PatchOperationUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/PatchOperationUnitTests.java index f968dc3f4..fe890879f 100644 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/PatchOperationUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/PatchOperationUnitTests.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.junit.runners.Parameterized.Parameters; /** * General unit tests for {@link PatchOperation} implementations. - * + * * @author Oliver Gierke */ @RunWith(Parameterized.class) diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/RemoveOperationTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/RemoveOperationTests.java index 82e0137a5..acfa235b0 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/RemoveOperationTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/RemoveOperationTests.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. diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/ReplaceOperationTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/ReplaceOperationTests.java index adce38e57..a262c755a 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/ReplaceOperationTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/ReplaceOperationTests.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/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/SpelPathUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/SpelPathUnitTests.java index 3bcc6795f..b5dc03a02 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/SpelPathUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/SpelPathUnitTests.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/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/TestOperationUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/TestOperationUnitTests.java index b84c51a99..16f92cac0 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/TestOperationUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/TestOperationUnitTests.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. diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/Todo.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/Todo.java index 2405f144f..e09b2465f 100644 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/Todo.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/Todo.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. diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/TodoList.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/TodoList.java index 9c7e84d59..0e90a54a8 100644 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/TodoList.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/TodoList.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/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/TodoType.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/TodoType.java index 2522293ac..f1047f612 100644 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/TodoType.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/TodoType.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/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/mapping/AssociationsUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/mapping/AssociationsUnitTests.java index 79c5891d4..144fc0f76 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/mapping/AssociationsUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/mapping/AssociationsUnitTests.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/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/DelegatingHandlerMappingUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/DelegatingHandlerMappingUnitTests.java index 9292caabb..e47b69d84 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/DelegatingHandlerMappingUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/DelegatingHandlerMappingUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 original author or authors. + * Copyright 2015-2018 original author 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.web.servlet.HandlerMapping; /** * Unit tests for {@link DelegatingHandlerMapping}. - * + * * @author Oliver Gierke * @soundtrack Benny Greb - Stabila (Moving Parts) */ diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/ETagDoesntMatchExceptionUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/ETagDoesntMatchExceptionUnitTests.java index d71db5287..72c0e2e4a 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/ETagDoesntMatchExceptionUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/ETagDoesntMatchExceptionUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2017 original author or authors. + * Copyright 2014-2018 original author 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/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/ETagUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/ETagUnitTests.java index f051837e8..dc0797484 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/ETagUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/ETagUnitTests.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.http.HttpHeaders; /** * Tests for the ETagValidator used for optimistic locking - * + * * @author Pablo Lozano * @author Oliver Gierke */ diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/PersistentEntityProjectorUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/PersistentEntityProjectorUnitTests.java index ee446f966..99028a6d6 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/PersistentEntityProjectorUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/PersistentEntityProjectorUnitTests.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. @@ -31,7 +31,7 @@ import org.springframework.data.rest.core.mapping.ResourceMetadata; /** * Unit tests for {@link PersistentEntityProjector}. - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/RepositoryConstraintViolationExceptionMessageUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/RepositoryConstraintViolationExceptionMessageUnitTests.java index 878630110..fa298fe59 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/RepositoryConstraintViolationExceptionMessageUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/RepositoryConstraintViolationExceptionMessageUnitTests.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. @@ -34,7 +34,7 @@ import org.springframework.validation.MapBindingResult; /** * Unit tests for {@link RepositoryConstraintViolationExceptionMessage} - * + * * @author Oliver Gierke */ public class RepositoryConstraintViolationExceptionMessageUnitTests { diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/util/UriUtilsUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/util/UriUtilsUnitTests.java index 3a4fe8b37..bcc58e3e0 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/util/UriUtilsUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/util/UriUtilsUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2017 original author or authors. + * Copyright 2016-2018 original author 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.web.bind.annotation.RequestMapping; /** * Unit tests for {@link UriUtils}. - * + * * @author Mark Paluch */ public class UriUtilsUnitTests {