FasterXML / woodstox

Compare fc3cc74 ... +3 ... 22b17c1

Coverage Reach
sr/BasicStreamReader.java sr/StreamScanner.java sr/AttributeCollector.java sr/InputElementStack.java sr/TypedStreamReader.java sr/ValidatingStreamReader.java sr/CompactNsContext.java sr/ElemAttrs.java sr/Attribute.java sr/Element.java sr/ElemCallback.java sw/BufferingXmlWriter.java sw/BaseStreamWriter.java sw/ISOLatin1XmlWriter.java sw/AsciiXmlWriter.java sw/EncodingXmlWriter.java sw/BaseNsStreamWriter.java sw/RepairingNsStreamWriter.java sw/NonNsStreamWriter.java sw/SimpleNsStreamWriter.java sw/OutputElementBase.java sw/TypedStreamWriter.java sw/SimpleOutputElement.java sw/XmlWriter.java sw/XmlWriterWrapper.java dtd/FullDTDReader.java dtd/DTDElement.java dtd/DTDValidator.java dtd/DTDSubsetImpl.java dtd/DTDAttribute.java dtd/MinimalDTDReader.java dtd/DTDValidatorBase.java dtd/DTDTypingNonValidator.java dtd/SeqContentSpec.java dtd/ChoiceContentSpec.java dtd/DFAState.java dtd/DTDNmTokensAttr.java dtd/LargePrefixedNameSet.java dtd/DTDEntitiesAttr.java dtd/DTDIdRefsAttr.java dtd/DTDId.java dtd/DTDSchemaFactory.java dtd/ChoiceModel.java dtd/ConcatModel.java dtd/DTDWriter.java dtd/SmallPrefixedNameSet.java dtd/DefaultAttrValue.java dtd/TokenContentSpec.java dtd/DTDIdAttr.java dtd/DTDIdRefAttr.java dtd/DTDEntityAttr.java dtd/DTDNmTokenAttr.java dtd/TokenModel.java dtd/StarModel.java dtd/DFAValidator.java dtd/DTDEnumAttr.java dtd/DTDNotationAttr.java dtd/OptionalModel.java dtd/EmptyValidator.java dtd/DTDCdataAttr.java dtd/ContentSpec.java dtd/PrefixedNameSet.java dtd/DTDSubset.java dtd/StructValidator.java dtd/ModelNode.java util/TextBuffer.java util/XmlChars.java util/SymbolTable.java util/WordResolver.java util/WordSet.java util/StringUtil.java util/ElementIdMap.java util/BijectiveNsMap.java util/StringVector.java util/URLUtil.java util/PrefixedName.java util/DataUtil.java util/TextBuilder.java util/ElementId.java util/ArgUtil.java util/TextAccumulator.java util/BaseNsContext.java util/ExceptionUtil.java util/DefaultXmlSymbolTable.java util/InternCache.java util/SimpleCache.java util/EmptyNamespaceContext.java io/StreamBootstrapper.java io/EBCDICCodec.java io/UTF8Writer.java io/UTF8Reader.java io/WstxInputData.java io/InputBootstrapper.java io/ReaderBootstrapper.java io/CharsetNames.java io/UTF32Reader.java io/DefaultInputResolver.java io/ReaderSource.java io/WstxInputLocation.java io/MergedStream.java io/MergedReader.java io/BranchingReaderSource.java io/BaseReader.java io/ISOLatinReader.java io/TextEscaper.java io/AsciiReader.java io/BaseInputSource.java io/WstxInputSource.java io/BufferRecycler.java io/CharArraySource.java io/SystemId.java io/InputSourceFactory.java api/ReaderConfig.java api/WriterConfig.java api/CommonConfig.java api/EmptyElementHandler.java api/InvalidCharHandler.java api/ValidatorConfig.java api/WstxInputProperties.java api/WstxOutputProperties.java sax/WstxSAXParser.java sax/WstxSAXParserFactory.java sax/SAXFeature.java sax/SAXProperty.java sax/WrappedSaxException.java evt/WstxEventReader.java evt/MergedNsContext.java evt/DefaultEventAllocator.java evt/SimpleStartElement.java evt/CompactStartElement.java evt/BaseStartElement.java evt/WEntityDeclaration.java evt/WDTD.java evt/WEntityReference.java evt/WNotationDeclaration.java msv/GenericMsvValidator.java msv/W3CMultiSchemaFactory.java msv/AttributeProxy.java msv/BaseSchemaFactory.java msv/W3CSchemaFactory.java msv/RelaxNGSchemaFactory.java msv/RelaxNGSchema.java msv/W3CSchema.java stax/WstxInputFactory.java stax/WstxOutputFactory.java stax/WstxEventFactory.java dom/WstxDOMWrappingWriter.java dom/DOMOutputElement.java dom/WstxDOMWrappingReader.java ent/IntEntity.java ent/ParsedExtEntity.java ent/UnparsedExtEntity.java ent/EntityDecl.java ent/ExtEntity.java cfg/ErrorConsts.java exc/WstxException.java exc/WstxValidationException.java exc/WstxLazyException.java exc/WstxIOException.java exc/WstxUnexpectedCharException.java exc/WstxParsingException.java exc/WstxEOFException.java exc/WstxOutputException.java osgi/ValidationSchemaFactoryProviderImpl.java osgi/WstxBundleActivator.java osgi/InputFactoryProviderImpl.java osgi/OutputFactoryProviderImpl.java compat/QNameCreator.java

