Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1804

Generated code is not properly indented

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.6.0.Final
    • Fix Version/s: 2.7.0.Final
    • Component/s: Java EE
    • Labels:
      None

      Description

      The affected version is 2.5.1-SNAPSHOT. I noticed a regression in 2.5.1-SNAPSHOT.

      I create an Entity and an EJB :

      [temp]$ project-new --named proj251
      [proj251]$ jpa-new-entity --named MyEntity
      [MyEntity.java]$ ejb-new-bean --named MyService
      

      If I run this script in 2.5.0 the generated code is well indented. Here for the entity :

      import java.lang.Override;
       
      @Entity
      public class MyEntity implements Serializable
      

      And for the EJB :

      import java.io.Serializable;
       
      @Stateless
      @LocalBean
      public class MyService implements Serializable
      

      But when I do that with 2.5.1-SNAPSHOT, the class annotation is not right :

      import java.lang.Override;@Entity
      public class MyEntity implements Serializable {
      

      And

      import java.io.Serializable;@Stateless
      @LocalBean
      public class MyService implements Serializable {
      

      I haven't tried with all the other artifacts, I'm wondering if it's on all the generated code or not

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  gastaldi George Gastaldi
                  Reporter:
                  agoncal Antonio Goncalves
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: