HarmonyOS-Knowledgebase icon indicating copy to clipboard operation
HarmonyOS-Knowledgebase copied to clipboard

How to solve these javadoc errors given by checkstyles plugin?

Open Click2cloud-Eros opened this issue 4 years ago • 0 comments

Describe the query

How to solve below javadoc errors given by checkstyles plugin?

Javadoc tag '@return' should be preceded with an empty line. (1,215:0) [RequireEmptyLineBeforeBlockTagGroup] Javadoc tag '@param' should be preceded with an empty line. (1,479:0) [RequireEmptyLineBeforeBlockTagGroup]

These are my javadoc comments

    /**
     * Get the border color.
     * @return Border color in Color instance form.
     */
    public Color getBorderColor() {
        return borderColor;
    }

    /**
     * Set the border color.
     *
     * @param borderColor The border color.
     */
    public void setBorderColor(Color borderColor) {
        this.borderColor = borderColor;
        borderPaint.setColor(borderColor);
        invalidate();
    }

In both cases it showing same error.

Click2cloud-Eros avatar Sep 30 '21 04:09 Click2cloud-Eros