title: Is it possible to make a Java annotation's value mandatory?
body: <p>Java allows the definition of values in annotations, for example:</p>
  
  <pre><code>public @interface MyAnnotation {
      int MyValue();
  }
  </code></pre>
  
  <p>Although it is possible to set a default value for the <code>MyValue</code> annotation, I was wondering whether it is possible to make it mandatory. What I mean is forcing the user to provide a value for <code>MyValue</code> when annotating a class or field.</p>
  
  <p>I went through the documentation but could not find anything. Does anyone have a solution to this issue or is it just impossible to make an annotation's value mandatory?</p>