Add replace to MapMutator

This commit is contained in:
Ed Minnix
2023-12-15 15:22:31 -05:00
parent 4009b42891
commit ce130c6ed5

View File

@@ -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`. */