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

Method readRawOptions

src/main/java/pascal/taie/config/Options.java:376–383  ·  view source on GitHub ↗

Reads options from file. Note: the returned options have not been post-processed.

(File file)

Source from the content-addressed store, hash-verified

374 * Note: the returned options have not been post-processed.
375 */
376 private static Options readRawOptions(File file) {
377 ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
378 try {
379 return mapper.readValue(file, Options.class);
380 } catch (IOException e) {
381 throw new ConfigException("Failed to read options from " + file, e);
382 }
383 }
384
385 static int getCurrentJavaVersion() {
386 String version = System.getProperty("java.version");

Callers 1

postProcessMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected