Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-6460

Invalid indentation on nested lambda

    XMLWordPrintableJSON

Details

    Description

      When indenting Java nested lambda, only the first one have correct indentation.

      I expect this result :

      new ClassA("codeA", a -> a
          .addClassB("b", b -> b
              .addClassC("c", c -> c
                  .setValue("v")
              )
          )
      );
      

       
      But got :

      new ClassA("codeA", a -> a
          .addClassB("b", b -> b
          .addClassC("c", c -> c
          .setValue("v")
          )
          )
      );
      

       

      I tried multiple formatting options without success.

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            SkyghiS SkyghiS
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: