diff options
Diffstat (limited to 'container-core/src/main/java/com/yahoo/processing/execution/Execution.java')
-rw-r--r-- | container-core/src/main/java/com/yahoo/processing/execution/Execution.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/container-core/src/main/java/com/yahoo/processing/execution/Execution.java b/container-core/src/main/java/com/yahoo/processing/execution/Execution.java index 158ec726722..f6a1149f056 100644 --- a/container-core/src/main/java/com/yahoo/processing/execution/Execution.java +++ b/container-core/src/main/java/com/yahoo/processing/execution/Execution.java @@ -393,7 +393,7 @@ public class Execution { /** * The name of the property to find */ - private String name; + private final String name; private Object foundValue = null; public PropertyValueVisitor(String name) { @@ -403,9 +403,8 @@ public class Execution { @Override public void visit(TraceNode node) { if (node.payload() == null) return; - if (!(node.payload() instanceof Pair)) return; + if (!(node.payload() instanceof Pair property)) return; - Pair property = (Pair) node.payload(); if (!property.getFirst().equals(name)) return; foundValue = property.getSecond(); } @@ -465,7 +464,7 @@ public class Execution { /** * The smallest trace level at which this information will be traced */ - private int value; + private final int value; Level(int value) { this.value = value; |