diff --git a/idscp2-core/src/main/kotlin/de/fhg/aisec/ids/idscp2/core/KtIterable.kt b/idscp2-core/src/main/kotlin/de/fhg/aisec/ids/idscp2/core/KtIterable.kt index fa44b72..7026479 100644 --- a/idscp2-core/src/main/kotlin/de/fhg/aisec/ids/idscp2/core/KtIterable.kt +++ b/idscp2-core/src/main/kotlin/de/fhg/aisec/ids/idscp2/core/KtIterable.kt @@ -1,3 +1,22 @@ +/*- + * ========================LICENSE_START================================= + * idscp2-core + * %% + * Copyright (C) 2023 Fraunhofer AISEC + * %% + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * =========================LICENSE_END================================== + */ package de.fhg.aisec.ids.idscp2.core import org.slf4j.Logger diff --git a/idscp2-core/src/main/kotlin/de/fhg/aisec/ids/idscp2/core/fsm/FSMImpl.kt b/idscp2-core/src/main/kotlin/de/fhg/aisec/ids/idscp2/core/fsm/FSMImpl.kt index 7ae8ed6..aa6273f 100644 --- a/idscp2-core/src/main/kotlin/de/fhg/aisec/ids/idscp2/core/fsm/FSMImpl.kt +++ b/idscp2-core/src/main/kotlin/de/fhg/aisec/ids/idscp2/core/fsm/FSMImpl.kt @@ -781,9 +781,11 @@ class FSMImpl( companion object { private val LOG = LoggerFactory.getLogger(FSM::class.java) - private val ioScope = CoroutineScope(Dispatchers.IO + CoroutineExceptionHandler { _, throwable -> - LOG.error("Error in async FSM code", throwable) - }) + private val ioScope = CoroutineScope( + Dispatchers.IO + CoroutineExceptionHandler { _, throwable -> + LOG.error("Error in async FSM code", throwable) + } + ) } init { diff --git a/idscp2-core/src/main/kotlin/de/fhg/aisec/ids/idscp2/core/fsm/RaState.kt b/idscp2-core/src/main/kotlin/de/fhg/aisec/ids/idscp2/core/fsm/RaState.kt index f34febc..00b0349 100644 --- a/idscp2-core/src/main/kotlin/de/fhg/aisec/ids/idscp2/core/fsm/RaState.kt +++ b/idscp2-core/src/main/kotlin/de/fhg/aisec/ids/idscp2/core/fsm/RaState.kt @@ -1,3 +1,22 @@ +/*- + * ========================LICENSE_START================================= + * idscp2-core + * %% + * Copyright (C) 2023 Fraunhofer AISEC + * %% + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * =========================LICENSE_END================================== + */ package de.fhg.aisec.ids.idscp2.core.fsm import de.fhg.aisec.ids.idscp2.api.fsm.State @@ -15,8 +34,10 @@ open class RaState : State() { } companion object { private val LOG = LoggerFactory.getLogger(RaState::class.java) - private val ioScope = CoroutineScope(Dispatchers.IO + CoroutineExceptionHandler { _, throwable -> - LOG.error("Error in async RA code", throwable) - }) + private val ioScope = CoroutineScope( + Dispatchers.IO + CoroutineExceptionHandler { _, throwable -> + LOG.error("Error in async RA code", throwable) + } + ) } }