Author: ggregory
Date: Wed Nov 9 17:42:00 2011
New Revision: 1199893
URL: http://svn.apache.org/viewvc?rev=1199893&view=rev
Log:
Use blocks.
Modified:
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/EqualsBuilderTest.java
Modified:
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/EqualsBuilderTest.java
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/EqualsBuilderTest.java?rev=1199893&r1=1199892&r2=1199893&view=diff
==============================================================================
---
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/EqualsBuilderTest.java
(original)
+++
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/EqualsBuilderTest.java
Wed Nov 9 17:42:00 2011
@@ -936,12 +936,15 @@ public class EqualsBuilderTest {
@Override
public boolean equals(Object o) {
- if (o == this)
+ if (o == this) {
return true;
- if (o instanceof TestACanEqualB)
+ }
+ if (o instanceof TestACanEqualB) {
return this.a == ((TestACanEqualB) o).getA();
- if (o instanceof TestBCanEqualA)
+ }
+ if (o instanceof TestBCanEqualA) {
return this.a == ((TestBCanEqualA) o).getB();
+ }
return false;
}
@@ -959,12 +962,15 @@ public class EqualsBuilderTest {
@Override
public boolean equals(Object o) {
- if (o == this)
+ if (o == this) {
return true;
- if (o instanceof TestACanEqualB)
+ }
+ if (o instanceof TestACanEqualB) {
return this.b == ((TestACanEqualB) o).getA();
- if (o instanceof TestBCanEqualA)
+ }
+ if (o instanceof TestBCanEqualA) {
return this.b == ((TestBCanEqualA) o).getB();
+ }
return false;
}