OSDN Git Service

Track dropping of throws clause in Pattern.java.
authorTobias Thierer <tobiast@google.com>
Thu, 21 Jun 2018 15:59:18 +0000 (16:59 +0100)
committerTobias Thierer <tobiast@google.com>
Tue, 26 Jun 2018 13:48:48 +0000 (14:48 +0100)
This is not really an API change because PatternSyntaxException
is unchecked (extends RuntimeException). The behavior has not
changed (PatternSyntaxException can still be thrown).

Bug: 109659282
Test: Treehugger
Change-Id: I5759eee10b27307b68f15fdd6f6f1a258ee01529

api/current.txt

index 241117b..da5addc 100644 (file)
@@ -68724,7 +68724,7 @@ package java.util.regex {
   public final class Pattern implements java.io.Serializable {
     method public java.util.function.Predicate<java.lang.String> asPredicate();
     method public static java.util.regex.Pattern compile(java.lang.String);
-    method public static java.util.regex.Pattern compile(java.lang.String, int) throws java.util.regex.PatternSyntaxException;
+    method public static java.util.regex.Pattern compile(java.lang.String, int);
     method public int flags();
     method public java.util.regex.Matcher matcher(java.lang.CharSequence);
     method public static boolean matches(java.lang.String, java.lang.CharSequence);