justinmclean opened a new issue, #7631:
URL: https://github.com/apache/gravitino/issues/7631

   ### What would you like to be improved?
   
   This test (added to TestAuditInfo.java) will fail:
   ```
     @Test
     public void testBuilderReuseDoesNotAffectBuiltInstance() {
       AuditInfo.Builder builder = AuditInfo.builder().withCreator("first");
       AuditInfo first = builder.build();
       builder.withCreator("second");
       AuditInfo second = builder.build();
   
       Assertions.assertEquals("first", first.creator());
       Assertions.assertEquals("second", second.creator());
     }
   ```
   
   ### How should we improve?
   
   Create a new AuditInfo instance during the build call.


-- 
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]

Reply via email to