From 5bdf550317f72b47e3b754c54297466ce568dda0 Mon Sep 17 00:00:00 2001 From: Owen Mansel-Chan Date: Thu, 12 Feb 2026 16:32:06 +0000 Subject: [PATCH] Fix QLDocs --- java/ql/lib/semmle/code/java/Concepts.qll | 2 +- java/ql/lib/semmle/code/java/frameworks/Regex.qll | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java/ql/lib/semmle/code/java/Concepts.qll b/java/ql/lib/semmle/code/java/Concepts.qll index eceb77d62ac..327c9a2c459 100644 --- a/java/ql/lib/semmle/code/java/Concepts.qll +++ b/java/ql/lib/semmle/code/java/Concepts.qll @@ -77,7 +77,7 @@ module RegexExecutionExpr { /** Gets the expression for the regex being executed by this node. */ abstract Expr getRegex(); - /** Gets a expression for the string to be searched or matched against. */ + /** Gets an expression for the string to be searched or matched against. */ abstract Expr getString(); /** diff --git a/java/ql/lib/semmle/code/java/frameworks/Regex.qll b/java/ql/lib/semmle/code/java/frameworks/Regex.qll index 28b7dd6a31a..2578b4d24db 100644 --- a/java/ql/lib/semmle/code/java/frameworks/Regex.qll +++ b/java/ql/lib/semmle/code/java/frameworks/Regex.qll @@ -71,17 +71,17 @@ class PatternLiteralField extends Field { } } -/** A call to the `compile` method of `java.util.regex.Pattern` */ +/** A call to the `compile` method of `java.util.regex.Pattern`. */ class PatternCompileCall extends MethodCall { PatternCompileCall() { this.getMethod() instanceof PatternCompileMethod } } -/** A call to the `matcher` method of `java.util.regex.Pattern` */ +/** A call to the `matcher` method of `java.util.regex.Pattern`. */ class PatternMatcherCall extends MethodCall { PatternMatcherCall() { this.getMethod() instanceof PatternMatcherMethod } } -/** A call to the `matches` method of `java.util.regex.Pattern` */ +/** A call to the `matches` method of `java.util.regex.Pattern`. */ class PatternMatchesCall extends MethodCall, RegexExecutionExpr::Range { PatternMatchesCall() { this.getMethod() instanceof PatternMatchesMethod } @@ -92,7 +92,7 @@ class PatternMatchesCall extends MethodCall, RegexExecutionExpr::Range { override string getName() { result = "Pattern.matches" } } -/** A call to the `matches` method of `java.util.regex.Matcher` */ +/** A call to the `matches` method of `java.util.regex.Matcher`. */ class MatcherMatchesCall extends MethodCall, RegexExecutionExpr::Range { MatcherMatchesCall() { this.getMethod() instanceof MatcherMatchesMethod }