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 }