mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
[jdk] Use @return tag in kdoc
IJ-CR-140587 GitOrigin-RevId: 3b8f73569e7afbdbffdf80005da1c5be870d1232
This commit is contained in:
committed by
intellij-monorepo-bot
parent
89adeb005a
commit
25ad74d2fe
@@ -19,22 +19,22 @@ interface ExternalJavaConfigurationProvider<T> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the configuration file supported by this provider.
|
||||
* @return the configuration file supported by this provider.
|
||||
*/
|
||||
fun getConfigurationFile(project: Project): File
|
||||
|
||||
/**
|
||||
* Returns the release data [T] corresponding to the [text] content of the configuration file.
|
||||
* @return the release data [T] corresponding to the [text] content of the configuration file.
|
||||
*/
|
||||
fun getReleaseData(text: String): T?
|
||||
|
||||
/**
|
||||
* Returns true if the release data matches the given SDK.
|
||||
* @return true if the release data matches the given SDK.
|
||||
*/
|
||||
fun matchAgainstSdk(releaseData: T, sdk: Sdk): Boolean
|
||||
|
||||
/**
|
||||
* Returns true if the release data matches the given path.
|
||||
* @return true if the release data matches the given path.
|
||||
*/
|
||||
fun matchAgainstPath(releaseData: T, path: String): Boolean
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ class ExternalJavaConfigurationService(val project: Project, private val scope:
|
||||
}
|
||||
|
||||
/**
|
||||
* Parses the configuration file and returns a candidate.
|
||||
* @return a JDK candidate based on the configuration file.
|
||||
*/
|
||||
suspend fun <T> getReleaseData(configProvider: ExternalJavaConfigurationProvider<T>): T? {
|
||||
val text = readAction {
|
||||
@@ -87,7 +87,7 @@ class ExternalJavaConfigurationService(val project: Project, private val scope:
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds a matching JDK candidate for the release data among registered and detected JDKs.
|
||||
* @return a matching JDK candidate for the release data among registered and detected JDKs.
|
||||
*/
|
||||
fun <T> findCandidate(releaseData: T, configProvider: ExternalJavaConfigurationProvider<T>): JdkCandidate<T>? {
|
||||
val fileName = configProvider.getConfigurationFile(project).name
|
||||
|
||||
Reference in New Issue
Block a user