From 2312848efc8972d443d3fcf93941d4ea47537f40 Mon Sep 17 00:00:00 2001 From: Ben Gruver Date: Tue, 20 Jan 2015 19:01:39 -0800 Subject: [PATCH] Make ClassFileNameHandler thread-safe --- .../util/src/main/java/org/jf/util/ClassFileNameHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brut.apktool.smali/util/src/main/java/org/jf/util/ClassFileNameHandler.java b/brut.apktool.smali/util/src/main/java/org/jf/util/ClassFileNameHandler.java index d67836d9..67037817 100644 --- a/brut.apktool.smali/util/src/main/java/org/jf/util/ClassFileNameHandler.java +++ b/brut.apktool.smali/util/src/main/java/org/jf/util/ClassFileNameHandler.java @@ -323,7 +323,7 @@ public class ClassFileNameHandler { super(parent, logicalName); } - public FileSystemEntry addChild(FileSystemEntry entry) { + public synchronized FileSystemEntry addChild(FileSystemEntry entry) { String normalizedChildName = entry.getNormalizedName(false); Collection entries = children.get(normalizedChildName); if (entry instanceof DirectoryEntry) {