Flags

Flags have been temporarily removed from this view while the flagging feature is refactored for better performance and user experience.

You can still use flags when viewing individual files. Flag-level thresholds will also remain on pull and merge requests in your repository provider.

More information can be found in our documentation.


@@ -70,7 +70,7 @@
Loading
70 70
71 71
    public static String ERR_WF_PI_MISSING_TARGET = "Missing processing instruction target";
72 72
    public static String ERR_WF_PI_XML_TARGET = "Illegal processing instruction target (\"{0}\"); 'xml' (case insensitive) is reserved by the specs.";
73 -
    public static String ERR_WF_PI_XML_MISSING_SPACE = "excepted either space or \"?>\" after PI target";
73 +
    public static String ERR_WF_PI_XML_MISSING_SPACE = "expected either space or \"?>\" after PI target";
74 74
75 75
    // // // Entity problems:
76 76

@@ -2227,7 +2227,7 @@
Loading
2227 2227
                 */
2228 2228
                /*
2229 2229
            } else if (c != '>') {
2230 -
                throwDTDUnexpectedChar(c, "; excepted either '>' closing ATTLIST declaration, or a white space character separating individual attribute declarations");
2230 +
                throwDTDUnexpectedChar(c, "; expected either '>' closing ATTLIST declaration, or a white space character separating individual attribute declarations");
2231 2231
                */
2232 2232
            }
2233 2233
            if (c == '>') {
@@ -2299,7 +2299,7 @@
Loading
2299 2299
                                +keyw+"' (for element <"+elemName+">); expected ANY or EMPTY");
2300 2300
             } while (false);
2301 2301
        } else {
2302 -
            throwDTDUnexpectedChar(c, ": excepted '(' to start content specification for element <"+elemName+">");
2302 +
            throwDTDUnexpectedChar(c, ": expected '(' to start content specification for element <"+elemName+">");
2303 2303
        }
2304 2304
2305 2305
        // Ok, still need the trailing gt-char to close the declaration:

@@ -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 {
@@ -1945,7 +1945,7 @@
Loading
1945 1945
        // Plus, need the bracket too:
1946 1946
        char c = getNextCharFromCurrent(SUFFIX_IN_CDATA);
1947 1947
        if (c != '[') {
1948 -
            throwUnexpectedChar(c, "excepted '[' after '<![CDATA'");
1948 +
            throwUnexpectedChar(c, "expected '[' after '<![CDATA'");
1949 1949
        }
1950 1950
        // Cool, that's it!
1951 1951
    }
@@ -3080,7 +3080,7 @@
Loading
3080 3080
            if (c <= CHAR_SPACE) {
3081 3081
                c = getNextInCurrAfterWS(SUFFIX_IN_ELEMENT, c);
3082 3082
            } else if (c != '/' && c != '>') {
3083 -
                throwUnexpectedChar(c, " excepted space, or '>' or \"/>\"");
3083 +
                throwUnexpectedChar(c, " expected space, or '>' or \"/>\"");
3084 3084
            }
3085 3085
3086 3086
            if (c == '/') {
@@ -3188,7 +3188,7 @@
Loading
3188 3188
            if (c <= CHAR_SPACE) {
3189 3189
                c = getNextInCurrAfterWS(SUFFIX_IN_ELEMENT, c);
3190 3190
            } else if (c != '/' && c != '>') {
3191 -
                throwUnexpectedChar(c, " excepted space, or '>' or \"/>\"");
3191 +
                throwUnexpectedChar(c, " expected space, or '>' or \"/>\"");
3192 3192
            }
3193 3193
            if (c == '/') {
3194 3194
                c = getNextCharFromCurrent(SUFFIX_IN_ELEMENT);
@@ -4027,7 +4027,7 @@
Loading
4027 4027
            // Ok, let's just verify we get space then
4028 4028
            char c = getNextCharFromCurrent(SUFFIX_IN_XML_DECL);
4029 4029
            if (!isSpaceChar(c)) {
4030 -
                throwUnexpectedChar(c, "excepted a space in xml declaration after 'xml'");
4030 +
                throwUnexpectedChar(c, "expected a space in xml declaration after 'xml'");
4031 4031
            }
4032 4032
            return handleMultiDocStart(START_DOCUMENT);
4033 4033
        }

Learn more Showing 8 files with coverage changes found.

Changes in src/main/java/com/ctc/wstx/io/BranchingReaderSource.java
-6
+6
Loading file...
Changes in src/main/java/com/ctc/wstx/io/BufferRecycler.java
-1
+1
Loading file...
Changes in src/main/java/com/ctc/wstx/util/TextBuffer.java
-10
+2
+8
Loading file...
Changes in src/main/java/com/ctc/wstx/io/ReaderSource.java
-1
+1
Loading file...
Changes in src/main/java/com/ctc/wstx/io/UTF8Reader.java
-2
+1
+1
Loading file...
Changes in src/main/java/com/ctc/wstx/dtd/FullDTDReader.java
-2
-2
+4
Loading file...
Changes in src/main/java/com/ctc/wstx/sr/StreamScanner.java
-1
+1
Loading file...
Changes in src/main/java/com/ctc/wstx/sr/BasicStreamReader.java
-1
+1
Loading file...
Files Complexity Coverage
src/main/java/com/ctc/wstx +4.00% 51.09% -0.12% 60.47%
Project Totals (168 files) 51.09% 60.47%
Loading