java/src/main/java/com/epam/deltix/containers/HeapWithDictionary.java [254:270]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                if (comparator.compare((TValue) elementsValue[left], tempValue) < 0) swapIndex = left;
            } else {
                if (comparator.compare((TValue) elementsValue[left], (TValue) elementsValue[right]) < 0) {
                    if (comparator.compare((TValue) elementsValue[left], tempValue) < 0) swapIndex = left;
                } else if (comparator.compare((TValue) elementsValue[right], tempValue) < 0) swapIndex = right;
            }
            if (swapIndex == current) break;
            elementsValue[current] = elementsValue[swapIndex];
            elementsKey[current] = elementsKey[swapIndex];
            elementsUserKey[current] = elementsUserKey[swapIndex];
            keysPosition[elementsKey[current]] = current;
            current = swapIndex;
        }
        elementsValue[current] = tempValue;
        elementsKey[current] = tempKey;
        elementsUserKey[current] = tempUserKey;
        keysPosition[elementsKey[current]] = current;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



java/src/main/java/com/epam/deltix/containers/HeapWithDictionary.java [495:511]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                if (comparator.compare((TValue) elementsValue[left], tempValue) < 0) swapIndex = left;
            } else {
                if (comparator.compare((TValue) elementsValue[left], (TValue) elementsValue[right]) < 0) {
                    if (comparator.compare((TValue) elementsValue[left], tempValue) < 0) swapIndex = left;
                } else if (comparator.compare((TValue) elementsValue[right], tempValue) < 0) swapIndex = right;
            }
            if (swapIndex == current) break;
            elementsValue[current] = elementsValue[swapIndex];
            elementsKey[current] = elementsKey[swapIndex];
            elementsUserKey[current] = elementsUserKey[swapIndex];
            keysPosition[elementsKey[current]] = current;
            current = swapIndex;
        }
        elementsValue[current] = tempValue;
        elementsKey[current] = tempKey;
        elementsUserKey[current] = tempUserKey;
        keysPosition[elementsKey[current]] = current;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



