Skip to content

JedisClusterStringCommands.set(…) contains redundant null checks [DATAREDIS-706] #1280

Closed
@spring-projects-issues

Description

@spring-projects-issues

xiaohu-zhang opened DATAREDIS-706 and commented

org.springframework.data.redis.connection.jedis.JedisClusterStringCommands.set(byte[], byte[], Expiration, SetOption)
both have the

     Assert.notNull(expiration, "Expiration must not be null!");
Assert.notNull(option, "Option must not be null!");

and

if (expiration == null
if (option == null

that is redundance in the code


Affects: 2.0.1 (Kay SR1)

Referenced from: pull request #278

Backported to: 2.0.2 (Kay SR2)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions