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

Method update

src/main/java/pascal/taie/config/AnalysisOptions.java:74–83  ·  view source on GitHub ↗

Copies all the options from the specified AnalysisOptions to this AnalysisOptions. Only the given AnalysisOptions contain value for the key that already exists in this AnalysisOptions, then the old value can be overwritten, otherwise, exception will be thrown. @throws IllegalArgumentException if ex

(AnalysisOptions options)

Source from the content-addressed store, hash-verified

72 * not in this AnalysisOptions.
73 */
74 void update(AnalysisOptions options) {
75 for (String key : options.options.keySet()) {
76 if (!this.options.containsKey(key)) {
77 throw new IllegalArgumentException("Illegal key of option '"
78 + key + ":" + options.options.get(key) + "'"
79 + ", you should specify a key that exists in the configuration");
80 }
81 }
82 this.options.putAll(options.options);
83 }
84
85 /**
86 * @return {@code true} if this AnalysisOptions contains value

Callers 1

overwriteOptionsMethod · 0.45

Calls 4

keySetMethod · 0.65
containsKeyMethod · 0.65
getMethod · 0.65
putAllMethod · 0.65

Tested by

no test coverage detected