Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8161115

Single line methods without flower braces

XMLWordPrintable

      A DESCRIPTION OF THE REQUEST :
      Hi

          The way we have optional flower braces for single if and for statement, we can have it for single line methods also. Example

       public void setXXX(y xxx)
           this.xxx=xxx;
       public y getXXX()
            return xxx;

       this will be very helpful, when writing single line methods like accessors and mutators incase of beans, TO, VO and Pojos

      JUSTIFICATION :

      This will reduce unwanted code in POJOS and will be very handy for developers


            smarks Stuart Marks
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: