aboutsummaryrefslogtreecommitdiff
path: root/android/guava/src/com/google/common/base/PatternCompiler.java
diff options
context:
space:
mode:
Diffstat (limited to 'android/guava/src/com/google/common/base/PatternCompiler.java')
-rw-r--r--android/guava/src/com/google/common/base/PatternCompiler.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/android/guava/src/com/google/common/base/PatternCompiler.java b/android/guava/src/com/google/common/base/PatternCompiler.java
index 6a7b620b2..32505217f 100644
--- a/android/guava/src/com/google/common/base/PatternCompiler.java
+++ b/android/guava/src/com/google/common/base/PatternCompiler.java
@@ -16,6 +16,7 @@ package com.google.common.base;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.annotations.J2ktIncompatible;
+import com.google.errorprone.annotations.RestrictedApi;
/**
* Pluggable interface for compiling a regex pattern. By default this package uses the {@code
@@ -31,11 +32,17 @@ interface PatternCompiler {
*
* @throws IllegalArgumentException if the pattern is invalid
*/
+ @RestrictedApi(
+ explanation = "PatternCompiler is an implementation detail of com.google.common.base",
+ allowedOnPath = ".*/com/google/common/base/.*")
CommonPattern compile(String pattern);
/**
* Returns {@code true} if the regex implementation behaves like Perl -- notably, by supporting
* possessive quantifiers but also being susceptible to catastrophic backtracking.
*/
+ @RestrictedApi(
+ explanation = "PatternCompiler is an implementation detail of com.google.common.base",
+ allowedOnPath = ".*/com/google/common/base/.*")
boolean isPcreLike();
}