Package org.apache.calcite.util
Class Unsafe
- java.lang.Object
-
- org.apache.calcite.util.Unsafe
-
public class Unsafe extends java.lang.Object
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.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Unsafe()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clear(java.io.StringWriter sw)
Clears the contents of aStringWriter
.static void
notifyAll(java.lang.Object o)
CallsObject.notifyAll()
.static void
systemExit(int status)
CallsSystem.exit(int)
.static void
wait(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.InterruptedException
CallsObject.wait()
.- Throws:
java.lang.InterruptedException
-
clear
public static void clear(java.io.StringWriter sw)
Clears the contents of aStringWriter
.
-
-