Effective Java for Android (cheatsheet).

Use “throw new AssertionError(“No instances.”);” instead of an empty constructor body. It serves as a documentation/explanation why the constructor is private. Also prevents the (unlikely) case of creating the object from one of the methods within the class (private constructor is still visible inside the class itself!).

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.