From 0389480e3365f58b3017894aaf46506d6b1efc8e Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Tue, 7 Mar 2023 12:50:56 -0800 Subject: [PATCH] Minor clean up --- .../jackson/dataformat/javaprop/io/JPropReadContext.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/properties/src/main/java/com/fasterxml/jackson/dataformat/javaprop/io/JPropReadContext.java b/properties/src/main/java/com/fasterxml/jackson/dataformat/javaprop/io/JPropReadContext.java index f1131d01..5aa0cf9e 100644 --- a/properties/src/main/java/com/fasterxml/jackson/dataformat/javaprop/io/JPropReadContext.java +++ b/properties/src/main/java/com/fasterxml/jackson/dataformat/javaprop/io/JPropReadContext.java @@ -47,12 +47,10 @@ public abstract class JPropReadContext public JPropReadContext(int contextType, JPropReadContext p, JPropNode node) { - super(); - _type = contextType; - _index = -1; + super(contextType, -1); _parent = p; _branchText = node.getValue(); - _nestingDepth = p == null ? 0 : p._nestingDepth + 1; + _nestingDepth = (p == null) ? 0 : p._nestingDepth + 1; } public static JPropReadContext create(JPropNode root) {