vlio20
vlio20

Reputation: 9295

@value of other static value of a class (in other package) with javadoc

I have a class which holds many static values (int and Strings). In other classes I want to add this values of the static attributes. For instance, I have this servlet: LoginServlet and this comment in it:

* Possible errors: <br>
 * 1. Bad request (not valid parameters) - {@value com.minyanserver.utilities#ServerConsts.BAD_REQUEST}. <br>
 * 2. General error - {@value #ServerConsts.GENERAL_ERR}. <br>

both options don't work, instead of value I am getting nothing: * 1. Bad request (not valid parameters) -.

Is there a way to do this?

Upvotes: 1

Views: 223

Answers (1)

vlio20
vlio20

Reputation: 9295

After searching in the documentation I noticed I have an error. Here how it should be done:

{@value com.minyanserver.utilities.ServerConsts#BAD_REQUEST}

and not like this:

{@value com.minyanserver.utilities#ServerConsts.BAD_REQUEST}

Upvotes: 2

Related Questions