From 77f896523f2065b1da1be21545155a29edea5122 Mon Sep 17 00:00:00 2001 From: Filip Krzywka Date: Tue, 27 Nov 2018 13:04:48 +0100 Subject: Bump checkstyle version - changed plugin invocation due to backwards incompatible changes made in detekt's RC9 version - disabled few rules that we actually don't follow in our code and we seem to be fine with it - turned on UnusedPrivateMember as it actually is a code smell/debt - supressed warnings in where it was plausible (according to common sense) - fixed warnings wherever possible Change-Id: I7be97f471ff46786ef1fca3432b759e7820ac681 Issue-ID: DCAEGEN2-996 Signed-off-by: Filip Krzywka --- .../org/onap/dcae/collectors/veshv/ssl/boundary/SslContextFactory.kt | 4 +++- .../dcae/collectors/veshv/ssl/boundary/ServerSslContextFactoryTest.kt | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'hv-collector-ssl') diff --git a/hv-collector-ssl/src/main/kotlin/org/onap/dcae/collectors/veshv/ssl/boundary/SslContextFactory.kt b/hv-collector-ssl/src/main/kotlin/org/onap/dcae/collectors/veshv/ssl/boundary/SslContextFactory.kt index 1fa20229..cad81eef 100644 --- a/hv-collector-ssl/src/main/kotlin/org/onap/dcae/collectors/veshv/ssl/boundary/SslContextFactory.kt +++ b/hv-collector-ssl/src/main/kotlin/org/onap/dcae/collectors/veshv/ssl/boundary/SslContextFactory.kt @@ -43,7 +43,9 @@ abstract class SslContextFactory { } } - protected open fun createSslContextWithConfiguredCerts(secConfig: SecurityConfiguration): Option = + protected open fun createSslContextWithConfiguredCerts( + secConfig: SecurityConfiguration + ): Option = secConfig.keys.map { keys -> when (keys) { is JdkKeys -> jdkContext(keys) diff --git a/hv-collector-ssl/src/test/kotlin/org/onap/dcae/collectors/veshv/ssl/boundary/ServerSslContextFactoryTest.kt b/hv-collector-ssl/src/test/kotlin/org/onap/dcae/collectors/veshv/ssl/boundary/ServerSslContextFactoryTest.kt index b4d72353..7e0bc609 100644 --- a/hv-collector-ssl/src/test/kotlin/org/onap/dcae/collectors/veshv/ssl/boundary/ServerSslContextFactoryTest.kt +++ b/hv-collector-ssl/src/test/kotlin/org/onap/dcae/collectors/veshv/ssl/boundary/ServerSslContextFactoryTest.kt @@ -19,9 +19,6 @@ */ package org.onap.dcae.collectors.veshv.ssl.boundary -import arrow.core.Left -import arrow.core.Option -import arrow.core.Right import arrow.core.Some import arrow.core.toOption import io.netty.handler.ssl.ClientAuth -- cgit 1.2.3-korg