Skip to content

Commit

Permalink
use listOf instead Arrays.asList
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Hibbe <[email protected]>
  • Loading branch information
mahibi committed Oct 28, 2022
1 parent c18bafe commit 8dd6fe1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ import java.io.File
import java.io.IOException
import java.io.RandomAccessFile
import java.nio.channels.FileChannel
import java.util.Arrays
import java.util.Locale

@AutoInjector(NextcloudTalkApplication::class)
Expand Down Expand Up @@ -292,7 +291,7 @@ class ChunkedFileUploader(
okHttpClientBuilder.followRedirects(false)
okHttpClientBuilder.followSslRedirects(false)
// okHttpClientBuilder.readTimeout(Duration.ofMinutes(30)) // TODO set timeout
okHttpClientBuilder.protocols(Arrays.asList(Protocol.HTTP_1_1))
okHttpClientBuilder.protocols(listOf(Protocol.HTTP_1_1))
okHttpClientBuilder.authenticator(
RestModule.MagicAuthenticator(
ApiUtils.getCredentials(
Expand Down

0 comments on commit 8dd6fe1

Please sign in to comment.