From 2b6eaf1ba86117afea79e2416d97b0ed12f30795 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Tue, 12 Sep 2006 21:55:11 +0000 Subject: Join short-circuit if external property cannot be null. --- .../java/com/amazon/carbonado/spi/StorableGenerator.java | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/main/java/com/amazon') diff --git a/src/main/java/com/amazon/carbonado/spi/StorableGenerator.java b/src/main/java/com/amazon/carbonado/spi/StorableGenerator.java index 4972bfa..f63a260 100644 --- a/src/main/java/com/amazon/carbonado/spi/StorableGenerator.java +++ b/src/main/java/com/amazon/carbonado/spi/StorableGenerator.java @@ -645,10 +645,10 @@ public final class StorableGenerator { // Store loaded join result here. LocalVariable join = b.createLocalVariable(name, type); - // Check if any internal properties may be null, but - // the matching external property is primitive. If so, - // load each of these special internal values and check - // if null. If so, short-circuit the load and use null + // Check if any internal properties are nullable, but + // the matching external property is not. If so, load + // each of these special internal values and check if + // null. If null, short-circuit the load and use null // as the join result. Label shortCircuit = b.createLabel(); @@ -658,8 +658,7 @@ public final class StorableGenerator { for (int i=0; i { for (int i=0; i