3 Apr
2008
3 Apr
'08
8:34 p.m.
On Apr 3, 2008, at 10:23 PM, Sergiu Dumitriu wrote:
Asiri Rathnayake wrote:
Hi Sergiu,
There are checkstyle violations like,
The String "]." appears 2 times in the file.
I can't think of a sensible way to fix this kind of complaints, any ideas ?
I usually use string formatting to solve this issue, like:
String.format("error number %d means [%s] :)", 3, "wrong password")
This works with Java 1.5, with the older Java language it wouldn't work so smoothly...
Nice solution. We need to decide if we want to go as far as inernationalizing logs and exception messages. Thanks -Vincent