MCPcopy Create free account
hub / github.com/LFYSec/MScan / update

Method update

src/main/java/pascal/taie/analysis/dataflow/fact/MapFact.java:68–70  ·  view source on GitHub ↗

Updates the key-value mapping in this fact. @return if the update changes this fact.

(K key, V value)

Source from the content-addressed store, hash-verified

66 * @return if the update changes this fact.
67 */
68 public boolean update(K key, V value) {
69 return !Objects.equals(map.put(key, value), value);
70 }
71
72 /**
73 * Removes the key-value mapping for given key.

Callers 2

copyFromMethod · 0.95
visitMethod · 0.45

Calls 2

putMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected