Don't use exceptions for flow control - especially in the class loader. This would slow things down in the case of external repositories.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1618028 13f79535-47bb-0310-9956-ffa450edef68
Need to put all locales in order before adding them to the locales collection - not just those from the first header.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1618112 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=56848
Improve handling of <code>accept-language</code> headers.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1618166 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=56857
Fix thread safety issue when calling ServletContext methods while running under a security manager.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1618169 13f79535-47bb-0310-9956-ffa450edef68
Checkstyle

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1618171 13f79535-47bb-0310-9956-ffa450edef68
Update for name change

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1618175 13f79535-47bb-0310-9956-ffa450edef68
Unused code. Prepare to drop it in 9.0.x

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1618258 13f79535-47bb-0310-9956-ffa450edef68
Fix parsing bug when quality ends in invalid character(s)

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1618259 13f79535-47bb-0310-9956-ffa450edef68
Optimisation for invalid quality case suggested by kkolinko
Don't create return values that are going to be ignored

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1618260 13f79535-47bb-0310-9956-ffa450edef68
Prep for next release

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1618262 13f79535-47bb-0310-9956-ffa450edef68