Class InliningUtils
- java.lang.Object
-
- com.atlassian.bamboo.specs.api.util.InliningUtils
-
public final class InliningUtils extends java.lang.ObjectUtilities 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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanpreventInlining(boolean bool)Prevents inlining of a boolean value.static intpreventInlining(int integer)Prevents inlining of an integer value.static @NotNull java.lang.StringpreventInlining(@NotNull java.lang.String string)Prevents inlining of a String value.
-
-
-
Method Detail
-
preventInlining
@NotNull public static @NotNull java.lang.String preventInlining(@NotNull @NotNull java.lang.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
-
-