summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/gen
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2012-01-11 22:19:59 +0000
committerBrian S. O'Neill <bronee@gmail.com>2012-01-11 22:19:59 +0000
commit80a4155021e36bccfd0f1a461c59f801cf685f4c (patch)
treeb01a0e7124fa0be5a71fe6d4bf2ea084bfa43318 /src/main/java/com/amazon/carbonado/gen
parent2ec36e83960af4f9b64b6fcbb27d7927cf5564b9 (diff)
Make encoding strategy equals method symmetric in the face of subclassing.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/gen')
-rw-r--r--src/main/java/com/amazon/carbonado/gen/StorableGenerator.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/gen/StorableGenerator.java b/src/main/java/com/amazon/carbonado/gen/StorableGenerator.java
index ddde311..d372cf3 100644
--- a/src/main/java/com/amazon/carbonado/gen/StorableGenerator.java
+++ b/src/main/java/com/amazon/carbonado/gen/StorableGenerator.java
@@ -3055,6 +3055,7 @@ public final class StorableGenerator<S extends Storable> {
b.returnValue(TypeDesc.BOOLEAN);
notEqual.setLocation();
+ // FIXME: Using instanceof means that equals is not symmetric.
// if (! target instanceof this) return false;
TypeDesc userStorableTypeDesc = TypeDesc.forClass(mStorableType);
b.loadLocal(b.getParameter(0));