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
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to