Skip to content

Commit 7b66a2b

Browse files
#220 Remove comment wrt wanting to use Arrays.copyOf(), clean up (#224)
1 parent 2ba911b commit 7b66a2b

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

src/main/java/com/ctc/wstx/sr/AttributeCollector.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,6 @@ public ElemAttrs buildAttrOb()
753753
*/
754754
int amapLen = mAttrMap.length;
755755
int[] amap = new int[amapLen];
756-
// TODO: JDK 1.6 has Arrays.copyOf(), should use with Woodstox 6
757756
System.arraycopy(mAttrMap, 0, amap, 0, amapLen);
758757
return new ElemAttrs(raw, mNonDefCount,
759758
amap, mAttrHashSize, mAttrSpillEnd);

src/main/java/com/ctc/wstx/sr/TypedStreamReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public final int readElementAsArray(TypedArrayDecoder dec)
370370
while (true) {
371371
type = next();
372372
if (type == END_ELEMENT) {
373-
// Simple... no textul content
373+
// Simple... no textual content
374374
return -1;
375375
}
376376
if (type == COMMENT || type == PROCESSING_INSTRUCTION) {

src/main/java/com/ctc/wstx/util/StringVector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.ctc.wstx.util;
22

33
/**
4-
* Data container similar {@link java.util.List} (from storage perspective),
4+
* Data container similar to {@link java.util.List} (from storage perspective),
55
* but that can be used in multiple ways. For some uses it acts more like
66
* type-safe String list/vector; for others as order associative list of
77
* String-to-String mappings.

src/test/java/stax2/stream/TestReaderConstruction.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ public void testCreateWithByteArraySource()
8686
byte[] b = orig.clone();
8787
verifyXML(ifact.createXMLStreamReader(new Stax2ByteArraySource(b, 0, b.length)), "ByteArraySource");
8888

89-
// Also: let's check that non-0 offset works...
90-
final int OFFSET = 29;
91-
final int DOCLEN = b.length;
92-
byte[] b2 = new byte[OFFSET + DOCLEN + 50];
93-
System.arraycopy(b, 0, b2, OFFSET, DOCLEN);
89+
// Also: let's check that non-0 offset works...
90+
final int OFFSET = 29;
91+
final int DOCLEN = b.length;
92+
byte[] b2 = new byte[OFFSET + DOCLEN + 50];
93+
System.arraycopy(b, 0, b2, OFFSET, DOCLEN);
9494
verifyXML(ifact.createXMLStreamReader(new Stax2ByteArraySource(b2, OFFSET, DOCLEN)), "ByteArraySource");
9595
}
9696

0 commit comments

Comments
 (0)