Archive for September 1st, 2005
Daily Archive
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!
