Exemplo n.º 1
0
 @Override
 public void save(final DataOutput out) {
   try {
     out.writeByte(ARRAY_TYPE);
     elementType.save(out);
   } catch (IOException e) {
     throw new BuildDataCorruptedException(e);
   }
 }
Exemplo n.º 2
0
 @Override
 public void save(final DataOutput out) {
   try {
     out.writeByte(CLASS_TYPE);
     DataInputOutputUtil.writeINT(out, className);
     DataInputOutputUtil.writeINT(out, typeArgs.length);
     for (AbstractType t : typeArgs) {
       t.save(out);
     }
   } catch (IOException e) {
     throw new BuildDataCorruptedException(e);
   }
 }