Archive for September 1st, 2005

Thursday, September 1st, 2005

Hardcoded Class Names

Instead of hardcoding class names in your Java code (e.g. String clz = “com.foo.ReportFactory”;),
try generating it (e.g. String clz = ReportFactory.class.getName();) - it’s a lot less brittle!

2 Comments » - Posted in Java by dkaz