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)
| 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 |
no test coverage detected