Comment From: rstoyanchev

I'm not convinced this needs to be applied throughout. Especially where variables are used once.

Comment From: diguage

Please rebase your changes on main.

Also, for checks like value instanceof Class clazz you'll need to add the generic wildcard like value instanceof Class<?> clazz. So please make the appropriate changes. In other words, we don't want to have to suppress "raw types" warnings in such cases.

OK , let me update the codes.

Comment From: sbrannen

This has been merged into main in bbaf7578b2ca66ec1a4cff114c3e2bc4d7d3b462 and revised in 43dd813ee64e7c62aeeaf24cdd52230457336d5b and 16f65e59b49ebdc7813819c137203fccccf8f4f2.

Thanks! 👍

Comment From: sbrannen

It turns out that the Checkstyle issue is a known limitation.

  • https://github.com/checkstyle/checkstyle/issues/10969