public class Unsafe extends Object
This class is excluded from the check, so methods called via this class will not fail the build.
| Modifier and Type | Method and Description |
|---|---|
static void |
clear(StringWriter sw)
Clears the contents of a
StringWriter. |
static void |
notifyAll(Object o)
Calls
Object.notifyAll(). |
static String |
regexpReplace(String s,
Pattern pattern,
String replacement,
int pos,
int occurrence)
Helper for the SQL
REGEXP_REPLACE function. |
static void |
systemExit(int status)
Calls
System.exit(int). |
static void |
wait(Object o)
Calls
Object.wait(). |
public static void systemExit(int status)
System.exit(int).public static void notifyAll(Object o)
Object.notifyAll().public static void wait(Object o) throws InterruptedException
Object.wait().InterruptedExceptionpublic static void clear(StringWriter sw)
StringWriter.public static String regexpReplace(String s, Pattern pattern, String replacement, int pos, int occurrence)
REGEXP_REPLACE function.
It is marked "unsafe" because it uses StringBuffer;
Versions of Matcher.appendReplacement(StringBuffer, String)
and Matcher.appendTail(StringBuffer)
that use StringBuilder are not available until JDK 9.
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.