db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1103196 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/ListOrderedMapCI.java
Date Sat, 14 May 2011 19:33:04 GMT
Author: tfischer
Date: Sat May 14 19:33:03 2011
New Revision: 1103196

URL: http://svn.apache.org/viewvc?rev=1103196&view=rev
Log:
fix checkstyle issues

Modified:
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/ListOrderedMapCI.java

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/ListOrderedMapCI.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/ListOrderedMapCI.java?rev=1103196&r1=1103195&r2=1103196&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/ListOrderedMapCI.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/ListOrderedMapCI.java
Sat May 14 19:33:03 2011
@@ -23,7 +23,7 @@ import org.apache.commons.collections.ma
 
 /**
  * A subclass of the Apache Commons ListOrderedMap that has case insensitive
- * String key methods.  This is done by converting all String keys to 
+ * String key methods.  This is done by converting all String keys to
  * lower case.
  *
  * @author <a href="mailto:greg.monroe@dukece.com">Greg Monroe</a>
@@ -31,69 +31,80 @@ import org.apache.commons.collections.ma
  */
 public class ListOrderedMapCI extends ListOrderedMap
 {
+    /** Version id for serializing. */
     private static final long serialVersionUID = -4349246328751938554L;
 
     /**
      * Constructs a new empty ListOrderedMap.
      */
-    public ListOrderedMapCI() {
+    public ListOrderedMapCI()
+    {
         super();
     }
 
     /**
      * Get the object associated with this key.
-     * 
+     *
      * @param key A case insensitive String.
      * @return The value for this key
      */
-    public Object get( String key ) {
-       return super.get( key.toLowerCase() ); 
+    public Object get(String key)
+    {
+       return super.get(key.toLowerCase());
     }
+
     /**
      * Adds a value to the end of the list with the specified key.
-     * 
+     *
      * @param key A case insensitive String.
      * @param value The value to add
      * @return The value for previously mapped to this key
      */
-    public Object put( String key, Object value ) {
-        return super.put( key.toLowerCase(), value ); 
+    public Object put(String key, Object value)
+    {
+        return super.put(key.toLowerCase(), value);
     }
+
     /**
      * Puts a key-value mapping into the map at the specified index.
-     * 
-     * @param index The index at which the mapping should be inserted.  
+     *
+     * @param index The index at which the mapping should be inserted.
      * @param key A case insensitive String.
      * @param value The value.
+     *
      * @return The value for previously mapped to this key
      */
-    public Object put( int index, String key, Object value ) {
-        return super.put(index, key.toLowerCase(), value );
+    public Object put(int index, String key, Object value)
+    {
+        return super.put(index, key.toLowerCase(), value);
     }
     /**
      * Gets the index of the specified key.
-     * 
+     *
      * @param key A case insensitive String.
      * @return the index, or -1 if not found
      */
-    public int indexOf( String key ) {
-        return super.indexOf( key.toLowerCase() );
+    public int indexOf(String key)
+    {
+        return super.indexOf(key.toLowerCase());
     }
     /**
      * Removes the mapping for the specified key.
      * @param key A case insensitive String.
      * @return the removed value, or null if none existed
      */
-    public Object remove ( String key ) {
-        return super.remove( key.toLowerCase() );
+    public Object remove (String key)
+    {
+        return super.remove(key.toLowerCase());
     }
     /**
      * Test if the key exists in the mapping.
-     * 
+     *
      * @param key The case insensitive key to test for.
      * @return True if the key exists.
      */
-    public boolean containsKey( String key ) {
-        return super.containsKey( key.toLowerCase());
+    public boolean containsKey(String key)
+    {
+        return super.containsKey(key.toLowerCase());
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message