Class InliningUtils

java.lang.Object
com.atlassian.bamboo.specs.api.util.InliningUtils

public final class InliningUtils extends Object
Utilities for preventing inlining of constants.

Methods from this class should be used whenever String or primitive type constants are exposed as part of the Specs API, to prevent them from being inlined during compilation.

  • Method Details

    • preventInlining

      @NotNull public static @NotNull String preventInlining(@NotNull @NotNull String string)
      Prevents inlining of a String value.
      Parameters:
      string - any string
      Returns:
      the string passed as argument
    • preventInlining

      public static boolean preventInlining(boolean bool)
      Prevents inlining of a boolean value.
      Parameters:
      bool - any boolean
      Returns:
      the boolean passed as argument
    • preventInlining

      public static int preventInlining(int integer)
      Prevents inlining of an integer value.
      Parameters:
      integer - any integer
      Returns:
      the integer passed as argument