Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2014-06-16 18:47:22 +0000
committerdonald.g.dunne2014-06-16 18:48:56 +0000
commitfbecd4aec5c8c4fcfe9f4bc51eb7ad93729895c1 (patch)
treebf63efefe98bd5101f99bae0294a79ad5113d0ee /plugins/org.eclipse.osee.framework.core.message/src
parente702b73607abbf885421cdfec97290364d5e8476 (diff)
downloadorg.eclipse.osee-fbecd4aec5c8c4fcfe9f4bc51eb7ad93729895c1.tar.gz
org.eclipse.osee-fbecd4aec5c8c4fcfe9f4bc51eb7ad93729895c1.tar.xz
org.eclipse.osee-fbecd4aec5c8c4fcfe9f4bc51eb7ad93729895c1.zip
feature[ats_ATS19845]: Fix server decoding merge branch update message
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.message/src')
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCacheUpdateUtil.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/TranslationUtil.java17
2 files changed, 18 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCacheUpdateUtil.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCacheUpdateUtil.java
index 4bf99190f23..df3ff38c4c2 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCacheUpdateUtil.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCacheUpdateUtil.java
@@ -182,7 +182,7 @@ public final class BranchCacheUpdateUtil {
TranslationUtil.loadMap(message.getBranchToSourceTx(), store, Fields.BRANCH_TO_SRC_TX);
TranslationUtil.loadMap(message.getBranchToAssocArt(), store, Fields.BRANCH_TO_ASSOC_ART);
TranslationUtil.loadArrayMap(message.getBranchAliases(), store, Fields.BRANCH_TO_ALIASES);
- TranslationUtil.loadTripletList(message.getMergeBranches(), store, Fields.SRC_DEST_MERGE);
+ TranslationUtil.loadTripletListForMergeBranches(message.getMergeBranches(), store, Fields.SRC_DEST_MERGE);
}
public static void loadStore(PropertyStore store, AbstractBranchCacheMessage message) {
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/TranslationUtil.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/TranslationUtil.java
index 3e7bc8390f4..c551f2953eb 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/TranslationUtil.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/TranslationUtil.java
@@ -53,6 +53,10 @@ public final class TranslationUtil {
storeToStringTripletList(data, store.getPropertyStore(key.name()));
}
+ public static void loadTripletListForMergeBranches(List<Triplet<Long, Long, Long>> data, PropertyStore store, Enum<?> key) {
+ storeToStringTripletListForMergeBranches(data, store.getPropertyStore(key.name()));
+ }
+
public static void loadTripletLongList(List<Triplet<Long, Long, Long>> data, PropertyStore store, Enum<?> key) {
storeToTripletList(data, store.getPropertyStore(key.name()));
}
@@ -164,6 +168,19 @@ public final class TranslationUtil {
}
}
+ private static void storeToStringTripletListForMergeBranches(List<Triplet<Long, Long, Long>> data, PropertyStore innerStore) {
+ for (String strKey : innerStore.arrayKeySet()) {
+ String[] value = innerStore.getArray(strKey);
+ if (BranchRow.isOseeUsingGuidsForAppServerMessaging()) {
+ data.add(new Triplet<Long, Long, Long>(BranchRow.getBranchIdLegacy(value[0]),
+ BranchRow.getBranchIdLegacy(value[1]), BranchRow.getBranchIdLegacy(value[2])));
+ } else {
+ data.add(new Triplet<Long, Long, Long>(Long.valueOf(value[0]), Long.valueOf(value[1]),
+ Long.valueOf(value[2])));
+ }
+ }
+ }
+
private static PropertyStore tripletListToStore(List<Triplet<Long, Long, Long>> list) {
PropertyStore innerStore = new PropertyStore();
int index = 0;

Back to the top