Skip to content

Commit

Permalink
Code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
milux committed Nov 9, 2023
1 parent c25926e commit 837c5e2
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -781,9 +781,11 @@ class FSMImpl<CC : Idscp2Connection>(

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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)
}
)
}
}

0 comments on commit 837c5e2

Please sign in to comment.