Synopsis: | These are rules which use Java type resolution to simplify code |
Description: |
These are rules which use Java type resolution to simplify code. |
Name | Checked | Synopsis |
---|---|---|
TypeResolution1 | ![]() |
Avoid using implementation types; use the interface instead |
TypeResolution2 | ![]() |
clone() method should be implemented only if implementing Cloneable interface |
TypeResolution3 | ![]() |
Use the diamond operator to let the type be inferred automatically |
TypeResolution4 | Use short array initializers without repeated type information |