Class ReflectionUtils


public class ReflectionUtils extends Object
Kohsuke Kawaguchi
  • Constructor Details

    • ReflectionUtils

      public ReflectionUtils()
  • Method Details

    • getVmDefaultValueFor

      public static Object getVmDefaultValueFor(Class<?> type)
      Given the primitive type, returns the VM default value for that type in a boxed form. For reference types, return null.
    • union

      public static Annotation[] union(Annotation[] a, Annotation[] b)
      Merge two sets of annotations. If both contains the same annotation, the definition in 'b' overrides the definition in 'a' and shows up in the result