< prev index next >

jaxws/src/java.xml.bind/share/classes/com/sun/istack/internal/localization/Localizer.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 23,33 **** * questions. */ package com.sun.istack.internal.localization; - import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; import java.text.MessageFormat; import java.util.HashMap; import java.util.Locale; import java.util.MissingResourceException; import java.util.ResourceBundle; --- 23,32 ----
*** 39,57 **** * @author WS Development Team */ public class Localizer { private final Locale _locale; ! private final HashMap _resourceBundles; public Localizer() { this(Locale.getDefault()); } public Localizer(Locale l) { _locale = l; ! _resourceBundles = new HashMap(); } public Locale getLocale() { return _locale; } --- 38,56 ---- * @author WS Development Team */ public class Localizer { private final Locale _locale; ! private final HashMap<String, ResourceBundle> _resourceBundles; public Localizer() { this(Locale.getDefault()); } public Localizer(Locale l) { _locale = l; ! _resourceBundles = new HashMap<>(); } public Locale getLocale() { return _locale; }
< prev index next >