From d923bb102d6fcf386cd23ec594a498ef5602d199 Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Sun, 20 Oct 2024 17:16:06 -0700 Subject: [PATCH] Minor simplifications --- .../java/com/fasterxml/jackson/jr/ob/impl/BeanReader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jr-objects/src/main/java/com/fasterxml/jackson/jr/ob/impl/BeanReader.java b/jr-objects/src/main/java/com/fasterxml/jackson/jr/ob/impl/BeanReader.java index f93eae0f..5c57cfcf 100644 --- a/jr-objects/src/main/java/com/fasterxml/jackson/jr/ob/impl/BeanReader.java +++ b/jr-objects/src/main/java/com/fasterxml/jackson/jr/ob/impl/BeanReader.java @@ -137,7 +137,7 @@ public Object readNext(JSONReader r, JsonParser p) throws IOException } private Object readRecord(JSONReader r, JsonParser p) throws Exception { - final Object[] values = new Object[propertiesByName().size()]; + final Object[] values = new Object[_propsByName.size()]; String propName; for (; (propName = p.nextFieldName()) != null;) { @@ -159,7 +159,7 @@ private Object readRecord(JSONReader r, JsonParser p) throws Exception { @Override public Object read(JSONReader r, JsonParser p) throws IOException { - JsonToken t = p.getCurrentToken(); + JsonToken t = p.currentToken(); try { switch (t) {