From cf5ce41ee0b9e66910b89362ab9cd0bf7cc63962 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Thu, 5 Nov 2020 10:45:54 +0100 Subject: [PATCH] DATAREDIS-1245 - Polishing. Fix Javadoc and generics. Original Pull Request: #571 --- .../data/redis/core/script/RedisScript.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/springframework/data/redis/core/script/RedisScript.java b/src/main/java/org/springframework/data/redis/core/script/RedisScript.java index 7ab45c55f..37ced9b4a 100644 --- a/src/main/java/org/springframework/data/redis/core/script/RedisScript.java +++ b/src/main/java/org/springframework/data/redis/core/script/RedisScript.java @@ -27,7 +27,7 @@ import org.springframework.util.Assert; * @author Christoph Strobl * @author Mark Paluch * @param The script result type. Should be one of Long, Boolean, List, or deserialized value type. Can be - * {@litearl null} if the script returns a throw-away status (i.e "OK") + * {@literal null} if the script returns a throw-away status (i.e "OK") */ public interface RedisScript { @@ -57,7 +57,7 @@ public interface RedisScript { } /** - * Creates new {@link RedisScript} from {@link String}. + * Creates new {@link RedisScript} from {@code script} as {@link String}. * * @param script must not be {@literal null}. * @return new instance of {@link RedisScript}. @@ -68,19 +68,19 @@ public interface RedisScript { } /** - * Creates new {@link RedisScript} from {@link String}. + * Creates new {@link RedisScript} from {@code script} as {@link String}. * * @param script must not be {@literal null}. * @param resultType must not be {@literal null}. * @return new instance of {@link RedisScript}. * @since 2.0 */ - static RedisScript of(String script, Class resultType) { + static RedisScript of(String script, Class resultType) { Assert.notNull(script, "Script must not be null!"); Assert.notNull(resultType, "ResultType must not be null!"); - return new DefaultRedisScript(script, resultType); + return new DefaultRedisScript<>(script, resultType); } /**