All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mockit.asm.metadata.ObjectWithAttributes Maven / Gradle / Ivy

package mockit.asm.metadata;

import java.util.*;
import javax.annotation.*;

import mockit.asm.metadata.ClassMetadataReader.*;

class ObjectWithAttributes {
   @Nullable public List annotations;

   public final boolean hasAnnotation(@Nonnull String annotationName) {
      if (annotations != null) {
         for (AnnotationInfo annotation : annotations) {
            if (annotationName.equals(annotation.name)) {
               return true;
            }
         }
      }

      return false;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy