Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Firebasky/Java
/ parse
Method
parse
SnakeYaml/src/main/java/trick/SnakeYaml.java:28–34 ·
view source on GitHub ↗
(String data,Class clazz)
Source
from the content-addressed store, hash-verified
26
}
27
28
public
static
Object parse(String data,Class clazz){
29
if
(data.indexOf(
"!!"
)!=-1){
30
throw
new
RuntimeException(
"error"
);
31
}
32
Yaml yaml =
new
Yaml();
33
return
yaml.loadAs(data,clazz);
34
}
35
}
Callers
1
main
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected