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

Method main

src/test/resources/pta/misc/TestMap.java:8–18  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

6class TestMap {
7
8 public static void main(String[] args) {
9 Map<String, Object> m = new HashMap<String, Object>();
10 m.put("string", new String("new String()"));
11 m.put("class", TestMap.class);
12 System.out.println(getMap(m, "string"));
13
14 ConcurrentMap<String, Object> cm = new ConcurrentHashMap<String, Object>();
15 cm.put("object", new Object());
16 cm.put("testmap", new TestMap());
17 System.out.println(getConcurrentMap(cm, "object"));
18 }
19
20 static Object getMap(Map<String, Object> m, String key) {
21 return m.get(key);

Callers

nothing calls this directly

Calls 3

getMapMethod · 0.95
getConcurrentMapMethod · 0.95
putMethod · 0.65

Tested by

no test coverage detected