Package org.apache.calcite.avatica.util
Class Unsafe
java.lang.Object
org.apache.calcite.avatica.util.Unsafe
Contains methods that call JDK methods that the
forbidden
APIs checker does not approve of.
This class is excluded from the check, so methods called via this class will not fail the build.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatLocalString(String format, Object... args) Returns aString, created from the given format and args, with the root locale.static CalendarReturns aCalendarwith the local time zone and root locale.static voidCallsObject.notifyAll().static voidsystemExit(int status) CallsSystem.exit(int).static voidCallsObject.wait().
-
Method Details
-
systemExit
public static void systemExit(int status) CallsSystem.exit(int). -
notifyAll
CallsObject.notifyAll(). -
wait
CallsObject.wait().- Throws:
InterruptedException
-
localCalendar
Returns aCalendarwith the local time zone and root locale. -
formatLocalString
Returns aString, created from the given format and args, with the root locale. Analog toString.format(String, Object...).- Parameters:
format- The format stringargs- Arguments to be substituted into the format string.
-