This commit is contained in:
Alexey Kudravtsev
2012-01-17 12:34:11 +04:00
parent 48cd75461e
commit a0d5486a92
@@ -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;
}