Skip to content

Commit 5b51b47

Browse files
authored
docs: minimal Javadoc clean up to pass publishing action (#104)
1 parent 3d4b7a0 commit 5b51b47

12 files changed

+52
-31
lines changed

redis-om-spring/src/main/java/com/redis/om/spring/RedisEnhancedKeyValueAdapter.java

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ public class RedisEnhancedKeyValueAdapter extends RedisKeyValueAdapter {
8686
* {@link RedisMappingContext} and default {@link RedisCustomConversions}.
8787
*
8888
* @param redisOps must not be {@literal null}.
89+
* @param rmo must not be {@literal null}.
90+
* @param keyspaceToIndexMap must not be {@literal null}.
8991
*/
9092
public RedisEnhancedKeyValueAdapter(RedisOperations<?, ?> redisOps, RedisModulesOperations<?> rmo,
9193
KeyspaceToIndexMap keyspaceToIndexMap) {
@@ -96,8 +98,10 @@ public RedisEnhancedKeyValueAdapter(RedisOperations<?, ?> redisOps, RedisModules
9698
* Creates new {@link RedisKeyValueAdapter} with default
9799
* {@link RedisCustomConversions}.
98100
*
99-
* @param redisOps must not be {@literal null}.
101+
* @param redisOps must not be {@literal null}.
102+
* @param rmo must not be {@literal null}.
100103
* @param mappingContext must not be {@literal null}.
104+
* @param keyspaceToIndexMap must not be {@literal null}.
101105
*/
102106
public RedisEnhancedKeyValueAdapter(RedisOperations<?, ?> redisOps, RedisModulesOperations<?> rmo,
103107
RedisMappingContext mappingContext, KeyspaceToIndexMap keyspaceToIndexMap) {
@@ -107,10 +111,11 @@ public RedisEnhancedKeyValueAdapter(RedisOperations<?, ?> redisOps, RedisModules
107111
/**
108112
* Creates new {@link RedisKeyValueAdapter}.
109113
*
110-
* @param redisOps must not be {@literal null}.
111-
* @param mappingContext must not be {@literal null}.
114+
* @param redisOps must not be {@literal null}.
115+
* @param rmo must not be {@literal null}.
116+
* @param mappingContext must not be {@literal null}.
112117
* @param customConversions can be {@literal null}.
113-
* @since 2.0
118+
* @param keyspaceToIndexMap must not be {@literal null}.
114119
*/
115120
@SuppressWarnings("unchecked")
116121
public RedisEnhancedKeyValueAdapter(RedisOperations<?, ?> redisOps, RedisModulesOperations<?> rmo,
@@ -254,9 +259,8 @@ public void deleteAllOf(String keyspace) {
254259
* @param type the desired target type.
255260
* @param offset index value to start reading.
256261
* @param rows maximum number or entities to return.
257-
* @param <T>
262+
* @param <T> type of entity
258263
* @return never {@literal null}.
259-
* @since 2.5
260264
*/
261265
@Override
262266
public <T> List<T> getAllOf(String keyspace, Class<T> type, long offset, int rows) {

redis-om-spring/src/main/java/com/redis/om/spring/annotations/Document.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
double score() default 1.0;
3030

3131
/**
32-
* Time before expire in seconds. Superseded by {@link TimeToLive}.
32+
* Time before expire in seconds.
3333
*
3434
* @return positive number when expiration should be applied.
3535
*/

redis-om-spring/src/main/java/com/redis/om/spring/annotations/EnableRedisDocumentRepositories.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
* used for keyspace event subscriptions. Defaults to use an anonymous managed instance by
164164
* {@link org.springframework.data.redis.core.RedisKeyValueAdapter}.
165165
*
166-
* @return
166+
* @return the messageListenerContainerRef
167167
* @since 2.7.2
168168
*/
169169
String messageListenerContainerRef() default "";

redis-om-spring/src/main/java/com/redis/om/spring/annotations/EnableRedisEnhancedRepositories.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@
162162
* used for keyspace event subscriptions. Defaults to use an anonymous managed instance by
163163
* {@link org.springframework.data.redis.core.RedisKeyValueAdapter}.
164164
*
165-
* @return
166-
* @since 2.7.2
165+
* @return the messageListenerContainerRef
167166
*/
168167
String messageListenerContainerRef() default "";
169168

redis-om-spring/src/main/java/com/redis/om/spring/convert/MappingRedisOMConverter.java

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ public MappingRedisOMConverter(RedisMappingContext context) {
9999
* {@link RedisMappingContext} when {@literal null}.
100100
*
101101
* @param mappingContext can be {@literal null}.
102-
* @param indexResolver can be {@literal null}.
103102
* @param referenceResolver can be not be {@literal null}.
104103
*/
105104
public MappingRedisOMConverter(@Nullable RedisMappingContext mappingContext,
@@ -112,7 +111,6 @@ public MappingRedisOMConverter(@Nullable RedisMappingContext mappingContext,
112111
* {@link RedisMappingContext} when {@literal null}.
113112
*
114113
* @param mappingContext can be {@literal null}.
115-
* @param indexResolver can be {@literal null}.
116114
* @param referenceResolver can be {@literal null}.
117115
* @param typeMapper can be {@literal null}.
118116
*/
@@ -987,9 +985,9 @@ private Class<?> getTypeHint(String path, Bucket bucket, Class<?> fallback) {
987985
* Convert given source to binary representation using the underlying
988986
* {@link ConversionService}.
989987
*
990-
* @param source
991-
* @return
992-
* @throws ConverterNotFoundException
988+
* @param source the source object
989+
* @return a byte array representation
990+
* @throws ConverterNotFoundException if a specific converter cannot be found
993991
*/
994992
public byte[] toBytes(Object source) {
995993

@@ -1004,10 +1002,11 @@ public byte[] toBytes(Object source) {
10041002
* Convert given binary representation to desired target type using the
10051003
* underlying {@link ConversionService}.
10061004
*
1007-
* @param source
1008-
* @param type
1009-
* @return
1010-
* @throws ConverterNotFoundException
1005+
* @param <T> expected type of the source object
1006+
* @param source the source object
1007+
* @param type the class to cast the object to
1008+
* @return the target object
1009+
* @throws ConverterNotFoundException if a specific converter cannot be found
10111010
*/
10121011
public <T> T fromBytes(byte[] source, Class<T> type) {
10131012

@@ -1055,7 +1054,7 @@ public void setReferenceResolver(ReferenceResolver referenceResolver) {
10551054
/**
10561055
* Set {@link CustomConversions} to be applied.
10571056
*
1058-
* @param customConversions
1057+
* @param customConversions custom convertions to be added to the pipeline
10591058
*/
10601059
public void setCustomConversions(@Nullable CustomConversions customConversions) {
10611060
this.customConversions = customConversions != null ? customConversions : new RedisCustomConversions();

redis-om-spring/src/main/java/com/redis/om/spring/convert/RedisOMCustomConversions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public RedisOMCustomConversions() {
3838
/**
3939
* Creates a new {@link RedisCustomConversions} instance registering the given converters.
4040
*
41-
* @param converters
41+
* @param converters a list of converted to be added to the base list
4242
*/
4343
public RedisOMCustomConversions(List<?> converters) {
4444
super(omConverters);

redis-om-spring/src/main/java/com/redis/om/spring/repository/RedisDocumentRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public interface RedisDocumentRepository<T, ID> extends KeyValueRepository<T, ID
1616
/**
1717
* Returns a {@link Page} of entities meeting the paging restriction provided in the {@code Pageable} object.
1818
*
19-
* @param pageable
19+
* @param pageable encapsulates pagination information
2020
* @return a page of entities
2121
*/
2222
Page<ID> getIds(Pageable pageable);

redis-om-spring/src/main/java/com/redis/om/spring/repository/RedisEnhancedRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public interface RedisEnhancedRepository<T, ID> extends KeyValueRepository<T, ID
1515
/**
1616
* Returns a {@link Page} of entities meeting the paging restriction provided in the {@code Pageable} object.
1717
*
18-
* @param pageable
18+
* @param pageable encapsulates pagination information
1919
* @return a page of entities
2020
*/
2121
Page<ID> getIds(Pageable pageable);

redis-om-spring/src/main/java/com/redis/om/spring/repository/query/Sort.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ protected Sort(List<Order> orders) {
1717
*
1818
* @param direction must not be {@literal null}.
1919
* @param fields must not be {@literal null}.
20-
* @return
20+
* @return a Spring Sort object
2121
*/
2222
public static org.springframework.data.domain.Sort by(Direction direction, MetamodelField<?, ?>... fields) {
2323
String[] properties = Arrays.asList(fields).stream().map(metamodel -> metamodel.getField().getName()).toArray(String[]::new);

redis-om-spring/src/main/java/com/redis/om/spring/repository/support/RedisDocumentRepositoryFactory.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ public class RedisDocumentRepositoryFactory extends KeyValueRepositoryFactory {
4646
*
4747
* @param keyValueOperations must not be {@literal null}.
4848
* @param rmo must not be {@literal null}.
49+
* @param keyspaceToIndexMap must not be {@literal null}.
50+
* @param mappingContext must not be {@literal null}.
4951
*/
5052
public RedisDocumentRepositoryFactory( //
5153
KeyValueOperations keyValueOperations, //
@@ -60,7 +62,10 @@ public RedisDocumentRepositoryFactory( //
6062
* {@link KeyValueOperations} and {@link AbstractQueryCreator}-type.
6163
*
6264
* @param keyValueOperations must not be {@literal null}.
63-
* @param queryCreator must not be {@literal null}.
65+
* @param rmo must not be {@literal null}.
66+
* @param keyspaceToIndexMap must not be {@literal null}.
67+
* @param queryCreator must not be {@literal null}.
68+
* @param mappingContext must not be {@literal null}.
6469
*/
6570
public RedisDocumentRepositoryFactory( //
6671
KeyValueOperations keyValueOperations, //
@@ -76,9 +81,12 @@ public RedisDocumentRepositoryFactory( //
7681
* Creates a new {@link KeyValueRepositoryFactory} for the given
7782
* {@link KeyValueOperations} and {@link AbstractQueryCreator}-type.
7883
*
79-
* @param keyValueOperations must not be {@literal null}.
80-
* @param queryCreator must not be {@literal null}.
84+
* @param keyValueOperations must not be {@literal null}.
85+
* @param rmo must not be {@literal null}.
86+
* @param keyspaceToIndexMap must not be {@literal null}.
87+
* @param queryCreator must not be {@literal null}.
8188
* @param repositoryQueryType must not be {@literal null}.
89+
* @param mappingContext must not be {@literal null}.
8290
*/
8391
public RedisDocumentRepositoryFactory( //
8492
KeyValueOperations keyValueOperations, //

redis-om-spring/src/main/java/com/redis/om/spring/repository/support/RedisEnhancedRepositoryFactory.java

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ public class RedisEnhancedRepositoryFactory extends RepositoryFactorySupport {
5050
* {@link KeyValueOperations}.
5151
*
5252
* @param keyValueOperations must not be {@literal null}.
53+
* @param redisOperations must not be {@literal null}.
54+
* @param rmo must not be {@literal null}.
55+
* @param keyspaceToIndexMap must not be {@literal null}.
5356
*/
5457
public RedisEnhancedRepositoryFactory( //
5558
KeyValueOperations keyValueOperations, //
@@ -64,7 +67,10 @@ public RedisEnhancedRepositoryFactory( //
6467
* {@link KeyValueOperations} and {@link AbstractQueryCreator}-type.
6568
*
6669
* @param keyValueOperations must not be {@literal null}.
67-
* @param queryCreator must not be {@literal null}.
70+
* @param redisOperations must not be {@literal null}.
71+
* @param rmo must not be {@literal null}.
72+
* @param keyspaceToIndexMap must not be {@literal null}.
73+
* @param queryCreator must not be {@literal null}.
6874
*/
6975
public RedisEnhancedRepositoryFactory( //
7076
KeyValueOperations keyValueOperations, //
@@ -80,10 +86,12 @@ public RedisEnhancedRepositoryFactory( //
8086
* Creates a new {@link KeyValueRepositoryFactory} for the given
8187
* {@link KeyValueOperations} and {@link AbstractQueryCreator}-type.
8288
*
83-
* @param keyValueOperations must not be {@literal null}.
84-
* @param queryCreator must not be {@literal null}.
89+
* @param keyValueOperations must not be {@literal null}.
90+
* @param redisOperations must not be {@literal null}.
91+
* @param rmo must not be {@literal null}.
92+
* @param keyspaceToIndexMap must not be {@literal null}.
93+
* @param queryCreator must not be {@literal null}.
8594
* @param repositoryQueryType must not be {@literal null}.
86-
* @since 1.1
8795
*/
8896
public RedisEnhancedRepositoryFactory( //
8997
KeyValueOperations keyValueOperations, //

redis-om-spring/src/main/java/com/redis/om/spring/repository/support/RedisEnhancedRepositoryFactoryBean.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ public class RedisEnhancedRepositoryFactoryBean<T extends Repository<S, ID>, S,
3232
* interface.
3333
*
3434
* @param repositoryInterface must not be {@literal null}.
35+
* @param redisOperations must not be {@literal null}.
36+
* @param rmo must not be {@literal null}.
37+
* @param keyspaceToIndexMap must not be {@literal null}.
3538
*/
3639
public RedisEnhancedRepositoryFactoryBean(Class<? extends T> repositoryInterface,
3740
RedisOperations<?, ?> redisOperations, RedisModulesOperations<?> rmo, KeyspaceToIndexMap keyspaceToIndexMap) {

0 commit comments

Comments
 (0)