Author: julien(a)jboss.com
Date: 2007-06-03 15:31:15 -0400 (Sun, 03 Jun 2007)
New Revision: 7375
Modified:
trunk/common/src/main/org/jboss/portal/common/util/Tools.java
Log:
minor javadoc
Modified: trunk/common/src/main/org/jboss/portal/common/util/Tools.java
===================================================================
--- trunk/common/src/main/org/jboss/portal/common/util/Tools.java 2007-06-03 19:20:39 UTC
(rev 7374)
+++ trunk/common/src/main/org/jboss/portal/common/util/Tools.java 2007-06-03 19:31:15 UTC
(rev 7375)
@@ -723,6 +723,17 @@
return copy;
}
+ /**
+ * Return true if
+ * <ul>
+ * <li>o1 is null and o2 is null</li<
+ * <li>o1 is not null and the invocation of <code>equals(Object
o)</code> on o1 wit o2 as argument returns true</li>
+ * </ul>
+ *
+ * @param o1 the first argument
+ * @param o2 the second argument
+ * @return if arguments are equals according to the semantic defined by the method
contract
+ */
public static boolean safeEquals(Object o1, Object o2)
{
if (o1 == null)
Show replies by date