y553546436 opened a new pull request #1901: URL: https://github.com/apache/shardingsphere-elasticjob/pull/1901
Fixes #1900. Changes proposed in this pull request: - Remove the `final` keyword for the `GsonBuilder` field in `GsonFactory` class. - Add `clean` method in `GsonFactory` class, which re-initializes the `GsonBuilder`. - Invoke the `clean` method in `GsonFactory` when the test `GsonFactoryTest.assertRegisterTypeAdapter` finishes. With the proposed fix, the test does not pollute the shared state (and passes when run twice in the same JVM). Note: this PR is a follow-up of #1774. -- 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. For queries about this service, please contact Infrastructure at: [email protected]
