|
Lines 471-478
public class ElementUtilsProc extends BaseProcessor
Link Here
|
| 471 |
"\n" + |
471 |
"\n" + |
| 472 |
" Javadoc on _fieldT1_private\n" + |
472 |
" Javadoc on _fieldT1_private\n" + |
| 473 |
" this line starts with two spaces, no asterisk\n" + |
473 |
" this line starts with two spaces, no asterisk\n" + |
| 474 |
" This line starts, contains\tand ends with a tab\t\n" + |
474 |
" This line starts, contains\tand ends with a tab\t\n" + |
| 475 |
" This line starts with a space, tab, space, tab, space\n"); |
475 |
" This line starts with a space, tab, space, tab, space\n"); |
| 476 |
nameToDoc.put("fieldInt", null); |
476 |
nameToDoc.put("fieldInt", null); |
| 477 |
nameToDoc.put("method_T1", " Javadoc on F.method_T1\n"); |
477 |
nameToDoc.put("method_T1", " Javadoc on F.method_T1\n"); |
| 478 |
nameToDoc.put("method_String", null); |
478 |
nameToDoc.put("method_String", null); |
|
Lines 481-487
public class ElementUtilsProc extends BaseProcessor
Link Here
|
| 481 |
nameToDoc.put("foo", "\n Creates a new instance of AllChecks \n"); |
481 |
nameToDoc.put("foo", "\n Creates a new instance of AllChecks \n"); |
| 482 |
nameToDoc.put("bar", " @bar\t(int)\n"); |
482 |
nameToDoc.put("bar", " @bar\t(int)\n"); |
| 483 |
nameToDoc.put("bar2", "\t@bar2(int)\n"); |
483 |
nameToDoc.put("bar2", "\t@bar2(int)\n"); |
| 484 |
nameToDoc.put("m", " Method\tm\n"); |
484 |
nameToDoc.put("m", " Method\tm\n"); |
| 485 |
nameToDoc.put("m1", "This is a comment for the method m1,\n" + |
485 |
nameToDoc.put("m1", "This is a comment for the method m1,\n" + |
| 486 |
" it is on two lines\n"); |
486 |
" it is on two lines\n"); |
| 487 |
nameToDoc.put("m2", "Another comment - starts on first line and\n" + |
487 |
nameToDoc.put("m2", "Another comment - starts on first line and\n" + |
|
Lines 510-515
public class ElementUtilsProc extends BaseProcessor
Link Here
|
| 510 |
return false; |
510 |
return false; |
| 511 |
} |
511 |
} |
| 512 |
else if (expected != null) { |
512 |
else if (expected != null) { |
|
|
513 |
//Comparison takes place here. |
| 513 |
if (!expected.equals(actual)) { |
514 |
if (!expected.equals(actual)) { |
| 514 |
reportError("examineGetDocComment: Unexpected result from getDocComment(" + name + "): " + _elementUtils.getDocComment(e)); |
515 |
reportError("examineGetDocComment: Unexpected result from getDocComment(" + name + "): " + _elementUtils.getDocComment(e)); |
| 515 |
return false; |
516 |
return false; |