hhuijser/liferay-portal — pull request #675 by shinnlok (2012-06-07 19:04:09+00:00)
Title: LPS-27453 Shorten doesn't account for suffix, renders it useless

We use StringUtil.Shorten in some of our database methods.

If a column's field has a limit of 40 and we StringUtil.shorten("...", 40), theoretically it could be more than 40 characters after including "...". My fix was to account for the suffix when we shorten.