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 */
3232public 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