Tabnine Logo
HandlerMethod$HandlerMethodParameter.adaptAnnotation
Code IndexAdd Tabnine to your IDE (free)

How to use
adaptAnnotation
method
in
org.springframework.web.method.HandlerMethod$HandlerMethodParameter

Best Java code snippets using org.springframework.web.method.HandlerMethod$HandlerMethodParameter.adaptAnnotation (Showing top 3 results out of 315)

origin: spring-projects/spring-framework

merged.add(adaptAnnotation(paramAnn));
origin: org.springframework/spring-web

merged.add(adaptAnnotation(paramAnn));
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-web

@Override
public Annotation[] getParameterAnnotations() {
  Annotation[] anns = this.combinedAnnotations;
  if (anns == null) {
    anns = super.getParameterAnnotations();
    for (Annotation[][] ifcAnns : getInterfaceParameterAnnotations()) {
      Annotation[] paramAnns = ifcAnns[getParameterIndex()];
      if (paramAnns.length > 0) {
        List<Annotation> merged = new ArrayList<>(anns.length + paramAnns.length);
        merged.addAll(Arrays.asList(anns));
        for (Annotation paramAnn : paramAnns) {
          boolean existingType = false;
          for (Annotation ann : anns) {
            if (ann.annotationType() == paramAnn.annotationType()) {
              existingType = true;
              break;
            }
          }
          if (!existingType) {
            merged.add(adaptAnnotation(paramAnn));
          }
        }
        anns = merged.toArray(new Annotation[0]);
      }
    }
    this.combinedAnnotations = anns;
  }
  return anns;
}
org.springframework.web.methodHandlerMethod$HandlerMethodParameteradaptAnnotation

Popular methods of HandlerMethod$HandlerMethodParameter

  • getParameterType
  • <init>
  • getGenericParameterType
  • getParameterIndex
  • hasMethodAnnotation

Popular in Java

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Table (org.hibernate.mapping)
    A relational table
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now