Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2017-10-31 19:17:27 +0000
committerdonald.g.dunne2017-10-31 19:17:27 +0000
commit3507b790e025b6f92a47a31b22f4b282f3d9b963 (patch)
tree15520d07967e948f6872a998c136a90f1bd33add /plugins/org.eclipse.osee.framework.skynet.core
parent0040fa40d36c58d626660008be0a947be4036fdc (diff)
downloadorg.eclipse.osee-3507b790e025b6f92a47a31b22f4b282f3d9b963.tar.gz
org.eclipse.osee-3507b790e025b6f92a47a31b22f4b282f3d9b963.tar.xz
org.eclipse.osee-3507b790e025b6f92a47a31b22f4b282f3d9b963.zip
bug[ats_TW2861]: Improve performance of change reports
Diffstat (limited to 'plugins/org.eclipse.osee.framework.skynet.core')
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/change/AttributeChange.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/change/AttributeChange.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/change/AttributeChange.java
index eb2c4d0afaf..7916d5c4ef4 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/change/AttributeChange.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/change/AttributeChange.java
@@ -60,8 +60,8 @@ public final class AttributeChange extends Change {
this.attrId = attrId;
this.attributeType = attributeType;
this.artModType = artModType;
- this.isValue = null;
- this.wasValue = null;
+ this.isValue = isValue;
+ this.wasValue = wasValue;
}
@Override
@@ -110,7 +110,7 @@ public final class AttributeChange extends Change {
@Override
public String getIsValue() {
- if (isValue == null) {
+ if (isValue == null && wasIsProvider != null) {
isValue = wasIsProvider.getIsValue();
}
return isValue != null ? isValue : "";
@@ -118,7 +118,7 @@ public final class AttributeChange extends Change {
@Override
public String getWasValue() {
- if (wasValue == null) {
+ if (wasValue == null && wasIsProvider != null) {
wasValue = wasIsProvider.getWasValue();
}
return wasValue != null ? wasValue : "";

Back to the top