Skip to content

Commit

Permalink
fix url
Browse files Browse the repository at this point in the history
  • Loading branch information
arpita184 committed Sep 21, 2023
1 parent 1de3ef7 commit 78d6ae6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class FeatureFlagExtractor {
* @param element The enum entry to check.
* @return true if the enum entry is a feature flag, false otherwise.
*/
fun hasFeatureFlagAnnotation(element: Any): Boolean {
private fun hasFeatureFlagAnnotation(element: Any): Boolean {
val annotationEntriesMethod = element.javaClass.getMethod("getAnnotationEntries")
val annotationEntries = annotationEntriesMethod.invoke(element) as? List<*>
return annotationEntries?.any {
Expand All @@ -95,7 +95,7 @@ class FeatureFlagExtractor {
?: false
}

fun isKtEnumEntry(element: Any): Boolean {
private fun isKtEnumEntry(element: Any): Boolean {
LOG.info("Checking if element is KtEnumEntry")
val result = element.javaClass.name == "org.jetbrains.kotlin.psi.KtEnumEntry"
LOG.info("Element isKtEnumEntry: $result")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class FeatureFlagAnnotator : ExternalAnnotator<PsiFile, List<FeatureFlagSymbol>>
findTextRangeForFlag(psiFile, flag)
}
if (textRange != null) {
val url = "$baseUrl?q=$flag"
val url = "$baseUrl?q=${flag.lowercase()}"
FeatureFlagSymbol(textRange, url)
} else {
null
Expand Down

0 comments on commit 78d6ae6

Please sign in to comment.