mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Add replace to MapMutator
This commit is contained in:
@@ -40,7 +40,9 @@ class MapMethod extends Method {
|
||||
|
||||
/** A method that mutates the map it belongs to. */
|
||||
class MapMutator extends MapMethod {
|
||||
MapMutator() { pragma[only_bind_into](this).getName().regexpMatch("(put.*|remove|clear)") }
|
||||
MapMutator() {
|
||||
pragma[only_bind_into](this).getName().regexpMatch("(put.*|remove|clear|replace.*)")
|
||||
}
|
||||
}
|
||||
|
||||
/** The `size` method of `java.util.Map`. */
|
||||
|
||||
Reference in New Issue
Block a user