Skip to content

Commit 1a1c744

Browse files
committed
updating comments
1 parent c554374 commit 1a1c744

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buildSrc/src/main/kotlin/datadog/gradle/plugin/config/ParseV2SupportedConfigurationsTask.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ abstract class ParseV2SupportedConfigurationsTask @Inject constructor(
4949
@Suppress("UNCHECKED_CAST")
5050
val deprecated = (fileData["deprecations"] as? Map<String, String>) ?: emptyMap()
5151

52-
// Generate alias map and reverse alias mapping
52+
// Parse supportedConfigurations key to into a V2 format
5353
val supported: Map<String, List<SupportedConfiguration>> = supportedRaw.mapValues { (_, configList) ->
5454
configList.map { configMap ->
5555
SupportedConfiguration(
@@ -62,7 +62,7 @@ abstract class ParseV2SupportedConfigurationsTask @Inject constructor(
6262
}
6363
}
6464

65-
// Top-level mapping from config -> list of aliases.
65+
// Generate top-level mapping from config -> list of aliases and reverse alias mapping from alias -> top-level config
6666
// Note: This top-level alias mapping will be deprecated once Config Registry is mature enough to understand which version of a config a customer is using
6767
val aliases: Map<String, List<String>> = supported.mapValues { (_, configList) ->
6868
configList.flatMap { it.aliases }.distinct()

0 commit comments

Comments
 (0)