Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-1733

JavaDoc for Range factory methods is incorrect

    XMLWordPrintable

    Details

      Description

      Both Range.closed() and Range.open() have the same javadoc:

      /**
        * Creates a new {@link Range} with inclusive bounds for both values.
        *
        * @param <T>
        * @param from must not be {@literal null}.
        * @param to must not be {@literal null}.
        * @return
        * @since 2.2
        */
      

      This is clearly incorrect and confusing. Range.closed() is inclusive, but Range.open() is exclusive.

        Attachments

          Activity

            People

            Assignee:
            mp911de Mark Paluch
            Reporter:
            shollander shollander
            Last updater:
            Mark Paluch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: