MCPcopy
hub / github.com/Col-E/Recaf / put

Method put

src/main/java/me/coley/recaf/command/impl/Export.java:192–201  ·  view source on GitHub ↗
(Map<String, byte[]> content, JavaResource res)

Source from the content-addressed store, hash-verified

190 }
191
192 private void put(Map<String, byte[]> content, JavaResource res) {
193 content.putAll(res.getFiles());
194 for(Map.Entry<String, byte[]> e : copySet(res.getClasses().entrySet())) {
195 String name = e.getKey() + ".class";
196 // War files have a required prefix
197 if(res instanceof WarResource)
198 name = WarResource.WAR_CLASS_PREFIX + name;
199 content.put(name, e.getValue());
200 }
201 }
202}

Callers 10

callMethod · 0.95
registerMethod · 0.45
openMethod · 0.45
registerMethod · 0.45
registerHandlerMethod · 0.45
addUnitMethod · 0.45
getJavaFileForOutputMethod · 0.45
callMethod · 0.45
callMethod · 0.45
initializeMethod · 0.45

Calls 7

putAllMethod · 0.80
copySetMethod · 0.80
entrySetMethod · 0.80
getKeyMethod · 0.80
getFilesMethod · 0.45
getClassesMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected