Ejemplo n.º 1
0
 protected ProtoMember(final DependencyContext context, final DataInput in) {
   super(in);
   try {
     myType = TypeRepr.externalizer(context).read(in);
     myValue = loadTyped(in);
   } catch (IOException e) {
     throw new BuildDataCorruptedException(e);
   }
 }
Ejemplo n.º 2
0
 public MethodRepr(final DependencyContext context, final DataInput in) {
   super(context, in);
   try {
     final DataExternalizer<TypeRepr.AbstractType> externalizer = TypeRepr.externalizer(context);
     final int size = in.readInt();
     myArgumentTypes = RW.read(externalizer, in, new TypeRepr.AbstractType[size]);
     myExceptions =
         (Set<TypeRepr.AbstractType>)
             RW.read(externalizer, new HashSet<TypeRepr.AbstractType>(), in);
   } catch (IOException e) {
     throw new RuntimeException(e);
   }
 }