Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Description" not compiled for DO if member is "private" #715

Closed
tierox opened this issue Aug 23, 2017 · 2 comments
Closed

"Description" not compiled for DO if member is "private" #715

tierox opened this issue Aug 23, 2017 · 2 comments
Labels
Milestone

Comments

@tierox
Copy link

tierox commented Aug 23, 2017

enunciate version 2.9.1
build tool: Maven
Hi I have experimented the following behaviour:

My POJO:
public class DocumentDO
{
/**
* Document's id
/
private Long id;
/
*
* Document's size
/
private Long size;
/
*
* Related Track id
/
private Long trackId;
/
*
* Document's File Path
/
private String filePath;
/
*
* Document's start date
/
@DocumentationExample(type=@typehint(String.class), value="04/04/2017 14:51:36")
private Date startDate;
/
*
* Document's sequence number
*/
private Long documentSequenceNumber;

public Date getStartDate()
{
    return startDate;
}

public void setStartDate(Date startDate)
{
    this.startDate = startDate;
}

and so on....
If and only if member is "public" ,"description" field is present elsewhere it is empty.
I've experimented the same behavior whit
@DocumentationExample(type=@typehint(String.class), value="04/04/2017 14:51:36") annotation.

Is it a configuration Issue or is it a Bug?
Thanks in advance.

@stoicflame
Copy link
Owner

See "Property Visibility" in the FAQ.

@stoicflame stoicflame added this to the 2.10.0 milestone Aug 23, 2017
@tierox
Copy link
Author

tierox commented Aug 23, 2017

Thank you very much for ultra fast answer. After moving JavaDOC to getter it seems to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants