FasterXML / woodstox

@@ -119,14 +119,14 @@
Loading
119 119
        if (raw != null) {
120 120
            for (int i = 0, len = raw.length; i < len; i += 4) {
121 121
                w.write(' ');
122 -
                String prefix = raw[i + OFFSET_NS_PREFIX];
122 +
                String prefix = raw[i + OFFSET_NS_PREFIX]; // lgtm [java/index-out-of-bounds]
123 123
                if (prefix != null && prefix.length() > 0) {
124 124
                    w.write(prefix);
125 125
                    w.write(':');
126 126
                }
127 127
                w.write(raw[i]); // local name
128 128
                w.write("=\"");
129 -
                TextEscaper.writeEscapedAttrValue(w, raw[i + OFFSET_VALUE]);
129 +
                TextEscaper.writeEscapedAttrValue(w, raw[i + OFFSET_VALUE]); // lgtm [java/index-out-of-bounds]
130 130
                w.write('"');
131 131
            }
132 132
        }
@@ -142,9 +142,9 @@
Loading
142 142
        if (raw != null) {
143 143
            for (int i = 0, len = raw.length; i < len; i += 4) {
144 144
                String ln = raw[i];
145 -
                String prefix = raw[i + OFFSET_NS_PREFIX];
146 -
                String nsURI = raw[i + OFFSET_NS_URI];
147 -
                w.writeAttribute(prefix, nsURI, ln, raw[i + OFFSET_VALUE]);
145 +
                String prefix = raw[i + OFFSET_NS_PREFIX]; // lgtm [java/index-out-of-bounds]
146 +
                String nsURI = raw[i + OFFSET_NS_URI]; // lgtm [java/index-out-of-bounds]
147 +
                w.writeAttribute(prefix, nsURI, ln, raw[i + OFFSET_VALUE]); // lgtm [java/index-out-of-bounds]
148 148
            }
149 149
        }
150 150
    }

@@ -122,7 +122,7 @@
Loading
122 122
            if (!ln.equals(raw[i])) {
123 123
                continue;
124 124
            }
125 -
            String thisUri = raw[i+OFFSET_NS_URI];
125 +
            String thisUri = raw[i+OFFSET_NS_URI]; // lgtm [java/index-out-of-bounds]
126 126
            if (defaultNs) {
127 127
                if (thisUri == null || thisUri.length() == 0) {
128 128
                        return i;

@@ -380,7 +380,7 @@
Loading
380 380
        }
381 381
382 382
        if (count == 0) {
383 -
            reportValidationProblem(rep, "Invalid default value '"+defValue
383 +
            return reportValidationProblem(rep, "Invalid default value '"+defValue
384 384
                             +"'; empty String is not a valid name value");
385 385
        }
386 386

@@ -98,7 +98,7 @@
Loading
98 98
                    sb.append(':');
99 99
                }
100 100
            }
101 -
            sb.append(mStrings[i++]);
101 +
            sb.append(mStrings[i++]); // lgtm [java/index-out-of-bounds]
102 102
        }
103 103
    }
104 104
}
Files Complexity Coverage
src/main/java/com/ctc/wstx 51.09% 60.53%
Project Totals (168 files) 51.09% 60.53%
1047523391
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