mirror of
https://github.com/apache/struts.git
synced 2026-08-07 15:46:57 +00:00
made private methods protected
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1492644 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -175,7 +175,7 @@ public class I18nInterceptor extends AbstractInterceptor {
|
||||
* @param session the current session
|
||||
* @return the read locale
|
||||
*/
|
||||
private Locale readStoredLocale(ActionInvocation invocation, Map<String, Object> session) {
|
||||
protected Locale readStoredLocale(ActionInvocation invocation, Map<String, Object> session) {
|
||||
// check session for saved locale
|
||||
Object sessionLocale = session.get(attributeName);
|
||||
if (sessionLocale != null && sessionLocale instanceof Locale) {
|
||||
@@ -202,7 +202,7 @@ public class I18nInterceptor extends AbstractInterceptor {
|
||||
* @param requestedLocale the parameter from the request
|
||||
* @return the Locale
|
||||
*/
|
||||
private Locale getLocaleFromParam(Object requestedLocale) {
|
||||
protected Locale getLocaleFromParam(Object requestedLocale) {
|
||||
Locale locale = null;
|
||||
if (requestedLocale != null) {
|
||||
locale = (requestedLocale instanceof Locale) ?
|
||||
|
||||
Reference in New Issue
Block a user