Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/java.base/share/classes/java/util/regex/Pattern.java
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,7 @@ public static Pattern compile(@Regex String regex, int flags) {
* @return The source of this pattern
*/
@Pure
public String pattern() {
public @PolyRegex String pattern(@PolyRegex Pattern this) {
return pattern;
}

Expand All @@ -1132,7 +1132,7 @@ public String pattern() {
* @since 1.5
*/
@Pure
public String toString(@GuardSatisfied Pattern this) {
public @PolyRegex String toString(@GuardSatisfied @PolyRegex Pattern this) {
return pattern;
}

Expand Down
Loading