From a1913e7c7747f33293bf3ce1648c604e5a83bdef Mon Sep 17 00:00:00 2001 From: Oleg Sukhodolsky Date: Mon, 1 Mar 2004 06:50:14 +0000 Subject: [PATCH] Moving intersects() method to TextComment interface. --- .../tools/checkstyle/api/Comment.java | 34 ++++--------------- 1 file changed, 6 insertions(+), 28 deletions(-) diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/api/Comment.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/api/Comment.java index 6befb609f..1a06c0a89 100755 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/api/Comment.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/api/Comment.java @@ -60,59 +60,37 @@ class Comment implements TextBlock mLastCol = aLastCol; } - /** - * Returns line that make up the comment. - * @return comment text. - */ + /** {@inheritDoc} */ public final String[] getText() { return (String[]) mText.clone(); } - /** - * Returns number of fist line of the comment. - * @return number of fist line of the comment - */ + /** {@inheritDoc} */ public final int getStartLineNo() { return mFirstLine; } - /** - * Returns number of last line of the comment. - * @return number of last line of the comment - */ + /** {@inheritDoc} */ public final int getEndLineNo() { return mLastLine; } - /** - * @see TextBlock - */ + /** {@inheritDoc} */ public int getStartColNo() { return mFirstCol; } - /** - * @see TextBlock - */ + /** {@inheritDoc} */ public int getEndColNo() { return mLastCol; } - /** - * Checks if this comment intersects with a specified - * part of the file. - * - * @param aStartLineNo the starting line number in the file - * @param aStartColNo the starting column number in the file - * @param aEndLineNo the ending line number in the file - * @param aEndColNo the ending column number in the file - * @return true if the positions intersects with this comment. - **/ + /** {@inheritDoc} */ public boolean intersects(int aStartLineNo, int aStartColNo, int aEndLineNo, int aEndColNo) {