Christian Posta — Software Blog

Become the best you can be at your profession. If you've stopped learning, you've given up.

February, 2010

Java static methods can be a code smell

Response to “How to Mock Static Methods” Definition of code smell (from Wikipedia): “any symptom in the source code of a program that possibly indicates a deeper problem.” In Java, static methods allow you to execute code at a “class scope” as opposed to an instance scope like member methods. This means, they rely on [...]

Tags: , , ,

Posted in Uncategorized | 2 Comments »