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); } }
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); } }