Skip to content

Commit

Permalink
Merge pull request #4867 from sjudd:fix_unused_parameter
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 468032985
  • Loading branch information
glide-copybara-robot committed Aug 16, 2022
2 parents c38ce36 + 71c1fcf commit 24e4b0f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ internal class AppGlideModuleGenerator(private val appGlideModuleData: AppGlideM
if (!data.constructor.hasContext) {
contextParameterBuilder.addAnnotation(
AnnotationSpec.builder(ClassName("kotlin", "Suppress"))
.addMember("%S", "UNUSED_VARIABLE")
.addMember("%S", "UNUSED_PARAMETER")
.build()
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ import kotlin.Suppress
import kotlin.Unit
internal class GeneratedAppGlideModuleImpl(
@Suppress("UNUSED_VARIABLE")
@Suppress("UNUSED_PARAMETER")
context: Context,
) : GeneratedAppGlideModule() {
private val appGlideModule: AppModule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ import kotlin.Suppress
import kotlin.Unit
internal class GeneratedAppGlideModuleImpl(
@Suppress("UNUSED_VARIABLE")
@Suppress("UNUSED_PARAMETER")
context: Context,
) : GeneratedAppGlideModule() {
private val appGlideModule: AppModule
Expand Down Expand Up @@ -652,7 +652,7 @@ import kotlin.Suppress
import kotlin.Unit
internal class GeneratedAppGlideModuleImpl(
@Suppress("UNUSED_VARIABLE")
@Suppress("UNUSED_PARAMETER")
context: Context,
) : GeneratedAppGlideModule() {
private val appGlideModule: AppModule
Expand Down Expand Up @@ -691,7 +691,7 @@ import kotlin.Suppress
import kotlin.Unit
internal class GeneratedAppGlideModuleImpl(
@Suppress("UNUSED_VARIABLE")
@Suppress("UNUSED_PARAMETER")
context: Context,
) : GeneratedAppGlideModule() {
private val appGlideModule: AppModule
Expand Down

0 comments on commit 24e4b0f

Please sign in to comment.