Lines 407-417
Link Here
|
407 |
|
407 |
|
408 |
protected boolean parseTag(int previousPosition) throws InvalidInputException { |
408 |
protected boolean parseTag(int previousPosition) throws InvalidInputException { |
409 |
|
409 |
|
410 |
// Signal tag missing description if necessary |
410 |
// Complain when tag is missing a description |
|
|
411 |
// Note that if the parse of an inline tag has already started, consider it |
412 |
// as the expected description, hence do not report any warning |
411 |
switch (this.tagWaitingForDescription) { |
413 |
switch (this.tagWaitingForDescription) { |
412 |
case TAG_PARAM_VALUE: |
414 |
case TAG_PARAM_VALUE: |
413 |
case TAG_THROWS_VALUE: |
415 |
case TAG_THROWS_VALUE: |
414 |
if (!this.inlineTagStarted) { // if an inline tag is started, then consider as the expected description... |
416 |
if (!this.inlineTagStarted) { |
415 |
int start = (int) (this.identifierPositionStack[0] >>> 32); |
417 |
int start = (int) (this.identifierPositionStack[0] >>> 32); |
416 |
int end = (int) this.identifierPositionStack[this.identifierPtr]; |
418 |
int end = (int) this.identifierPositionStack[this.identifierPtr]; |
417 |
this.sourceParser.problemReporter().javadocMissingTagDescriptionAfterReference(start, end, this.sourceParser.modifiers); |
419 |
this.sourceParser.problemReporter().javadocMissingTagDescriptionAfterReference(start, end, this.sourceParser.modifiers); |
Lines 420-426
Link Here
|
420 |
case NO_TAG_VALUE: |
422 |
case NO_TAG_VALUE: |
421 |
break; |
423 |
break; |
422 |
default: |
424 |
default: |
423 |
this.sourceParser.problemReporter().javadocMissingTagDescription(TAG_NAMES[this.tagWaitingForDescription], this.tagSourceStart, this.tagSourceEnd, this.sourceParser.modifiers); |
425 |
if (!this.inlineTagStarted) { |
|
|
426 |
this.sourceParser.problemReporter().javadocMissingTagDescription(TAG_NAMES[this.tagWaitingForDescription], this.tagSourceStart, this.tagSourceEnd, this.sourceParser.modifiers); |
427 |
} |
424 |
break; |
428 |
break; |
425 |
} |
429 |
} |
426 |
this.tagWaitingForDescription = NO_TAG_VALUE; |
430 |
this.tagWaitingForDescription = NO_TAG_VALUE; |
Lines 835-845
Link Here
|
835 |
*/ |
839 |
*/ |
836 |
protected void updateDocComment() { |
840 |
protected void updateDocComment() { |
837 |
|
841 |
|
838 |
// Signal tag missing description if necessary |
842 |
// Complain when tag is missing a description |
|
|
843 |
// Note that if the parse of an inline tag has already started, consider it |
844 |
// as the expected description, hence do not report any warning |
839 |
switch (this.tagWaitingForDescription) { |
845 |
switch (this.tagWaitingForDescription) { |
840 |
case TAG_PARAM_VALUE: |
846 |
case TAG_PARAM_VALUE: |
841 |
case TAG_THROWS_VALUE: |
847 |
case TAG_THROWS_VALUE: |
842 |
if (!this.inlineTagStarted) { // if an inline tag is started, then consider as the expected description... |
848 |
if (!this.inlineTagStarted) { |
843 |
int start = (int) (this.identifierPositionStack[0] >>> 32); |
849 |
int start = (int) (this.identifierPositionStack[0] >>> 32); |
844 |
int end = (int) this.identifierPositionStack[this.identifierPtr]; |
850 |
int end = (int) this.identifierPositionStack[this.identifierPtr]; |
845 |
this.sourceParser.problemReporter().javadocMissingTagDescriptionAfterReference(start, end, this.sourceParser.modifiers); |
851 |
this.sourceParser.problemReporter().javadocMissingTagDescriptionAfterReference(start, end, this.sourceParser.modifiers); |
Lines 848-854
Link Here
|
848 |
case NO_TAG_VALUE: |
854 |
case NO_TAG_VALUE: |
849 |
break; |
855 |
break; |
850 |
default: |
856 |
default: |
851 |
this.sourceParser.problemReporter().javadocMissingTagDescription(TAG_NAMES[this.tagWaitingForDescription], this.tagSourceStart, this.tagSourceEnd, this.sourceParser.modifiers); |
857 |
if (!this.inlineTagStarted) { |
|
|
858 |
this.sourceParser.problemReporter().javadocMissingTagDescription(TAG_NAMES[this.tagWaitingForDescription], this.tagSourceStart, this.tagSourceEnd, this.sourceParser.modifiers); |
859 |
} |
852 |
break; |
860 |
break; |
853 |
} |
861 |
} |
854 |
this.tagWaitingForDescription = NO_TAG_VALUE; |
862 |
this.tagWaitingForDescription = NO_TAG_VALUE; |