Java tips: Avoid runtime type checks
Runtime type checks involve if statements and the instanceof operator, which leads to brittle code.
If you forget to update a runtime type check as your application requirements evolve, you could subsequently introduce bugs.
If you forget to update a runtime type check as your application requirements evolve, you could subsequently introduce bugs.
Comments
Post a Comment