/** * Gets a string for the given key from this resource bundle or one of its parents. If the key is a link, the link is * resolved and the referenced string is returned instead. * * @param key the key for the desired string * @return the string for the given key * @throws NullPointerException if <code>key</code> is <code>null</code> * @throws java.util.MissingResourceException if no object for the given key can be found * @throws ClassCastException if the object found for the given key is not a string */ public synchronized String strictString( final String key ) { if ( key == null ) { throw new NullPointerException(); } final String retval = this.cache.get( key ); if ( retval != null ) { return retval; } this.lookupPath.clear(); return internalGetString( key ); }
/** * Gets a string for the given key from this resource bundle or one of its * parents. If the key is a link, the link is resolved and the referenced * string is returned instead. * * @param key the key for the desired string * @return the string for the given key * @throws NullPointerException if <code>key</code> is <code>null</code> * @throws java.util.MissingResourceException * if no object for the given key can be * found * @throws ClassCastException if the object found for the given key is * not a string */ public synchronized String strictString(final String key) { if (key == null) { throw new NullPointerException(); } final String retval = this.cache.get(key); if (retval != null) { return retval; } this.lookupPath.clear(); return internalGetString(key); }
final String retval = internalGetString( newKey );
final String retval = internalGetString(newKey);