jvanzyl     00/12/18 12:06:56

  Modified:    src/java/org/apache/velocity Context.java
  Log:
  - back out last set of context changes.
  
  Revision  Changes    Path
  1.12      +0 -14     jakarta-velocity/src/java/org/apache/velocity/Context.java
  
  Index: Context.java
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/Context.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Context.java      2000/12/18 03:52:33     1.11
  +++ Context.java      2000/12/18 20:06:55     1.12
  @@ -69,7 +69,7 @@
    * are stored in a Hashtable. 
    * @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Geir Magnusson Jr.</a>
  - * @version $Id: Context.java,v 1.11 2000/12/18 03:52:33 jon Exp $
  + * @version $Id: Context.java,v 1.12 2000/12/18 20:06:55 jvanzyl Exp $
    */
   public class Context extends InternalContext implements Cloneable
   {
  @@ -93,12 +93,7 @@
        * @param value The corresponding value.
        */
       public void put(String key, Object value)
  -        throws Exception
       {
  -        if (key == null)
  -            throw new Exception ("Context key was null! Value was: " + value);
  -        else if (value == null)
  -            throw new Exception ("Context value was null! Key was: " + key);
           context.put(key, value);
       }
   
  @@ -109,10 +104,7 @@
        * @return    The value corresponding to the provided key.
        */
       public Object get(String key)
  -        throws Exception
       {
  -        if (key == null)
  -            throw new Exception ("Context key was null!");
           return context.get(key);
       }        
   
  @@ -123,10 +115,7 @@
        * @return    Whether the key is in the context.
        */
       public boolean containsKey(Object key)
  -        throws Exception
       {
  -        if (key == null)
  -            throw new Exception ("Context key was null!");
           return context.containsKey(key);
       }        
   
  @@ -146,10 +135,7 @@
        *            if unmapped.
        */
       public Object remove(Object key)
  -        throws Exception
       {
  -        if (key == null)
  -            throw new Exception ("Context key was null!");
           return context.remove(key);
       }        
   
  
  
  

Reply via email to