FasterXML / woodstox

@@ -818,6 +818,18 @@
Loading
818 818
        return _hasExplicitConfigFlag(CFG_INTERN_NS_URIS);
819 819
    }
820 820
821 +
    /**
822 +
     * Checks if the user explicitly set coalescing to false. (That is if
823 +
     * coalescing is disabled only because that is the default value, this method
824 +
     * will return false.)
825 +
     *
826 +
     * @return true, if the user explicitly disabled coalescing, else false
827 +
     */
828 +
    public boolean isCoalescingExplicitlyDisabled() {
829 +
        // coalescing is disabled and was explicitly set by user
830 +
        return !_hasConfigFlag(CFG_COALESCE_TEXT) && (mConfigFlagMods & CFG_COALESCE_TEXT) != 0;
831 +
    }
832 +
821 833
    /*
822 834
    ///////////////////////////////////////////////////////////////////////
823 835
    // Simple mutators

@@ -434,10 +434,10 @@
Loading
434 434
            mShortestTextSegment = Integer.MAX_VALUE;
435 435
        } else {
436 436
            mStTextThreshold =  TOKEN_PARTIAL_SINGLE;
437 -
            if (forER) {
437 +
            if (forER && !cfg.isCoalescingExplicitlyDisabled()) {
438 438
                /* 30-Sep-2005, TSa: No point in returning runt segments for event readers
439 439
                 *   (due to event object overhead, less convenient); let's just force
440 -
                 *   returning of full length segments.
440 +
                 *   returning of full length segments. (Unless explicitly requested.)
441 441
                 */
442 442
                mShortestTextSegment = Integer.MAX_VALUE;
443 443
            } else {
Files Complexity Coverage
src/main/java/com/ctc/wstx 51.09% 60.47%
Project Totals (168 files) 51.09% 60.47%
2248682856
unittests

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading