Class InliningUtils
java.lang.Object
com.atlassian.bamboo.specs.api.util.InliningUtils
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 Summary
Modifier and TypeMethodDescriptionstatic boolean
preventInlining
(boolean bool) Prevents inlining of a boolean value.static int
preventInlining
(int integer) Prevents inlining of an integer value.static @NotNull String
preventInlining
(@NotNull String string) Prevents inlining of a String value.
-
Method Details
-
preventInlining
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
-