Showing 4 of 4 files from the diff.
@@ -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; |
Files | Complexity | Coverage |
---|---|---|
src/main/java/com/ctc/wstx | 51.09% | 60.53% |
Project Totals (168 files) | 51.09% | 60.53% |
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.