From 8f498f1f75e5ca27d0768678173d6635b0ebbfca Mon Sep 17 00:00:00 2001 From: ChangYong Date: Thu, 4 May 2023 20:13:24 +0900 Subject: [PATCH 1/2] Fix incorrect comment --- .../jackson/databind/introspect/POJOPropertiesCollector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/fasterxml/jackson/databind/introspect/POJOPropertiesCollector.java b/src/main/java/com/fasterxml/jackson/databind/introspect/POJOPropertiesCollector.java index fabeb15cbb..7a6c3dc518 100644 --- a/src/main/java/com/fasterxml/jackson/databind/introspect/POJOPropertiesCollector.java +++ b/src/main/java/com/fasterxml/jackson/databind/introspect/POJOPropertiesCollector.java @@ -761,7 +761,7 @@ protected void _addMethods(Map props) _addGetterMethod(props, m, _annotationIntrospector); } else if (argCount == 1) { // setters _addSetterMethod(props, m, _annotationIntrospector); - } else if (argCount == 2) { // any getter? + } else if (argCount == 2) { // any setter if (Boolean.TRUE.equals(_annotationIntrospector.hasAnySetter(m))) { if (_anySetters == null) { _anySetters = new LinkedList(); From 828c3773cfdd0344b1658fc16fc925d9431e159d Mon Sep 17 00:00:00 2001 From: ChangYong Date: Thu, 4 May 2023 23:07:05 +0900 Subject: [PATCH 2/2] Apply code review --- .../jackson/databind/introspect/POJOPropertiesCollector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/fasterxml/jackson/databind/introspect/POJOPropertiesCollector.java b/src/main/java/com/fasterxml/jackson/databind/introspect/POJOPropertiesCollector.java index 7a6c3dc518..86fcc8e293 100644 --- a/src/main/java/com/fasterxml/jackson/databind/introspect/POJOPropertiesCollector.java +++ b/src/main/java/com/fasterxml/jackson/databind/introspect/POJOPropertiesCollector.java @@ -761,7 +761,7 @@ protected void _addMethods(Map props) _addGetterMethod(props, m, _annotationIntrospector); } else if (argCount == 1) { // setters _addSetterMethod(props, m, _annotationIntrospector); - } else if (argCount == 2) { // any setter + } else if (argCount == 2) { // any setter? if (Boolean.TRUE.equals(_annotationIntrospector.hasAnySetter(m))) { if (_anySetters == null) { _anySetters = new LinkedList();