commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adri...@apache.org
Subject svn commit: r1197950 - in /commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert: Converters.java Util.java
Date Sat, 05 Nov 2011 12:48:20 GMT
Author: adrianc
Date: Sat Nov  5 12:48:19 2011
New Revision: 1197950

URL: http://svn.apache.org/viewvc?rev=1197950&view=rev
Log:
Some JavaDoc fixes - no functional change.

Modified:
    commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/Converters.java
    commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/Util.java

Modified: commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/Converters.java
URL: http://svn.apache.org/viewvc/commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/Converters.java?rev=1197950&r1=1197949&r2=1197950&view=diff
==============================================================================
--- commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/Converters.java
(original)
+++ commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/Converters.java
Sat Nov  5 12:48:19 2011
@@ -32,7 +32,7 @@ import javax.imageio.spi.ServiceRegistry
  * via the Java service provider registry. Applications can extend the
  * converter framework by:<br />
  * <ul>
- * <li>Creating classes the implement the
+ * <li>Creating classes that implement the
  * {@link org.apache.commons.convert.Converter} class</li>
  * <li>Create a {@link org.apache.commons.convert.ConverterLoader} class that
  * registers those classes</li>

Modified: commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/Util.java
URL: http://svn.apache.org/viewvc/commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/Util.java?rev=1197950&r1=1197949&r2=1197950&view=diff
==============================================================================
--- commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/Util.java (original)
+++ commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/Util.java Sat Nov
 5 12:48:19 2011
@@ -25,7 +25,7 @@ public class Util {
      * 
      * @param <V> The type to cast to
      * @param object The object to cast
-     * @return <code>obj</code> cast to type <code>T</code>
+     * @return <code>obj</code> cast to type <code>V</code>
      */
     @SuppressWarnings("unchecked")
     public static <V> V cast(Object object) {
@@ -33,11 +33,10 @@ public class Util {
     }
 
     /**
-     * Tests if a class is a sub-class of <code>typeClass</code> or
-     * if a class properly implements an interface.
+     * Tests if a class is the same class as, or sub-class of, or implements <code>typeClass</code>.
      * @param objectClass Class to test
      * @param typeClass Class to test against
-     * @return true if objectClass is a class or sub-class of, or implements typeClass
+     * @return <code>true</code> if <code>objectClass</code> is the
same class as, or sub-class of, or implements <code>typeClass</code>
      */
     public static boolean instanceOf(Class<?> objectClass, Class<?> typeClass)
{
         if (objectClass == typeClass) {



Mime
View raw message