Skip to content

Commit

Permalink
fix for 'legal' and 'assigned' variables when adding existed projecti…
Browse files Browse the repository at this point in the history
…on (MID-6008)
  • Loading branch information
skublik committed Mar 20, 2020
1 parent 975f5c2 commit ca5728e
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -103,8 +103,13 @@ DeltaMapTriple<K, ConstructionPack<T>> processConstructions(LensContext<F> conte
if (plusConstructionPack != null && plusConstructionPack.hasStrongConstruction()) {

if (plusConstructionPack.hasValidAssignment()) {
LOGGER.trace("Construction {}: assigned (valid)", desc);
consumer.onAssigned(key, desc);
if (zeroConstructionPack != null && zeroConstructionPack.hasValidAssignment()) {
LOGGER.trace("Construction {}: unchanged (valid) + assigned (valid)", desc);
consumer.onUnchangedValid(key, desc);
} else {
LOGGER.trace("Construction {}: assigned (valid)", desc);
consumer.onAssigned(key, desc);
}
} else if (zeroConstructionPack != null && zeroConstructionPack.hasValidAssignment()) {
LOGGER.trace("Construction {}: unchanged (valid) + assigned (invalid)", desc);
consumer.onUnchangedValid(key, desc);
Expand Down

0 comments on commit ca5728e

Please sign in to comment.