joseluisll commented on code in PR #8753:
URL: https://github.com/apache/hadoop/pull/8753#discussion_r4116077055


##########
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/mcp/McpHttpServlet.java:
##########
@@ -46,8 +46,8 @@ public final class McpHttpServlet extends HttpServlet {
 
   private static final long serialVersionUID = 1L;
 
-  private final ObjectMapper objectMapper;
-  private final McpRequestHandler requestHandler;
+  private final transient ObjectMapper objectMapper;

Review Comment:
   ```suggestion
     private final ObjectMapper objectMapper;
   ```
   `ObjectMapper` is `Serializable`, so it never tripped `SE_BAD_FIELD`; the 
`transient` here is what raises the `SE_TRANSIENT_FIELD_NOT_RESTORED` in the 
Yetus run.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to