title: Tell Proguard to keep annotation on methods
body: <p>I'm using my own annotation:</p>
  
  <pre><code>@Retention(RetentionPolicy.RUNTIME)
  @Target({ElementType.METHOD, ElementType.TYPE})
  public @interface Loggable { }
  </code></pre>
  
  <p>and obfuscate using Proguard. I use the <code>-keepattributes *Annotation*</code> 
  in the Proguard configuration to keep the annotations.</p>
  
  <p>At runtime, when I retrieve the annotation from an <em>annotated class</em> using <code>someClass.getAnnotation(Loggable.class)</code> everything works - I retrieve a non-null instance of my annotation.</p>
  
  <p>However, when I want to apply the same to an <em>annotated method</em> of some class, I retrieve null from <code>someMethod.getAnnotation(Loggable.class)</code>.</p>
  
  <p>Is Proguard removing the annotations from methods? How do I tell it not to do so?</p>
  
  <p>I'm using Proguard 4.7.</p>