Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit fd1ab53

Browse files
committed
Make the adapter variable final in the compliance tests
This is not strictly necessary, but the IDE was complaining
1 parent b673441 commit fd1ab53

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

jmespath-core/src/test/java/io/burt/jmespath/JmesPathRuntimeTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import static org.hamcrest.Matchers.containsString;
3232

3333
public abstract class JmesPathRuntimeTest<T> {
34-
private Adapter<T> runtime = createRuntime(RuntimeConfiguration.defaultConfiguration());
34+
private final Adapter<T> runtime = createRuntime(RuntimeConfiguration.defaultConfiguration());
3535

3636
protected T contact;
3737
protected T cloudtrail;

jmespath-core/src/test/java/io/burt/jmespath/jcf/JcfComplianceTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import io.burt.jmespath.Adapter;
55

66
public class JcfComplianceTest extends JmesPathComplianceTest<Object> {
7-
private Adapter<Object> runtime = new JcfRuntime();
7+
private final Adapter<Object> runtime = new JcfRuntime();
88

99
@Override
1010
protected Adapter<Object> runtime() { return runtime; }

jmespath-gson/src/test/java/io/burt/jmespath/gson/GsonComplianceTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import io.burt.jmespath.JmesPathComplianceTest;
66

77
public class GsonComplianceTest extends JmesPathComplianceTest<JsonElement> {
8-
private Adapter<JsonElement> runtime = new GsonRuntime();
8+
private final Adapter<JsonElement> runtime = new GsonRuntime();
99

1010
@Override
1111
protected Adapter<JsonElement> runtime() {

jmespath-jackson/src/test/java/io/burt/jmespath/jackson/JacksonComplianceTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import io.burt.jmespath.Adapter;
77

88
public class JacksonComplianceTest extends JmesPathComplianceTest<JsonNode> {
9-
private Adapter<JsonNode> runtime = new JacksonRuntime();
9+
private final Adapter<JsonNode> runtime = new JacksonRuntime();
1010

1111
@Override
1212
protected Adapter<JsonNode> runtime() { return runtime; }

jmespath-jakarta-jsonp/src/test/java/io/burt/jmespath/jakarta/jsonp/JsonpComplianceTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import javax.json.JsonValue;
77

88
public class JsonpComplianceTest extends JmesPathComplianceTest<JsonValue> {
9-
private Adapter<JsonValue> runtime = new JsonpRuntime();
9+
private final Adapter<JsonValue> runtime = new JsonpRuntime();
1010

1111
@Override
1212
protected Adapter<JsonValue> runtime() { return runtime; }

jmespath-vertx/src/test/java/io/burt/jmespath/vertx/VertxComplianceTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import io.burt.jmespath.Adapter;
55

66
public class VertxComplianceTest extends JmesPathComplianceTest<Object> {
7-
private Adapter<Object> runtime = new VertxRuntime();
7+
private final Adapter<Object> runtime = new VertxRuntime();
88

99
@Override
1010
protected Adapter<Object> runtime() { return runtime; }

0 commit comments

Comments
 (0)