Skip to content

Commit 423f54d

Browse files
committed
GH-1097 - Upgrade to ArchUnit 1.4.
1 parent f0016c8 commit 423f54d

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
<properties>
3737

38-
<archunit.version>1.3.0</archunit.version>
38+
<archunit.version>1.4.0</archunit.version>
3939
<artifactory-maven-plugin.version>3.6.2</artifactory-maven-plugin.version>
4040
<flapdoodle-mongodb.version>4.16.1</flapdoodle-mongodb.version>
4141
<jgit.version>7.0.0.202409031743-r</jgit.version>

spring-modulith-observability/src/main/java/org/springframework/modulith/observability/support/ModuleEventListener.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public void onApplicationEvent(ApplicationEvent event) {
7474
return;
7575
}
7676

77-
var object = payloadEvent.getPayload();
78-
var payloadType = object.getClass();
77+
var payload = payloadEvent.getPayload();
78+
var payloadType = payload.getClass();
7979

8080
if (!runtime.isApplicationClass(payloadType)) {
8181
return;
@@ -98,7 +98,7 @@ public void onApplicationEvent(ApplicationEvent event) {
9898
.tags(ModulithMetrics.LowKeys.MODULE_NAME.name().toLowerCase(), moduleByType.getDisplayName()) //
9999
.register(registry).increment();
100100

101-
factory.createCounterBuilder(event).register(registry).increment();
101+
factory.createCounterBuilder(payload).register(registry).increment();
102102
}
103103

104104
var observation = observationRegistry.get().getCurrentObservation();
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright 2025 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package org.springframework.modulith.observability.support;
17+
18+
/**
19+
*
20+
* @author Oliver Drotbohm
21+
*/
22+
public class ModuleEventListenerUnitTests {
23+
24+
}

0 commit comments

Comments
 (0)