mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 18:27:49 +08:00
edit the type of projectSDK (#39)
It should be `Sdk` rather than `String`
This commit is contained in:
parent
8cb9531de1
commit
50f5b3ddc8
@ -9,7 +9,7 @@ Every project uses a Software Development Kit (SDK). For Java projects, the SDK
|
||||
Main information about the project SDK can be accessed via [ProjectRootManager.java](upsource:///platform/projectModel-api/src/com/intellij/openapi/roots/ProjectRootManager.java) like the following example shows
|
||||
|
||||
```java
|
||||
String projectSdk = ProjectRootManager.getInstance(project).getProjectSdk();
|
||||
Sdk projectSdk = ProjectRootManager.getInstance(project).getProjectSdk();
|
||||
```
|
||||
|
||||
## Getting and setting project SDK attributes
|
||||
|
Loading…
x
Reference in New Issue
Block a user