DATACMNS-1240 - Update copyright years to 2018.

Also, remove some trailing whitespaces and align outdated license header format.
This commit is contained in:
Mark Paluch
2018-01-01 08:59:42 +01:00
parent eb2163a29e
commit 51e7e1b7f5
632 changed files with 2269 additions and 2278 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016-2017 the original author or authors.
* Copyright 2016-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -105,7 +105,7 @@ public class Alias {
/**
* Returns whether the the current alias is present and has the same value as the given {@link Alias}.
*
*
* @param other the other {@link Alias}
* @return {@literal true} if there's an alias value present and its equal to the one in the given {@link Alias}.
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2017 the original author or authors.
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2017 the original author or authors.
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -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.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2017 the original author or authors.
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2017 the original author or authors.
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2017 the original author or authors.
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -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.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2017 the original author or authors.
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,11 +1,11 @@
/*
* Copyright (c) 2011 by the original author(s).
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -18,7 +18,7 @@ package org.springframework.data.mapping;
/**
* Callback interface to do something with all plain {@link PersistentProperty} instances <em>except</em> associations
* and transient properties.
*
*
* @author Jon Brisbin <jbrisbin@vmware.com>
*/
public interface PropertyHandler<P extends PersistentProperty<P>> {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2017 the original author or authors.
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -134,7 +134,7 @@ public class PropertyPath implements Streamable<PropertyPath> {
/**
* Returns the type of the leaf property of the current {@link PropertyPath}.
*
*
* @return will never be {@literal null}.
*/
public Class<?> getLeafType() {
@@ -245,7 +245,7 @@ public class PropertyPath implements Streamable<PropertyPath> {
/**
* Returns the next {@link PropertyPath}.
*
*
* @return
* @throws IllegalStateException it there's no next one.
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2016 the original author or authors.
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -29,7 +29,7 @@ import org.springframework.util.StringUtils;
/**
* Exception being thrown when creating {@link PropertyPath} instances.
*
*
* @author Oliver Gierke
*/
public class PropertyReferenceException extends RuntimeException {
@@ -45,7 +45,7 @@ public class PropertyReferenceException extends RuntimeException {
/**
* Creates a new {@link PropertyReferenceException}.
*
*
* @param propertyName the name of the property not found on the given type, must not be {@literal null} or empty.
* @param type the type the property could not be found on, must not be {@literal null}.
* @param alreadyResolvedPah the previously calculated {@link PropertyPath}s, must not be {@literal null}.
@@ -65,7 +65,7 @@ public class PropertyReferenceException extends RuntimeException {
/**
* Returns the name of the property not found.
*
*
* @return will not be {@literal null} or empty.
*/
public String getPropertyName() {
@@ -74,7 +74,7 @@ public class PropertyReferenceException extends RuntimeException {
/**
* Returns the type the property could not be found on.
*
*
* @return will never be {@literal null}.
*/
public TypeInformation<?> getType() {
@@ -83,14 +83,14 @@ public class PropertyReferenceException extends RuntimeException {
/**
* Returns the properties that the invalid property might have been meant to be referred to.
*
*
* @return will never be {@literal null}.
*/
Collection<String> getPropertyMatches() {
return propertyMatches;
}
/*
/*
* (non-Javadoc)
* @see java.lang.Throwable#getMessage()
*/
@@ -116,7 +116,7 @@ public class PropertyReferenceException extends RuntimeException {
/**
* Returns the {@link PropertyPath} which could be resolved so far.
*
*
* @return
*/
@Nullable
@@ -127,7 +127,7 @@ public class PropertyReferenceException extends RuntimeException {
/**
* Returns whether the given {@link PropertyReferenceException} has a deeper resolution depth (i.e. a longer path of
* already resolved properties) than the current exception.
*
*
* @param exception must not be {@literal null}.
* @return
*/
@@ -137,7 +137,7 @@ public class PropertyReferenceException extends RuntimeException {
/**
* Detects all potential matches for the given property name and type.
*
*
* @param propertyName must not be {@literal null} or empty.
* @param type must not be {@literal null}.
* @return

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013 the original author or authors.
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@ package org.springframework.data.mapping;
/**
* Association handler to work with the untyped {@link PersistentProperty} based {@link Association}.
*
*
* @author Oliver Gierke
* @see PropertyHandler
*/
@@ -25,7 +25,7 @@ public interface SimpleAssociationHandler {
/**
* Handle the given {@link Association}.
*
*
* @param association will never be {@literal null}.
*/
void doWithAssociation(Association<? extends PersistentProperty<?>> association);

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013 the original author or authors.
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,14 +17,14 @@ package org.springframework.data.mapping;
/**
* A property handler to work with untyped {@link PersistentProperty} instances.
*
*
* @author Oliver Gierke
*/
public interface SimplePropertyHandler {
/**
* Handle the given {@link PersistentProperty}.
*
*
* @param property will never be {@literal null}.
*/
void doWithPersistentProperty(PersistentProperty<?> property);

View File

@@ -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.

View File

@@ -1,11 +1,11 @@
/*
* Copyright 2011-2017 by the original author(s).
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2017 the original author or authors.
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,7 +28,7 @@ import org.springframework.util.StringUtils;
/**
* Abstraction of a path of {@link PersistentProperty}s.
*
*
* @author Oliver Gierke
* @author Christoph Strobl
*/
@@ -41,7 +41,7 @@ class DefaultPersistentPropertyPath<P extends PersistentProperty<P>> implements
/**
* Creates a new {@link DefaultPersistentPropertyPath} for the given {@link PersistentProperty}s.
*
*
* @param properties must not be {@literal null}.
*/
public DefaultPersistentPropertyPath(List<P> properties) {
@@ -53,7 +53,7 @@ class DefaultPersistentPropertyPath<P extends PersistentProperty<P>> implements
/**
* Creates an empty {@link DefaultPersistentPropertyPath}.
*
*
* @return
*/
public static <T extends PersistentProperty<T>> DefaultPersistentPropertyPath<T> empty() {
@@ -62,7 +62,7 @@ class DefaultPersistentPropertyPath<P extends PersistentProperty<P>> implements
/**
* Appends the given {@link PersistentProperty} to the current {@link PersistentPropertyPath}.
*
*
* @param property must not be {@literal null}.
* @return a new {@link DefaultPersistentPropertyPath} with the given property appended to the current one.
* @throws IllegalArgumentException in case the property is not a property of the type of the current leaf property.
@@ -87,7 +87,7 @@ class DefaultPersistentPropertyPath<P extends PersistentProperty<P>> implements
return new DefaultPersistentPropertyPath<>(properties);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.mapping.context.PersistentPropertyPath#toDotPath()
*/
@@ -96,7 +96,7 @@ class DefaultPersistentPropertyPath<P extends PersistentProperty<P>> implements
return toPath(DEFAULT_DELIMITER, DEFAULT_CONVERTER);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.mapping.context.PersistentPropertyPath#toDotPath(org.springframework.core.convert.converter.Converter)
*/
@@ -105,7 +105,7 @@ class DefaultPersistentPropertyPath<P extends PersistentProperty<P>> implements
return toPath(DEFAULT_DELIMITER, converter);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.mapping.context.PersistentPropertyPath#toPath(java.lang.String)
*/
@@ -114,7 +114,7 @@ class DefaultPersistentPropertyPath<P extends PersistentProperty<P>> implements
return toPath(delimiter, DEFAULT_CONVERTER);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.mapping.context.PersistentPropertyPath#toPath(java.lang.String, org.springframework.core.convert.converter.Converter)
*/
@@ -138,7 +138,7 @@ class DefaultPersistentPropertyPath<P extends PersistentProperty<P>> implements
return result.isEmpty() ? null : StringUtils.collectionToDelimitedString(result, delimiter);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.mapping.context.PersistentPropertyPath#getLeafProperty()
*/
@@ -147,7 +147,7 @@ class DefaultPersistentPropertyPath<P extends PersistentProperty<P>> implements
return properties.get(properties.size() - 1);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.mapping.context.PersistentPropertyPath#getBaseProperty()
*/
@@ -156,7 +156,7 @@ class DefaultPersistentPropertyPath<P extends PersistentProperty<P>> implements
return properties.get(0);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.mapping.context.PersistentPropertyPath#isBasePathOf(org.springframework.data.mapping.context.PersistentPropertyPath)
*/
@@ -182,7 +182,7 @@ class DefaultPersistentPropertyPath<P extends PersistentProperty<P>> implements
return true;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.mapping.context.PersistentPropertyPath#getExtensionForBaseOf(org.springframework.data.mapping.context.PersistentPropertyPath)
*/
@@ -229,7 +229,7 @@ class DefaultPersistentPropertyPath<P extends PersistentProperty<P>> implements
return properties.size();
}
/*
/*
* (non-Javadoc)
* @see java.lang.Iterable#iterator()
*/
@@ -245,7 +245,7 @@ class DefaultPersistentPropertyPath<P extends PersistentProperty<P>> implements
return properties.isEmpty();
}
/*
/*
* (non-Javadoc)
* @see java.lang.Object#equals(java.lang.Object)
*/
@@ -265,7 +265,7 @@ class DefaultPersistentPropertyPath<P extends PersistentProperty<P>> implements
return this.properties.equals(that.properties);
}
/*
/*
* (non-Javadoc)
* @see java.lang.Object#hashCode()
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015 the original author or authors.
* Copyright 2015-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@ import org.springframework.util.Assert;
/**
* Exception to indicate a source path couldn't be resolved into a {@link PersistentPropertyPath} completely.
*
*
* @author Oliver Gierke
* @soundtrack John Mayer - Slow Dancing In A Burning Room (Acoustic, The Village Sessions)
*/
@@ -35,7 +35,7 @@ public class InvalidPersistentPropertyPath extends MappingException {
/**
* Creates a new {@link InvalidPersistentPropertyPath} for the given resolved path and message.
*
*
* @param source must not be {@literal null}.
* @param unresolvableSegment must not be {@literal null} or empty.
* @param resolvedPath
@@ -58,7 +58,7 @@ public class InvalidPersistentPropertyPath extends MappingException {
/**
* Returns the source property path.
*
*
* @return the source will never be {@literal null}.
*/
public String getSource() {
@@ -67,7 +67,7 @@ public class InvalidPersistentPropertyPath extends MappingException {
/**
* Returns the type the source property path was attempted to be resolved on.
*
*
* @return the type will never be {@literal null}.
*/
public TypeInformation<?> getType() {
@@ -76,7 +76,7 @@ public class InvalidPersistentPropertyPath extends MappingException {
/**
* Returns the segment of the source property path that could not be resolved.
*
*
* @return the unresolvableSegment
*/
public String getUnresolvableSegment() {
@@ -85,7 +85,7 @@ public class InvalidPersistentPropertyPath extends MappingException {
/**
* Returns the part of the source path until which the source property path could be resolved.
*
*
* @return the resolvedPath
*/
public String getResolvedPath() {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2017 the original author or authors.
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2012 the original author or authors.
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@ import org.springframework.util.Assert;
/**
* Base implementation of an {@link ApplicationEvent} refering to a {@link PersistentEntity}.
*
*
* @author Oliver Gierke
* @author Jon Brisbin
* @param <E> the {@link PersistentEntity} the context was created for
@@ -38,7 +38,7 @@ public class MappingContextEvent<E extends PersistentEntity<?, P>, P extends Per
/**
* Creates a new {@link MappingContextEvent} for the given {@link MappingContext} and {@link PersistentEntity}.
*
*
* @param source must not be {@literal null}.
* @param entity must not be {@literal null}.
*/
@@ -55,7 +55,7 @@ public class MappingContextEvent<E extends PersistentEntity<?, P>, P extends Per
/**
* Returns the {@link PersistentEntity} the event was created for.
*
*
* @return
*/
public E getPersistentEntity() {
@@ -64,7 +64,7 @@ public class MappingContextEvent<E extends PersistentEntity<?, P>, P extends Per
/**
* Returns whether the {@link MappingContextEvent} was triggered by the given {@link MappingContext}.
*
*
* @param context the {@link MappingContext} that potentially created the event.
* @return
*/

View File

@@ -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.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014 the original author or authors.
* Copyright 2014-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@ import org.springframework.util.Assert;
/**
* Value object to access {@link PersistentEntity} instances managed by {@link MappingContext}s.
*
*
* @author Oliver Gierke
* @since 1.8
*/
@@ -37,7 +37,7 @@ public class PersistentEntities implements Streamable<PersistentEntity<?, ? exte
/**
* Creates a new {@link PersistentEntities} for the given {@link MappingContext}s.
*
*
* @param contexts
*/
public PersistentEntities(Iterable<? extends MappingContext<?, ?>> contexts) {
@@ -50,7 +50,7 @@ public class PersistentEntities implements Streamable<PersistentEntity<?, ? exte
* Returns the {@link PersistentEntity} for the given type. Will consider all {@link MappingContext}s registered but
* return {@literal Optional#empty()} in case none of the registered ones already have a {@link PersistentEntity}
* registered for the given type.
*
*
* @param type can be {@literal null}.
* @return
*/
@@ -65,7 +65,7 @@ public class PersistentEntities implements Streamable<PersistentEntity<?, ? exte
* Returns the {@link PersistentEntity} for the given type. Will consider all {@link MappingContext}s registered but
* throw an {@link IllegalArgumentException} in case none of the registered ones already have a
* {@link PersistentEntity} registered for the given type.
*
*
* @param type must not be {@literal null}.
* @return the {@link PersistentEntity} for the given domain type.
* @throws IllegalArgumentException in case no {@link PersistentEntity} can be found for the given type.
@@ -80,7 +80,7 @@ public class PersistentEntities implements Streamable<PersistentEntity<?, ? exte
/**
* Returns all {@link TypeInformation} exposed by the registered {@link MappingContext}s.
*
*
* @return
*/
public Streamable<TypeInformation<?>> getManagedTypes() {
@@ -90,7 +90,7 @@ public class PersistentEntities implements Streamable<PersistentEntity<?, ? exte
.collect(Collectors.toSet()));
}
/*
/*
* (non-Javadoc)
* @see java.lang.Iterable#iterator()
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2015 the original author or authors.
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,14 +21,14 @@ import org.springframework.lang.Nullable;
/**
* Abstraction of a path of {@link PersistentProperty}s.
*
*
* @author Oliver Gierke
*/
public interface PersistentPropertyPath<T extends PersistentProperty<T>> extends Iterable<T> {
/**
* Returns the dot based path notation using {@link PersistentProperty#getName()}.
*
*
* @return
*/
@Nullable
@@ -37,7 +37,7 @@ public interface PersistentPropertyPath<T extends PersistentProperty<T>> extends
/**
* Returns the dot based path notation using the given {@link Converter} to translate individual
* {@link PersistentProperty}s to path segments.
*
*
* @param converter must not be {@literal null}.
* @return
*/
@@ -46,7 +46,7 @@ public interface PersistentPropertyPath<T extends PersistentProperty<T>> extends
/**
* Returns a {@link String} path with the given delimiter based on the {@link PersistentProperty#getName()}.
*
*
* @param delimiter must not be {@literal null}.
* @return
*/
@@ -56,7 +56,7 @@ public interface PersistentPropertyPath<T extends PersistentProperty<T>> extends
/**
* Returns a {@link String} path with the given delimiter using the given {@link Converter} for
* {@link PersistentProperty} to String conversion.
*
*
* @param delimiter must not be {@literal null}.
* @param converter must not be {@literal null}.
* @return
@@ -68,7 +68,7 @@ public interface PersistentPropertyPath<T extends PersistentProperty<T>> extends
* Returns the last property in the {@link PersistentPropertyPath}. So for {@code foo.bar} it will return the
* {@link PersistentProperty} for {@code bar}. For a simple {@code foo} it returns {@link PersistentProperty} for
* {@code foo}.
*
*
* @return
*/
@Nullable
@@ -78,7 +78,7 @@ public interface PersistentPropertyPath<T extends PersistentProperty<T>> extends
* Returns the first property in the {@link PersistentPropertyPath}. So for {@code foo.bar} it will return the
* {@link PersistentProperty} for {@code foo}. For a simple {@code foo} it returns {@link PersistentProperty} for
* {@code foo}.
*
*
* @return
*/
@Nullable
@@ -87,7 +87,7 @@ public interface PersistentPropertyPath<T extends PersistentProperty<T>> extends
/**
* Returns whether the given {@link PersistentPropertyPath} is a base path of the current one. This means that the
* current {@link PersistentPropertyPath} is basically an extension of the given one.
*
*
* @param path must not be {@literal null}.
* @return
*/
@@ -97,7 +97,7 @@ public interface PersistentPropertyPath<T extends PersistentProperty<T>> extends
* Returns the sub-path of the current one as if it was based on the given base path. So for a current path
* {@code foo.bar} and a given base {@code foo} it would return {@code bar}. If the given path is not a base of the
* the current one the current {@link PersistentPropertyPath} will be returned as is.
*
*
* @param base must not be {@literal null}.
* @return
*/
@@ -107,21 +107,21 @@ public interface PersistentPropertyPath<T extends PersistentProperty<T>> extends
* Returns the parent path of the current {@link PersistentPropertyPath}, i.e. the path without the leaf property.
* This happens up to the base property. So for a direct property reference calling this method will result in
* returning the property.
*
*
* @return
*/
PersistentPropertyPath<T> getParentPath();
/**
* Returns the length of the {@link PersistentPropertyPath}.
*
*
* @return
*/
int getLength();
/**
* Returns whether the path is empty.
*
*
* @return
* @since 1.11
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2017 the original author or authors.
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2017 the original author or authors.
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,11 +1,11 @@
/*
* Copyright 2011-2017 by the original author(s).
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,

View File

@@ -1,11 +1,11 @@
/*
* Copyright 2011-2017 by the original author(s).
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016 the original author or authors.
* Copyright 2016-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,14 +20,14 @@ import org.springframework.data.mapping.PersistentPropertyAccessor;
/**
* PersistentPropertyAccessorFactory that uses a {@link BeanWrapper}.
*
*
* @author Oliver Gierke
*/
enum BeanWrapperPropertyAccessorFactory implements PersistentPropertyAccessorFactory {
INSTANCE;
/*
/*
* (non-Javadoc)
* @see org.springframework.data.mapping.model.PersistentPropertyAccessorFactory#getPropertyAccessor(org.springframework.data.mapping.PersistentEntity, java.lang.Object)
*/
@@ -36,7 +36,7 @@ enum BeanWrapperPropertyAccessorFactory implements PersistentPropertyAccessorFac
return new BeanWrapper<>(bean);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.mapping.model.PersistentPropertyAccessorFactory#isSupported(org.springframework.data.mapping.PersistentEntity)
*/

View File

@@ -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.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014 the original author or authors.
* Copyright 2014-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@ import org.springframework.util.StringUtils;
/**
* Configurable {@link FieldNamingStrategy} that splits up camel-case property names and reconcatenates them using a
* configured delimiter. Individual parts of the name can be manipulated using {@link #preparePart(String)}.
*
*
* @author Oliver Gierke
* @since 1.9
*/
@@ -36,7 +36,7 @@ public class CamelCaseSplittingFieldNamingStrategy implements FieldNamingStrateg
/**
* Creates a new {@link CamelCaseSplittingFieldNamingStrategy}.
*
*
* @param delimiter must not be {@literal null}.
*/
public CamelCaseSplittingFieldNamingStrategy(String delimiter) {
@@ -70,7 +70,7 @@ public class CamelCaseSplittingFieldNamingStrategy implements FieldNamingStrateg
/**
* Callback to prepare the uncapitalized part obtained from the split up of the camel case source. Default
* implementation returns the part as is.
*
*
* @param part
* @return
*/

View File

@@ -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.

View File

@@ -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.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2017 the original author or authors.
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -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.

View File

@@ -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.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2017 the original author or authors.
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2017 the original authors.
* Copyright 2011-2018 the original authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,11 +1,11 @@
/*
* Copyright (c) 2011-2017 by the original author(s).
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,

View File

@@ -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.

View File

@@ -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.

View File

@@ -1,11 +1,11 @@
/*
* Copyright 2011-2017 by the original author(s).
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016-2017 the original author or authors.
* Copyright 2016-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -124,7 +124,7 @@ public class Property {
/**
* Returns whether the given {@link PropertyDescriptor} is supported in for standalone creation of a {@link Property}
* instance.
*
*
* @param descriptor
* @return
*/
@@ -229,7 +229,7 @@ public class Property {
/**
* Maps the backing {@link Field} or {@link PropertyDescriptor} using the given {@link Function}.
*
*
* @param function must not be {@literal null}.
* @return
*/
@@ -239,7 +239,7 @@ public class Property {
/**
* Maps the backing {@link Field} or {@link PropertyDescriptor} using the given functions.
*
*
* @param field must not be {@literal null}.
* @param descriptor must not be {@literal null}.
* @return

View File

@@ -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.

View File

@@ -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.

View File

@@ -1,11 +1,11 @@
/*
* Copyright 2011-2017 by the original author(s).
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013-2014 the original author or authors.
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@ package org.springframework.data.mapping.model;
/**
* {@link FieldNamingStrategy} that translates typical camel case Java property names to lower case JSON element names,
* separated by underscores.
*
*
* @since 1.5
* @author Ryan Tenney
* @author Oliver Gierke

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@ import org.springframework.util.Assert;
/**
* Simple factory to create {@link SpelExpressionParser} and {@link EvaluationContext} instances.
*
*
* @author Oliver Gierke
*/
public class SpELContext {
@@ -39,7 +39,7 @@ public class SpELContext {
/**
* Creates a new {@link SpELContext} with the given {@link PropertyAccessor}. Defaults the
* {@link SpelExpressionParser}.
*
*
* @param accessor
*/
public SpELContext(PropertyAccessor accessor) {
@@ -49,7 +49,7 @@ public class SpELContext {
/**
* Creates a new {@link SpELContext} using the given {@link SpelExpressionParser} and {@link PropertyAccessor}. Will
* default the {@link SpelExpressionParser} in case the given value for it is {@literal null}.
*
*
* @param parser
* @param accessor
*/
@@ -60,7 +60,7 @@ public class SpELContext {
/**
* Copy constructor to create a {@link SpELContext} using the given one's {@link PropertyAccessor} and
* {@link SpelExpressionParser} as well as the given {@link BeanFactory}.
*
*
* @param source
* @param factory
*/
@@ -72,7 +72,7 @@ public class SpELContext {
* Creates a new {@link SpELContext} using the given {@link SpelExpressionParser}, {@link PropertyAccessor} and
* {@link BeanFactory}. Will default the {@link SpelExpressionParser} in case the given value for it is
* {@literal null}.
*
*
* @param accessor
* @param parser
* @param factory

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012 the original author or authors.
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -19,14 +19,14 @@ import org.springframework.lang.Nullable;
/**
* SPI for components that can evaluate Spring EL expressions.
*
*
* @author Oliver Gierke
*/
public interface SpELExpressionEvaluator {
/**
* Evaluates the given expression.
*
*
* @param expression
* @return
*/

View File

@@ -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.