2 Replies Latest reply on Aug 9, 2016 8:42 AM by gastaldi

    What are the limitations of setBody?

    g.andrade.1995

      Hello,

       

      I'm trying to put text into a method body using setBody(String s) but all I get is null when I print getBody of the same method.

      Does this method has limitations such as parameter size or some character limitation?

       

      The code is down below:

       

      javaClass.addMethod()

                 .setPublic()

                .setStatic(false)

                .setName("setupIAB")

                .setReturnTypeVoid()

                .setBody("OpenIabHelper.Options.Builder builder = new OpenIabHelper.Options.Builder() \n\t .setStoreSearchStrategy(OpenIabHelper.Options.SEARCH_STRATEGY_INSTALLER);");

       

       

      Thanks for the help!

       

      Guilherme Andrade.