mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
avoid constantly creating and deleting tmp directory for mappings delta when not needed
This commit is contained in:
@@ -87,7 +87,6 @@ public class Mappings {
|
||||
myInitName = myContext.get("<init>");
|
||||
myEmptyName = myContext.get("");
|
||||
myDebugS = base.myDebugS;
|
||||
myRootDir.mkdirs();
|
||||
createImplementation();
|
||||
}
|
||||
|
||||
@@ -120,6 +119,9 @@ public class Mappings {
|
||||
myClassToSourceFile = new IntIntTransientMaplet();
|
||||
}
|
||||
else {
|
||||
if (myIsDelta) {
|
||||
myRootDir.mkdirs();
|
||||
}
|
||||
myClassToSubclasses = new IntIntPersistentMultiMaplet(DependencyContext.getTableFile(myRootDir, CLASS_TO_SUBCLASSES), INT_KEY_DESCRIPTOR);
|
||||
myClassToClassDependency = new IntIntPersistentMultiMaplet(DependencyContext.getTableFile(myRootDir, CLASS_TO_CLASS), INT_KEY_DESCRIPTOR);
|
||||
mySourceFileToClasses = new IntObjectPersistentMultiMaplet<ClassRepr>(
|
||||
@@ -2186,7 +2188,9 @@ public class Mappings {
|
||||
}
|
||||
}
|
||||
else {
|
||||
FileUtil.delete(myRootDir);
|
||||
if (!myDeltaIsTransient) {
|
||||
FileUtil.delete(myRootDir);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user