Other files ignored by Codecov
src/test/java/wstxtest/evt/TestEventReader.java
has changed.
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 | 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% |