예제 #1
0
 @Override
 public int writeFieldValue(MethodVisitor methodVisitor, FieldDescription fieldType) {
   methodVisitor.visitLdcInsn(fieldType.getDefaultValue());
   return 2;
 }
예제 #2
0
 @Override
 protected String updateValue(FieldDescription fieldType) {
   SimpleDateFormat simpleDateFormat = new SimpleDateFormat(DATE_FORMAT_FOR_DATE_CONSTRUCTOR);
   Date date = (Date) fieldType.getDefaultValue();
   return simpleDateFormat.format(date);
 }