SpringSource/spring-framework — pull request #255 by sslavic (2013-03-14 00:04:39+00:00)
Title: Parse variant in locale string only if necessary

Before this change logic for parsing locale string would look for
variant even when it's clear that local string doesn't have variant
part.

With this patch locale string parsing is improved so that variant
processing gets skipped when not necessary.

Issue: SPR-10364