@Override
 public void merge(Mapper mergeWith, MergeContext mergeContext) throws MergeMappingException {
   super.merge(mergeWith, mergeContext);
   if (!this.getClass().equals(mergeWith.getClass())) {
     return;
   }
   if (!mergeContext.mergeFlags().simulate()) {
     this.nullValue = ((IntegerFieldMapper) mergeWith).nullValue;
     this.nullValueAsString = ((IntegerFieldMapper) mergeWith).nullValueAsString;
   }
 }
Ejemplo n.º 2
0
 @Override
 public void merge(Mapper mergeWith, MergeContext mergeContext) throws MergeMappingException {
   super.merge(mergeWith, mergeContext);
   if (!this.getClass().equals(mergeWith.getClass())) {
     return;
   }
   if (!mergeContext.mergeFlags().simulate()) {
     this.nullValue = ((DateFieldMapper) mergeWith).nullValue;
     this.dateTimeFormatter = ((DateFieldMapper) mergeWith).dateTimeFormatter;
   }
 }