Menu

#353 Java Object Creation Not Indented

open-accepted
java (1)
2023-08-29
2015-04-03
Jesse
No

I am styling some Java code with astyle.

This is the output after being styled with the Java style and mode:

        KafkaProducer<String, String> producer = new
        KafkaProducer<String, String>(
            props);

I don't want the second line of the creation to not have any indentation. It should have the same indentation as the props line like so:

        KafkaProducer<String, String> producer = new
            KafkaProducer<String, String>(
            props);

Thanks.

Discussion

  • André Simon

    André Simon - 2023-06-29
    • status: open --> open-accepted
    • assigned_to: André Simon
     
  • André Simon

    André Simon - 2023-08-29

    Improved but not 100 fixed as all lines will be indented in 3.4.6

     

Log in to post a comment.

MongoDB Logo MongoDB