Skip to content

Commit cf5ce41

Browse files
mp911dechristophstrobl
authored andcommitted
DATAREDIS-1245 - Polishing.
Fix Javadoc and generics. Original Pull Request: #571
1 parent 366b5ff commit cf5ce41

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/org/springframework/data/redis/core/script/RedisScript.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* @author Christoph Strobl
2828
* @author Mark Paluch
2929
* @param <T> The script result type. Should be one of Long, Boolean, List, or deserialized value type. Can be
30-
* {@litearl null} if the script returns a throw-away status (i.e "OK")
30+
* {@literal null} if the script returns a throw-away status (i.e "OK")
3131
*/
3232
public interface RedisScript<T> {
3333

@@ -57,7 +57,7 @@ default boolean returnsRawValue() {
5757
}
5858

5959
/**
60-
* Creates new {@link RedisScript} from {@link String}.
60+
* Creates new {@link RedisScript} from {@code script} as {@link String}.
6161
*
6262
* @param script must not be {@literal null}.
6363
* @return new instance of {@link RedisScript}.
@@ -68,19 +68,19 @@ static <T> RedisScript<T> of(String script) {
6868
}
6969

7070
/**
71-
* Creates new {@link RedisScript} from {@link String}.
71+
* Creates new {@link RedisScript} from {@code script} as {@link String}.
7272
*
7373
* @param script must not be {@literal null}.
7474
* @param resultType must not be {@literal null}.
7575
* @return new instance of {@link RedisScript}.
7676
* @since 2.0
7777
*/
78-
static <T> RedisScript of(String script, Class<T> resultType) {
78+
static <T> RedisScript<T> of(String script, Class<T> resultType) {
7979

8080
Assert.notNull(script, "Script must not be null!");
8181
Assert.notNull(resultType, "ResultType must not be null!");
8282

83-
return new DefaultRedisScript(script, resultType);
83+
return new DefaultRedisScript<>(script, resultType);
8484
}
8585

8686
/**

0 commit comments

Comments
 (0)