Skip to content

Commit

Permalink
Fix variance
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Feb 14, 2024
1 parent 629cdcd commit ff63261
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/kotlin/com/slack/eithernet/ApiResultTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ class ApiResultTest {
object UnitConverterFactory : Converter.Factory() {
override fun responseBodyConverter(
type: Type,
annotations: Array<out Annotation>,
annotations: Array<Annotation>,
retrofit: Retrofit,
): Converter<ResponseBody, *>? {
return if (getRawType(type) == Unit::class.java) {
Expand All @@ -344,8 +344,8 @@ class ApiResultTest {

override fun requestBodyConverter(
type: Type,
parameterAnnotations: Array<out Annotation>,
methodAnnotations: Array<out Annotation>,
parameterAnnotations: Array<Annotation>,
methodAnnotations: Array<Annotation>,
retrofit: Retrofit,
): Converter<*, RequestBody>? {
throw NotImplementedError("Test only")
Expand Down Expand Up @@ -373,7 +373,7 @@ class ApiResultTest {
@Suppress("ReturnCount")
override fun responseBodyConverter(
type: Type,
annotations: Array<out Annotation>,
annotations: Array<Annotation>,
retrofit: Retrofit,
): Converter<ResponseBody, *>? {
if (annotations.any { it is BadEndpoint }) {
Expand All @@ -387,8 +387,8 @@ class ApiResultTest {

override fun requestBodyConverter(
type: Type,
parameterAnnotations: Array<out Annotation>,
methodAnnotations: Array<out Annotation>,
parameterAnnotations: Array<Annotation>,
methodAnnotations: Array<Annotation>,
retrofit: Retrofit,
): Converter<*, RequestBody>? {
throw NotImplementedError("Test only")
Expand Down

0 comments on commit ff63261

Please sign in to comment.