Applied reserved "default" keyword when publishing data too - it now maps to a blank identifier.

This commit is contained in:
CalDescent
2021-12-22 13:59:08 +00:00
parent 37e4f1e8d5
commit f85bbf12ca
3 changed files with 14 additions and 7 deletions

View File

@@ -64,6 +64,11 @@ public class ArbitraryDataTransactionBuilder {
this.name = name;
this.method = method;
this.service = service;
// If identifier is a blank string, or reserved keyword "default", treat it as null
if (identifier == null || identifier.equals("") || identifier.equals("default")) {
identifier = null;
}
this.identifier = identifier;
}

View File

@@ -54,9 +54,14 @@ public class ArbitraryDataWriter {
this.filePath = filePath;
this.name = name;
this.service = service;
this.identifier = identifier;
this.method = method;
this.compression = compression;
// If identifier is a blank string, or reserved keyword "default", treat it as null
if (identifier == null || identifier.equals("") || identifier.equals("default")) {
identifier = null;
}
this.identifier = identifier;
}
public void save() throws IOException, DataException, InterruptedException, MissingDataException {