title: How to use @value tag in javadoc?
body: <p>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 <code>public static final</code> entity.</p>
  
  <p>1) What is prefered place to put javadoc tags: like <code>ob1</code> or <code>ob2</code>?</p>
  
  <p>2) Both options generate error in IDEA 
  <code>@value tag must reference field with a constant intializer.</code></p>
  
  <pre><code>/**
   * {@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() {}   
  }
  </code></pre>