sdk.md: Make extension classes non-public and final

This commit is contained in:
Karol Lewandowski 2023-10-26 15:32:24 +02:00
parent 189ec31a05
commit 02ee9f26fa

View File

@ -85,7 +85,7 @@ Use `com.intellij.projectSdkSetupValidator` extension point to register an imple
The following is a simplified example that checks whether an instance of "DemoSdk" has been configured in the project when the user opens a "DemoFileType": The following is a simplified example that checks whether an instance of "DemoSdk" has been configured in the project when the user opens a "DemoFileType":
```kotlin ```kotlin
class DemoProjectSdkSetupValidator : ProjectSdkSetupValidator { internal class DemoProjectSdkSetupValidator : ProjectSdkSetupValidator {
override fun isApplicableFor(project: Project, file: VirtualFile): Boolean { override fun isApplicableFor(project: Project, file: VirtualFile): Boolean {
return file.fileType == DemoFileType return file.fileType == DemoFileType
} }