core/src/main/java/com/twitter/elephantbird/thrift/TStructDescriptor.java
public static TStructDescriptor getInstance(Class<? extends TBase<?, ?>> tClass) {
    synchronized (structMap) {
      TStructDescriptor desc = structMap.get(tClass);
      if (desc == null) {
        desc = new TStructDescriptor();
        desc.tClass = tClass;
        structMap.put(tClass, desc);
        desc.build(tClass);
      }
      return desc;
    }
  }
public static TStructDescriptor getInstance(Class<? extends TBase<?, ?>> tClass) {
    synchronized (structMap) {
      TStructDescriptor desc = structMap.get(tClass);
      if (desc == null) {
        desc = new TStructDescriptor();
        desc.tClass = tClass;
        structMap.put(tClass, desc);
        desc.build(tClass);
      }
      return desc;
    }
  }
public static TStructDescriptor getInstance ( Class < ? extends TBase < ? , ? > > tClass ) { synchronized ( structMap ) { TStructDescriptor desc = structMap . get ( tClass ) ; if ( desc == null ) { desc = new TStructDescriptor ( ) ; desc . tClass = tClass ; structMap . put ( tClass , desc ) ; desc . build ( tClass ) ; } return desc ; } }
Creates a descriptor for a Thrift class
Creates a descriptor for a Thrift class