Fix name overloading confusion.

references to entries below were using the wrong instance and thus not being cleaned properly.
This commit is contained in:
Tyler Benson 2017-10-13 14:08:03 +02:00
parent 7f8b81457e
commit af5ef5e624
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@ public class ClassLoaderIntegrationInjector {
private final Map<ZipEntry, byte[]> entries;
private final Map<ClassLoader, Method> invocationPoints = Maps.newConcurrentMap();
public ClassLoaderIntegrationInjector(final Map<ZipEntry, byte[]> entries) {
this.entries = Maps.newHashMap(entries);
public ClassLoaderIntegrationInjector(final Map<ZipEntry, byte[]> allEntries) {
this.entries = Maps.newHashMap(allEntries);
for (final Iterator<Map.Entry<ZipEntry, byte[]>> it = entries.entrySet().iterator();
it.hasNext();
) {