Skip to content

Commit 10dc703

Browse files
Vincent Potucekgsmet
authored andcommitted
bump spotless-maven-plugin to 2.44.4
1 parent 3e79c78 commit 10dc703

File tree

8 files changed

+18
-13
lines changed

8 files changed

+18
-13
lines changed

build-parent/pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,11 @@
677677
<artifactId>smallrye-certificate-generator-maven-plugin</artifactId>
678678
<version>${smallrye-certificate-generator.version}</version>
679679
</plugin>
680+
<plugin>
681+
<groupId>com.diffplug.spotless</groupId>
682+
<artifactId>spotless-maven-plugin</artifactId>
683+
<version>2.44.4</version>
684+
</plugin>
680685
</plugins>
681686
</pluginManagement>
682687
</build>
@@ -779,7 +784,6 @@
779784
<plugin>
780785
<groupId>com.diffplug.spotless</groupId>
781786
<artifactId>spotless-maven-plugin</artifactId>
782-
<version>2.35.0</version>
783787
<executions>
784788
<execution>
785789
<id>format-kotlin</id>

extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/runtime/KotlinJpaOperations.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class KotlinJpaOperations : AbstractJpaOperations<PanacheQueryImpl<*>>() {
99
hqlQuery: String,
1010
originalQuery: String?,
1111
orderBy: String?,
12-
paramsArrayOrMap: Any?
12+
paramsArrayOrMap: Any?,
1313
) = PanacheQueryImpl<Any>(session, hqlQuery, originalQuery, orderBy, paramsArrayOrMap)
1414

1515
override fun list(query: PanacheQueryImpl<*>) = query.list()

extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/runtime/PanacheQueryImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class PanacheQueryImpl<Entity : Any> : PanacheQuery<Entity> {
1616
hqlQuery: String?,
1717
originalQuery: String?,
1818
orderBy: String?,
19-
paramsArrayOrMap: Any?
19+
paramsArrayOrMap: Any?,
2020
) {
2121
delegate =
2222
CommonPanacheQueryImpl(session, hqlQuery, originalQuery, orderBy, paramsArrayOrMap)

extensions/panache/hibernate-orm-panache-kotlin/runtime/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/runtime/TestAnalogs.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class TestAnalogs {
3636
compare(
3737
map(JavaPanacheRepository::class),
3838
map(PanacheRepository::class),
39-
listOf("findByIdOptional")
39+
listOf("findByIdOptional"),
4040
)
4141
}
4242

@@ -71,7 +71,7 @@ class TestAnalogs {
7171
assertTrue(kotlinMethods.isEmpty(), "Old methods not removed: \n${kotlinMethods.byLine()}")
7272
assertTrue(
7373
companionMethods.isEmpty(),
74-
"Old methods not removed: \n${companionMethods.byLine()}"
74+
"Old methods not removed: \n${companionMethods.byLine()}",
7575
)
7676
}
7777

@@ -87,7 +87,7 @@ class TestAnalogs {
8787
private fun compare(
8888
javaClass: AnalogVisitor,
8989
kotlinClass: AnalogVisitor,
90-
allowList: List<String> = listOf()
90+
allowList: List<String> = listOf(),
9191
) {
9292
val javaMethods = javaClass.methods
9393
val kotlinMethods = kotlinClass.methods
@@ -125,12 +125,13 @@ private fun <E> List<E>.byLine(): String {
125125

126126
class AnalogVisitor(val erasedType: ByteCodeType? = null) : ClassVisitor(Gizmo.ASM_API_VERSION) {
127127
val methods = mutableListOf<Method>()
128+
128129
override fun visitMethod(
129130
access: Int,
130131
name: String,
131132
descriptor: String,
132133
signature: String?,
133-
exceptions: Array<out String>?
134+
exceptions: Array<out String>?,
134135
): MethodVisitor? {
135136
if (name != "<init>") {
136137
val type = descriptor.substringAfterLast(")").trim()

extensions/resteasy-reactive/rest-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/AbstractSuspendedRequestFilter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ abstract class AbstractSuspendedRequestFilter : ResteasyReactiveContainerRequest
2121

2222
abstract fun handleResult(
2323
containerRequestContext: ResteasyReactiveContainerRequestContext,
24-
uniResult: Uni<*>
24+
uniResult: Uni<*>,
2525
)
2626

2727
private val originalTCCL: ClassLoader = Thread.currentThread().contextClassLoader

extensions/resteasy-reactive/rest-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/AbstractSuspendedResponseFilter.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ abstract class AbstractSuspendedResponseFilter : ResteasyReactiveContainerRespon
1616

1717
abstract suspend fun doFilter(
1818
requestContext: ResteasyReactiveContainerRequestContext,
19-
responseContext: ContainerResponseContext
19+
responseContext: ContainerResponseContext,
2020
): Any
2121

2222
private val originalTCCL: ClassLoader = Thread.currentThread().contextClassLoader
2323

2424
override fun filter(
2525
requestContext: ResteasyReactiveContainerRequestContext,
26-
responseContext: ContainerResponseContext
26+
responseContext: ContainerResponseContext,
2727
) {
2828
val (dispatcher, coroutineScope) =
2929
prepareExecution(requestContext.serverRequestContext as ResteasyReactiveRequestContext)

extensions/resteasy-reactive/rest-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/ApplicationCoroutineScope.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ApplicationCoroutineScope : CoroutineScope, AutoCloseable {
3434
class VertxDispatcher(
3535
private val vertxContext: Context,
3636
private val requestScope: ThreadSetupAction.ThreadState,
37-
private val rrContext: ResteasyReactiveRequestContext
37+
private val rrContext: ResteasyReactiveRequestContext,
3838
) : CoroutineDispatcher() {
3939
override fun dispatch(context: CoroutineContext, block: Runnable) {
4040
// context propagation for suspending functions is not enabled yet, will be handled later

extensions/resteasy-reactive/rest-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/CoroutineInvocationHandler.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ private val logger = LoggerFactory.getLogger(CoroutineInvocationHandler::class.j
1414

1515
class CoroutineInvocationHandler(
1616
private val invoker: EndpointInvoker,
17-
private val coroutineScope: CoroutineScope
17+
private val coroutineScope: CoroutineScope,
1818
) : ServerRestHandler {
1919

2020
private val originalTCCL: ClassLoader = Thread.currentThread().contextClassLoader
@@ -47,7 +47,7 @@ class CoroutineInvocationHandler(
4747
val result =
4848
invoker.invokeCoroutine(
4949
requestContext.endpointInstance,
50-
requestContext.parameters
50+
requestContext.parameters,
5151
)
5252
done.set(true)
5353
if (result != Unit) {

0 commit comments

Comments
 (0)