rspec/rules/S3215/description.adoc

2 lines
357 B
Plaintext
Raw Normal View History

2020-06-30 12:48:39 +02:00
Needing to cast from an <code>interface</code> to a concrete type indicates that something is wrong with the abstractions in use, likely that something is missing from the <code>interface</code>. Instead of casting to a discrete type, the missing functionality should be added to the <code>interface</code>. Otherwise there is a risk of runtime exceptions.