mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
test fix
This commit is contained in:
+4
-2
@@ -47,8 +47,10 @@ public class MagicConstantInspectionTest extends InspectionTestCase {
|
||||
Sdk sdk = super.getTestProjectSdk();
|
||||
SdkModificator sdkModificator = sdk.getSdkModificator();
|
||||
VirtualFile root = LocalFileSystem.getInstance().findFileByPath(PathManager.getHomePath() + "/jdkAnnotations");
|
||||
sdkModificator.addRoot(root, AnnotationOrderRootType.getInstance());
|
||||
sdkModificator.commitChanges();
|
||||
if (root != null) {
|
||||
sdkModificator.addRoot(root, AnnotationOrderRootType.getInstance());
|
||||
sdkModificator.commitChanges();
|
||||
}
|
||||
|
||||
return sdk;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user