/** * Returns the value for the specified key in the ResourceBundle for * the specified basename and locale. If no such resource can be * found, no errors are thrown and {@code null} is returned. * * @param key the key for the requested resource * @param baseName the base name of the resource bundle to search * @param loc the locale to use * @return value */ public Object get(Object key, String baseName, Object loc) { ResourceBundle bundle = getBundle(baseName, loc); if (key == null || bundle == null) { return null; } try { return bundle.getObject(String.valueOf(key)); } catch (Exception e) { return null; } }
ResourceBundle bundle = getBundle(baseName, loc); if (bundle == null)