dlr         01/10/23 13:48:04

  Modified:    src/java/org/apache/velocity/context Context.java
  Log:
  o Removed unnecessary import of ArrayIterator pointed out by
  [EMAIL PROTECTED]
  
  o Removed redundant modifiers from interface (strongly discouraged by
  JLS).
  
  Revision  Changes    Path
  1.4       +6 -9      
jakarta-velocity/src/java/org/apache/velocity/context/Context.java
  
  Index: Context.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/context/Context.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -u -r1.3 -r1.4
  --- Context.java      2001/10/22 03:53:23     1.3
  +++ Context.java      2001/10/23 20:48:04     1.4
  @@ -57,8 +57,6 @@
   import java.util.Hashtable;
   import java.io.Serializable;
   
  -import org.apache.velocity.util.ArrayIterator;
  -
   /**
    *  Interface describing the application data context.  This set of
    *  routines is used by the application to set and remove 'named' data
  @@ -73,7 +71,7 @@
    *
    *  @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.3 2001/10/22 03:53:23 jon Exp $
  + *  @version $Id: Context.java,v 1.4 2001/10/23 20:48:04 dlr Exp $
    */
   public interface Context
   {
  @@ -83,7 +81,7 @@
        * @param key   The name to key the provided value with.
        * @param value The corresponding value.
        */
  -    public Object put(String key, Object value);
  +    Object put(String key, Object value);
   
       /**
        * Gets the value corresponding to the provided key from the context.
  @@ -91,7 +89,7 @@
        * @param key The name of the desired value.
        * @return    The value corresponding to the provided key.
        */
  -    public Object get(String key);
  +    Object get(String key);
    
       /**
        * Indicates whether the specified key is in the context.
  @@ -99,12 +97,12 @@
        * @param key The key to look for.
        * @return    Whether the key is in the context.
        */
  -    public boolean containsKey(Object key);
  +    boolean containsKey(Object key);
   
       /**
        * Get all the keys for the values in the context
        */
  -    public Object[] getKeys();
  +    Object[] getKeys();
   
       /**
        * Removes the value associated with the specified key from the context.
  @@ -113,6 +111,5 @@
        * @return    The value that the key was mapped to, or <code>null</code> 
        *            if unmapped.
        */
  -    public Object remove(Object key);
  +    Object remove(Object key);
   }
  -
  
  
  


Reply via email to