Skip to content

Commit 062e4ce

Browse files
committed
Minor comment style change
1 parent 95026bf commit 062e4ce

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

src/main/java/com/fasterxml/aalto/in/AttributeCollector.java

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,8 @@ public String getValue(int index)
368368
{
369369
int count = _attrCount;
370370

371-
/* Note: no checks, caller is to ensure index is ok. Acceptable
372-
* since it's not externally exposed
373-
*/
371+
// Note: no checks, caller is to ensure index is ok. Acceptable
372+
// since it's not externally exposed
374373
if (_allAttrValues == null) {
375374
int len = _valueOffsets[count-1];
376375
_allAttrValues = (len == 0) ? "" : new String(_valueBuffer, 0, len);
@@ -382,9 +381,8 @@ public String getValue(int index)
382381
int len = _valueOffsets[0];
383382
return (len == 0) ? "" : _allAttrValues.substring(0, len);
384383
}
385-
/* !!! 11-Nov-2006, tatus: Should we cache constructed value?
386-
* Might be worth the trouble
387-
*/
384+
// !!! 11-Nov-2006, tatus: Should we cache constructed value?
385+
// Might be worth the trouble
388386
int start = _valueOffsets[index-1];
389387
int end = _valueOffsets[index];
390388
return (start == end) ? "" : _allAttrValues.substring(start, end);
@@ -421,16 +419,14 @@ public int findIndex(String nsUri, String localName)
421419
if (_names[ix].boundEquals(nsUri, localName)) {
422420
return ix;
423421
}
424-
/* Nope, need to traverse spill list, which has 2 entries for
425-
* each spilled attribute id; first for hash value, second index.
426-
*/
422+
// Nope, need to traverse spill list, which has 2 entries for
423+
// each spilled attribute id; first for hash value, second index.
427424
for (int i = hashSize, len = _spillAreaEnd; i < len; i += 2) {
428425
if (_attrMap[i] != hash) {
429426
continue;
430427
}
431-
/* Note: spill indexes are not off-by-one, since there's
432-
* no need to mask 0
433-
*/
428+
// Note: spill indexes are not off-by-one, since there's
429+
// no need to mask 0
434430
ix = _attrMap[i+1];
435431
if (_names[ix].boundEquals(nsUri, localName)) {
436432
return ix;

0 commit comments

Comments
 (0)