For cast there are two subcategories. Does the same make sense for this option?
Originally posted by @wmdietl in #1209 (comment)
Like cast.redundant, we need to implement instanceof.redundant check. Proper code refactoring is required in BaseTypeVisitor#visitInstanceOf method. Please refer to BaseTypeVisitor#visitTypeCast.
For
castthere are two subcategories. Does the same make sense for this option?Originally posted by @wmdietl in #1209 (comment)
Like
cast.redundant, we need to implementinstanceof.redundantcheck. Proper code refactoring is required inBaseTypeVisitor#visitInstanceOfmethod. Please refer toBaseTypeVisitor#visitTypeCast.