public void put(Value value, Object object, CoderContext context) {
DeprecatedDefaultInputFile f = (DeprecatedDefaultInputFile) object;
putUTFOrNull(value, f.relativePath());
- putUTFOrNull(value, f.getFileBaseDir().toString());
+ value.putString(f.getFileBaseDir().toString());
putUTFOrNull(value, f.deprecatedKey());
- putUTFOrNull(value, f.sourceDirAbsolutePath());
+ value.putString(f.sourceDirAbsolutePath());
putUTFOrNull(value, f.pathRelativeToSourceDir());
putUTFOrNull(value, f.absolutePath());
- putUTFOrNull(value, f.language());
- putUTFOrNull(value, f.type().name());
- putUTFOrNull(value, f.status().name());
+ value.putString(f.language());
+ value.putString(f.type().name());
+ value.putString(f.status().name());
putUTFOrNull(value, f.hash());
value.put(f.lines());
putUTFOrNull(value, f.key());
value.put(m.getValue());
putUTFOrNull(value, m.getData());
putUTFOrNull(value, m.getDescription());
- putUTFOrNull(value, m.getAlertStatus() != null ? m.getAlertStatus().name() : null);
+ value.putString(m.getAlertStatus() != null ? m.getAlertStatus().name() : null);
putUTFOrNull(value, m.getAlertText());
value.put(m.getTendency());
value.putDate(m.getDate());
Integer personId = m.getPersonId();
value.put(personId != null ? personId.intValue() : null);
PersistenceMode persistenceMode = m.getPersistenceMode();
- putUTFOrNull(value, persistenceMode != null ? persistenceMode.name() : null);
+ value.putString(persistenceMode != null ? persistenceMode.name() : null);
}
private void putUTFOrNull(Value value, @Nullable String utfOrNull) {