The following document contains the results of PMD's CPD 6.29.0.
| File | Line |
|---|---|
| util/sgml/SGMLParser.java | 705 |
| util/sgml/SGMLParser.java | 857 |
}
// Here, clearly a value must follow
// Skip whitespaces
qName = SGMLParser.this.buffer.
readStringBuffer(TEST_NO_WHITESPACE, WHITESP_IN_ATTR);
SGMLParser.this.currChar =
SGMLParser.this.buffer.readChar(); //NOPMD
// Parse the attribute value.
switch (SGMLParser.this.currChar) {
case '\'':
// fall through
case '"':
// the attribute value is quoted.
char quote = (char) SGMLParser.this.currChar;
TEST_SPEC.setChar(quote);
//SGMLParser.this.currChar =
// SGMLParser.this.buffer.readChar();
//System.out.println("quote@@"+SGMLParser.this.currChar);
qName = new StringBuffer();
while (true) {
qName.append(SGMLParser.this.buffer.
readStringBuffer(TEST_SPEC, ATTR_VALUE));
if (qName.length() != 0
&& qName.charAt(qName.length() - 1) == '\\') {
qName.setCharAt(qName.length() - 1, quote);
} else {
// read the quote
SGMLParser.this.currChar = //NOPMD
SGMLParser.this.buffer.readChar();
break;
}
}
break;
default: | |