directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szoer...@apache.org
Subject svn commit: r749450 - /directory/sandbox/szoerner/groovyldap/src/main/java/org/apache/directory/groovyldap/util/Util.java
Date Mon, 02 Mar 2009 22:01:15 GMT
Author: szoerner
Date: Mon Mar  2 22:01:15 2009
New Revision: 749450

URL: http://svn.apache.org/viewvc?rev=749450&view=rev
Log:
Formatting, Warnings removed

Modified:
    directory/sandbox/szoerner/groovyldap/src/main/java/org/apache/directory/groovyldap/util/Util.java

Modified: directory/sandbox/szoerner/groovyldap/src/main/java/org/apache/directory/groovyldap/util/Util.java
URL: http://svn.apache.org/viewvc/directory/sandbox/szoerner/groovyldap/src/main/java/org/apache/directory/groovyldap/util/Util.java?rev=749450&r1=749449&r2=749450&view=diff
==============================================================================
--- directory/sandbox/szoerner/groovyldap/src/main/java/org/apache/directory/groovyldap/util/Util.java
(original)
+++ directory/sandbox/szoerner/groovyldap/src/main/java/org/apache/directory/groovyldap/util/Util.java
Mon Mar  2 22:01:15 2009
@@ -29,22 +29,24 @@
 /**
  * Utility methods.
  * 
- * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory
+ *         Project</a>
  * @version $Rev$, $Date$
  */
 public class Util
 {
     private Util()
     {
-
     }
 
 
-    /** 
-     * Creates an attribute from the given parameters. If value is a collection, a multi-valued
attribute will be created.
+    /**
+     * Creates an attribute from the given parameters. If value is a collection,
+     * a multi-valued attribute will be created.
      * 
-     * @param name Name of the attribute
-     * @param value 
+     * @param name
+     *            Name of the attribute
+     * @param value
      * @return a JNDI attribute object
      */
     public static Attribute createAttribute( String name, Object value )
@@ -52,7 +54,7 @@
         Attribute attr = new BasicAttribute( name );
         if ( value instanceof Collection )
         {
-            Collection values = ( Collection ) value;
+            Collection<?> values = ( Collection<?> ) value;
             for ( Object val : values )
             {
                 attr.add( val );



Mime
View raw message