Package org.apache.calcite.avatica.util
Class Unsafe
- java.lang.Object
-
- org.apache.calcite.avatica.util.Unsafe
-
public class Unsafe extends java.lang.ObjectContains 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateUnsafe()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringformatLocalString(java.lang.String format, java.lang.Object... args)Returns aString, created from the given format and args, with the root locale.static java.util.CalendarlocalCalendar()Returns aCalendarwith the local time zone and root locale.static voidnotifyAll(java.lang.Object o)CallsObject.notifyAll().static voidsystemExit(int status)CallsSystem.exit(int).static voidwait(java.lang.Object o)CallsObject.wait().
-
-
-
Method Detail
-
systemExit
public static void systemExit(int status)
CallsSystem.exit(int).
-
notifyAll
public static void notifyAll(java.lang.Object o)
CallsObject.notifyAll().
-
wait
public static void wait(java.lang.Object o) throws java.lang.InterruptedExceptionCallsObject.wait().- Throws:
java.lang.InterruptedException
-
localCalendar
public static java.util.Calendar localCalendar()
Returns aCalendarwith the local time zone and root locale.
-
formatLocalString
public static java.lang.String formatLocalString(java.lang.String format, java.lang.Object... args)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.
-
-