Uploaded image for project: 'Spring Data Redis'
  1. Spring Data Redis
  2. DATAREDIS-706

JedisClusterStringCommands.set(…) contains redundant null checks

    XMLWordPrintable

    Details

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            mp911de Mark Paluch
            Reporter:
            silver9886 xiaohu-zhang
            Last updater:
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: