8 Replies Latest reply on Aug 14, 2017 4:17 PM by George Gastaldi

    roaster parse for methods [JavaClassSource]

    cristhian recalde Newbie

      Hi

       

      Is there a way to obtain the original source format when obtaining the methods from JavaClassSource class ?

       

      for example, I have this code

      public void doSomething() {
          check();
      
          doubleCheck();
      }
      

       

      But when I use

      getMethods
      

      from org.jboss.forge.roaster.model.source.MethodHolderSource, I get

      public void doSomething() {
           check();
           doubleCheck();
      }