From 3527f195dc85453efc9c8c788248124c79c2390d Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Mon, 5 Mar 2018 09:45:08 +0100 Subject: [PATCH] DATACMNS-1273 - Polishing. Remove trailing whitespaces. --- .../AnnotationBasedPersistentProperty.java | 28 +++++++++---------- ...ationBasedPersistentPropertyUnitTests.java | 5 ++-- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/src/main/java/org/springframework/data/mapping/model/AnnotationBasedPersistentProperty.java b/src/main/java/org/springframework/data/mapping/model/AnnotationBasedPersistentProperty.java index f8168a7cde..4cdcd4b035 100644 --- a/src/main/java/org/springframework/data/mapping/model/AnnotationBasedPersistentProperty.java +++ b/src/main/java/org/springframework/data/mapping/model/AnnotationBasedPersistentProperty.java @@ -40,7 +40,7 @@ /** * Special {@link PersistentProperty} that takes annotations at a property into account. - * + * * @author Oliver Gierke * @author Christoph Strobl * @author Mark Paluch @@ -59,7 +59,7 @@ public abstract class AnnotationBasedPersistentProperty

A findAnnotation(Class annotationType) { field == null ? null : AnnotatedElementUtils.findMergedAnnotation(field, annotationType)); } - /* + /* * (non-Javadoc) * @see org.springframework.data.mapping.PersistentProperty#findPropertyOrOwnerAnnotation(java.lang.Class) */ @@ -255,7 +255,7 @@ public A findPropertyOrOwnerAnnotation(Class annotatio /** * Puts the given annotation into the local cache and returns it. - * + * * @param annotation * @return */ @@ -270,7 +270,7 @@ private A cacheAndReturn(Class type, A annot /** * Returns whether the property carries the an annotation of the given type. - * + * * @param annotationType the annotation type to look up. * @return */ @@ -278,7 +278,7 @@ public boolean isAnnotationPresent(Class annotationType) { return findAnnotation(annotationType) != null; } - /* + /* * (non-Javadoc) * @see org.springframework.data.mapping.model.AbstractPersistentProperty#usePropertyAccess() */ @@ -287,7 +287,7 @@ public boolean usePropertyAccess() { return super.usePropertyAccess() || usePropertyAccess; } - /* + /* * (non-Javadoc) * @see org.springframework.data.mapping.model.AbstractPersistentProperty#toString() */ diff --git a/src/test/java/org/springframework/data/mapping/model/AnnotationBasedPersistentPropertyUnitTests.java b/src/test/java/org/springframework/data/mapping/model/AnnotationBasedPersistentPropertyUnitTests.java index 6001215ab4..91c826cd13 100644 --- a/src/test/java/org/springframework/data/mapping/model/AnnotationBasedPersistentPropertyUnitTests.java +++ b/src/test/java/org/springframework/data/mapping/model/AnnotationBasedPersistentPropertyUnitTests.java @@ -29,7 +29,6 @@ import org.junit.Before; import org.junit.Test; - import org.springframework.core.annotation.AliasFor; import org.springframework.core.annotation.AnnotationUtils; import org.springframework.data.annotation.AccessType; @@ -44,7 +43,7 @@ /** * Unit tests for {@link AnnotationBasedPersistentProperty}. - * + * * @author Oliver Gierke * @author Christoph Strobl * @author Mark Paluch @@ -204,7 +203,7 @@ public void revisedAnnotationWithAliasShouldHaveSynthesizedAttributeValues() { SamplePersistentProperty setter = entity.getPersistentProperty("setter"); RevisedAnnnotationWithAliasFor annotation = setter.findAnnotation(RevisedAnnnotationWithAliasFor.class); - + assertThat(annotation.name(), is(equalTo("my-value"))); assertThat(annotation.value(), is(equalTo("my-value"))); }