Uploaded image for project: 'Spring Data MongoDB'
  1. Spring Data MongoDB
  2. DATAMONGO-2570

Avoiding unintentional unboxing

    XMLWordPrintable

    Details

      Description

      In the findAll method with Pageable we have a count variable with wrapped Long object but not only count method returns primitive long, but also the PageImpl long and its better to declure count as primitive to prevent unintentional autoboxing.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: