modules/core/src/main/java/org/apache/ignite/internal/tostring/CircularStringBuilder.java [149:191]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        if (sb == null) {
            return appendNull();
        }

        int strLen = sb.length();

        if (strLen == 0) {
            return this;
        }
        if (strLen >= buf.length) {
            // String bigger or equal to value length
            sb.getChars(strLen - buf.length, strLen, buf, 0);

            skipped += strLen - buf.length + pos;

            pos = buf.length;

            full = true;
        } else if (buf.length - pos < strLen) { // String is shorter value length
            // String doesn't fit into remaining part of value array
            int firstPart = buf.length - pos;

            if (firstPart > 0) {
                sb.getChars(0, firstPart, buf, pos);
            }

            sb.getChars(firstPart, strLen, buf, 0);

            skipped += full ? strLen : strLen - firstPart;

            pos = pos + strLen - buf.length;

            full = true;
        } else {
            // Whole string fin into remaining part of value array
            sb.getChars(0, strLen, buf, pos);

            skipped += full ? strLen : 0;

            pos += strLen;
        }

        return this;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



modules/core/src/main/java/org/apache/ignite/internal/tostring/CircularStringBuilder.java [201:243]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        if (sb == null) {
            return appendNull();
        }

        int strLen = sb.length();

        if (strLen == 0) {
            return this;
        }
        if (strLen >= buf.length) {
            // String bigger or equal to value length
            sb.getChars(strLen - buf.length, strLen, buf, 0);

            skipped += strLen - buf.length + pos;

            pos = buf.length;

            full = true;
        } else if (buf.length - pos < strLen) { // String is shorter value length
            // String doesn't fit into remaining part of value array
            int firstPart = buf.length - pos;

            if (firstPart > 0) {
                sb.getChars(0, firstPart, buf, pos);
            }

            sb.getChars(firstPart, strLen, buf, 0);

            skipped += full ? strLen : strLen - firstPart;

            pos = pos + strLen - buf.length;

            full = true;
        } else {
            // Whole string fin into remaining part of value array
            sb.getChars(0, strLen, buf, pos);

            skipped += full ? strLen : 0;

            pos += strLen;
        }

        return this;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



