Skip to content

Commit

Permalink
Update to surefire 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kifj committed Jun 15, 2024
1 parent 8609ed1 commit efa32ad
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@
</goals>
<configuration>
<outputDirectory>${basedir}/target/generated-sources/java-templates</outputDirectory>
<overwrite>true</overwrite>
<resources>
<resource>
<directory>src/main/java-templates</directory>
Expand Down Expand Up @@ -547,7 +548,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
<version>3.3.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -606,7 +607,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>3.2.5</version>
<version>3.3.0</version>
<reportSets>
<reportSet>
<reports>
Expand Down
12 changes: 5 additions & 7 deletions src/main/java/x1/stomp/model/JaxbSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.Map.Entry;

import javax.xml.namespace.QName;

Expand Down Expand Up @@ -96,19 +95,18 @@ public static class JaxbAdapter extends XmlAdapter<JaxbLink, Link> {

@Override
public Link unmarshal(final JaxbLink v) {
Link.Builder lb = Link.fromUri(v.getUri());
for (Entry<QName, Object> e : v.getParams().entrySet()) {
var lb = Link.fromUri(v.getUri());
for (var e : v.getParams().entrySet()) {
lb.param(e.getKey().getLocalPart(), e.getValue().toString());
}
return lb.build();
}

@Override
public JaxbLink marshal(final Link v) {
JaxbLink jl = new JaxbLink(v.getUri());
for (Entry<String, String> e : v.getParams().entrySet()) {
final String name = e.getKey();
jl.getParams().put(new QName("", name), e.getValue());
var jl = new JaxbLink(v.getUri());
for (var e : v.getParams().entrySet()) {
jl.getParams().put(new QName("", e.getKey()), e.getValue());
}
return jl;
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/x1/stomp/util/MeteredInterceptor.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public class MeteredInterceptor {

@AroundInvoke
public Object meter(InvocationContext ctx) throws Exception {
Class<?> type = ctx.getMethod().getDeclaringClass();
String method = ctx.getMethod().getName();
var type = ctx.getMethod().getDeclaringClass();
var method = ctx.getMethod().getName();

var timed = timed(ctx);
var counted = counted(ctx);
Expand Down

0 comments on commit efa32ad

Please sign in to comment.