Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8866087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:41:38+00:00 2026-06-14T16:41:38+00:00

I am using the Eclipse Checkstyleplugin (v5.5). I want JavaDoc comments on all public

  • 0

I am using the Eclipse Checkstyleplugin (v5.5). I want JavaDoc comments on all public methods except getters and setters. I know there is the option “allowMissingPropertyJavadoc” which does exactly what I want. But in some cases it works and in some it does not.

This works, no JavaDoc required on gettes and setters:

public class Test {
    private String name;
    private int number;

    public Test() {
        System.out.println("Test");
    }

    public String getName() {
        return this.name;
    }

    public int getNumber() {
        return this.number;
    }

    public void setName(String name){
        this.name = name;
    }

    public void setNumber(int number) {
        this.number = number;
    }

}

And this does not, JavaDoc required on setters:

public class Test2 {

    private Test test;

    public Test2() {
        System.out.println("Test2");
        this.test = new Test();
        this.test.setName("thename");
        this.test.setNumber(1337);
    }

    public String getName() {
        return this.test.getName();
    }

    public int getNumber() {
        return this.test.getNumber();
    }

    public void setName(String name) {
        this.test.setName(name);
    }

    public void setNumber(int number) {
        this.test.setNumber(number);
    }

}

It seems as if setters without an assignment are not recognized as setters. Is how can I fix this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T16:41:39+00:00Added an answer on June 14, 2026 at 4:41 pm

    That’s because it requires the body to be exactly “this.name = name;”

    You can see the exactly line here:
    http://checkstyle.hg.sourceforge.net/hgweb/checkstyle/checkstyle/file/a485366ec8c3/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.java#l819

    Dumb, I know.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Eclipse PDT and Subclipse. I want to set all of the
using Eclipse 3.7 (Indigo) I know there are similar questions (out-dated by the way)
I am using eclipse checkstyle plugin. I have few methods in a class A
Using Eclipse, working with (ANSI) C language, is there any way to view the
When using Eclipse over X-Windows on a remote shell (X port forwarding), is there
When using Eclipse PDT with XDebug to debug a PHP web application, is there
Using Eclipse + PDT, I know that you can specify the return type of
Using Eclipse 3.5 and the plugin for mtj. Where can I find the Javadoc
Using Eclipse, is there a way to automatically copy a file/project's directory to a
Using eclipse, first of all. I'm building an Android calculator. I have all my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.