mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ProjectJdkTableImpl: save to disk only serializable SDKs, do not touch MockSdk used in tests
In new project model all SDKs must be registered in SDK table to properly resolve them, so MockSdks are now registered in ProjectJdkTable, which causes errors on occasional serialization in tests GitOrigin-RevId: 9d200a0446581e89f96b01206ed8d844425c3121
This commit is contained in:
committed by
intellij-monorepo-bot
parent
33483e480f
commit
5ab99cafde
+5
-3
@@ -249,9 +249,11 @@ public class ProjectJdkTableImpl extends ProjectJdkTable implements ExportableCo
|
||||
public Element getState() {
|
||||
Element element = new Element("state");
|
||||
for (Sdk jdk : mySdks) {
|
||||
Element e = new Element(ELEMENT_JDK);
|
||||
((ProjectJdkImpl)jdk).writeExternal(e);
|
||||
element.addContent(e);
|
||||
if (jdk instanceof ProjectJdkImpl) {
|
||||
Element e = new Element(ELEMENT_JDK);
|
||||
((ProjectJdkImpl)jdk).writeExternal(e);
|
||||
element.addContent(e);
|
||||
}
|
||||
}
|
||||
return element;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user