Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-15485

remove Collections.singleton.forEach use

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.0, 8.10
    • None
    • None

    Description

      For example

      Collections.singleton(foo).parallelStream().forEach(c -> { c.bar(); });
      

      or

      Collections.singleton(foo).stream().forEach(c -> { c.bar(); });
      

      should typically be equivalent to

      foo.bar();
      

      which is more concise.

      Attachments

        Activity

          People

            cpoerschke Christine Poerschke
            cpoerschke Christine Poerschke
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m