[xwiki-dev] XWikiAuthServiceImpl - Redundant replaceAll ?
Sergiu Dumitriu
sergiu.dumitriu at gmail.com
Wed Apr 18 01:12:04 CEST 2007
Indeed, a bug. I'll fix this as soon as ObjectWeb finishes the nightly
backup, which makes every operation take about 5 minutes.
On 4/17/07, Pablo Oliveira <pablo.oliveira at enst.fr> wrote:
>
> Hi all,
>
> In user/impl/xwiki/XWikiAuthServiceImpl.java i read:
> protected String findUser(String susername2, XWikiContext context)
> throws XWikiException {
> String susername = susername2.replaceAll(" ", "");
>
> susername = susername.replaceAll(" ", "");
>
> [...]
>
> Why are we calling replaceAll method called twice ? It seems useless,
> what have I missed ?
>
> Thanks,
>
> Pablo
>
>
>
> --
> You receive this message as a subscriber of the xwiki-dev at objectweb.orgmailing list.
> To unsubscribe: mailto:xwiki-dev-unsubscribe at objectweb.org
> For general help: mailto:sympa at objectweb.org?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
--
http://purl.org/net/sergiu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xwiki.org/pipermail/devs/attachments/20070418/2890b3d5/attachment.html
More information about the devs
mailing list