code stench

Avoid referencing resources by absolute paths as they are likely to end up in jars. Depend on a delegated strategy which uses Class.getResourceAsStream().

Avoid using i18n for non language purposes. It should be used solely for text shown on the screen. Code properties should be kept in property files. And vice versa.

RSS feed for comments on this post · TrackBack URL

Leave a Comment