Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1926 Adding more commands to Forge and improve existing ones
  3. FORGE-2068

When creating a new field, updating toString should be optional

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Done
    • Major
    • 2.12.2.Final
    • 2.12.0.Final
    • Java EE
    • None

    Description

      Today, when we create a new field to a Java class (or CDI bean...), the field is automatically added to the toString method. It would be good to have the option not to update it, by adding a --updateToString boolean parameter.

      The following command create a class, adds two fields, one updating the toString, the other no :

      java-new-class --named MyClass
      java-new-field --named defaultUpdatesToString
      java-new-field --named doesNotUpdateToString --updateToString false
      

      Attachments

        Activity

          People

            agoncal Antonio Goncalves (Inactive)
            agoncal Antonio Goncalves (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: