I am using a class with private constructor instead of an enum (this is a requirement). And now I am trying to add javadoc tags to document each public static final
entity.
1) What is prefered place to put javadoc tags: like ob1
or ob2
?
2) Both options generate error in IDEA
@value tag must reference field with a constant intializer.
/**
* {@value #ob1} object1 description
*/
public class MyClass {
public static final Object ob1 = new Object();
/**
* {@value #ob2} object2 description
*/
public static final Object ob2 = new Object();
private MyClass() {}
}