From b4df69ccc3111962aa9d74f339ab8fe522527ab5 Mon Sep 17 00:00:00 2001 From: Henri Yandell Date: Fri, 1 Nov 2002 16:40:41 +0000 Subject: [PATCH] Fixed the example in the javadoc so it compiles. Submitted by: Janek Bogucki git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137107 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/commons/lang/builder/EqualsBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/commons/lang/builder/EqualsBuilder.java b/src/java/org/apache/commons/lang/builder/EqualsBuilder.java index c97d3a6e3..294e63f67 100644 --- a/src/java/org/apache/commons/lang/builder/EqualsBuilder.java +++ b/src/java/org/apache/commons/lang/builder/EqualsBuilder.java @@ -74,7 +74,7 @@ import java.lang.reflect.Modifier; * Typical use for the code is as follows: *
  * public boolean equals(Object o) {
- *   if (!o instanceof MyClass) {
+ *   if ( !(o instanceof MyClass) ) {
  *    return false;
  *   }
  *  MyClass rhs = (MyClass) o;
@@ -102,7 +102,7 @@ import java.lang.reflect.Modifier;
  * 
  * @author Steve Downey
  * @author Stephen Colebourne
- * @version $Id: EqualsBuilder.java,v 1.4 2002/10/01 20:00:43 stevencaswell Exp $
+ * @version $Id: EqualsBuilder.java,v 1.5 2002/11/01 16:40:41 bayard Exp $
  */
 public class EqualsBuilder {
     /**