Log Message: Removed some deprecated StringSplitters. Never knew it would be so easy with Arrays.asList(s.split(','))
Hello All,
The StringSplitter class is marked deprecated and suggest using the String.split method, but there is a small difference in the functionality. The StringSplitter class trims all strings in the List. The normal String.split does not trim the endresult. This might have some side-effect if the method is replaced like Andre suggests. Andre changed it in the taglib where attributes are parsed. I guess jsp's are going to fail when "aa, bb" is used. Now my Question: why is the StringSplitter deprecated in favour of the String.split method?
That could be a good question. With str.split("\\s*,\\s*") you can not simply achieve the same - one needs to first remove all occuring whitespace before processing the string with split or do some more regular expression stuff.
---Andr� -- Andr� van Toly http://www.toly.nl mobile +31(0)627233562 ------------------------------------------------------------------>><<-- _______________________________________________ Developers mailing list [email protected] http://lists.mmbase.org/mailman/listinfo/developers
