Skip to content

Commit 8723527

Browse files
Refine public API Javadoc descriptions
Closes #2602 Signed-off-by: wonderfulrosemari <whwlsgur1419@naver.com>
1 parent 60296f3 commit 8723527

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/main/java/org/springframework/data/domain/Range.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
*
3030
* @author Oliver Gierke
3131
* @author Mark Paluch
32+
* @author wonderfulrosemari
3233
* @since 1.10
3334
*/
3435
public final class Range<T> {
@@ -172,7 +173,7 @@ public static <T> Range<T> of(Bound<T> lowerBound, Bound<T> upperBound) {
172173
/**
173174
* Creates a new Range with the given value as sole member.
174175
*
175-
* @param <T> the type of the range.>
176+
* @param <T> the type of the range.
176177
* @param value must not be {@literal null}.
177178
* @return a range containing the given value.
178179
* @see Range#closed(Object, Object)

src/main/java/org/springframework/data/repository/CrudRepository.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* @author Oliver Gierke
2929
* @author Eberhard Wolff
3030
* @author Jens Schauder
31+
* @author wonderfulrosemari
3132
*/
3233
@NoRepositoryBean
3334
public interface CrudRepository<T, ID> extends Repository<T, ID> {
@@ -36,7 +37,7 @@ public interface CrudRepository<T, ID> extends Repository<T, ID> {
3637
* Saves a given entity. Use the returned instance for further operations as the save operation might have changed the
3738
* entity instance completely.
3839
*
39-
* @param entity must not be {@literal null}.
40+
* @param entity the entity to save; must not be {@literal null}.
4041
* @return the saved entity; will never be {@literal null}.
4142
* @throws IllegalArgumentException in case the given {@literal entity} is {@literal null}.
4243
* @throws OptimisticLockingFailureException when the entity uses optimistic locking and has a version attribute with

src/main/java/org/springframework/data/repository/RepositoryDefinition.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
*
3131
* @see Repository
3232
* @author Oliver Gierke
33+
* @author wonderfulrosemari
3334
*/
3435
@Indexed
3536
@Documented
@@ -42,15 +43,15 @@
4243
* The domain class the repository manages. Equivalent to the T type parameter in {@link Repository}.
4344
*
4445
* @see Repository
45-
* @return
46+
* @return the domain class managed by the repository.
4647
*/
4748
Class<?> domainClass();
4849

4950
/**
5051
* The id class of the entity the repository manages. Equivalent to the ID type parameter in {@link Repository}.
5152
*
5253
* @see Repository
53-
* @return
54+
* @return the id class of the entity managed by the repository.
5455
*/
5556
Class<?> idClass();
5657
}

0 commit comments

Comments
 (0)