Skip to content

Commit

Permalink
Don't include private modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
joshafeinberg committed Nov 15, 2024
1 parent 1cb4ebf commit 343137d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import com.squareup.kotlinpoet.FunSpec
import com.squareup.kotlinpoet.KModifier
import com.squareup.kotlinpoet.KModifier.ABSTRACT
import com.squareup.kotlinpoet.KModifier.INTERNAL
import com.squareup.kotlinpoet.KModifier.PRIVATE
import com.squareup.kotlinpoet.KModifier.PROTECTED
import com.squareup.kotlinpoet.KModifier.PUBLIC
import com.squareup.kotlinpoet.ParameterSpec
Expand Down Expand Up @@ -223,7 +222,7 @@ internal class GenerateKotlinInjectComponentProcessor(
private fun KSClassDeclaration.getAccessModifier(): KModifier {
return when (getVisibility()) {
Visibility.PUBLIC -> PUBLIC
Visibility.PRIVATE -> PRIVATE
Visibility.PRIVATE -> error("Visibility cannot be private")
Visibility.INTERNAL -> INTERNAL
Visibility.LOCAL,
Visibility.JAVA_PACKAGE,
Expand Down

0 comments on commit 343137d

Please sign in to comment.