1
0
Fork 0

formatting modified after commit

This commit is contained in:
Enrico Ottonello 2020-05-08 14:54:37 +02:00
parent 7e1c987370
commit b9d126dd1f
1 changed files with 138 additions and 142 deletions

View File

@ -47,10 +47,7 @@ public class OrcidDownloader extends OrcidDSManager {
CloseableHttpResponse response = client.execute(httpGet);
if (response.getStatusLine().getStatusCode() != 200) {
Log.warn(
"Downloading "
+ orcidId
+ " status code: "
+ response.getStatusLine().getStatusCode());
"Downloading " + orcidId + " status code: " + response.getStatusLine().getStatusCode());
return new String("");
}
return IOUtils.toString(response.getEntity().getContent());
@ -102,8 +99,7 @@ public class OrcidDownloader extends OrcidDSManager {
String record = downloadRecord(recordInfo.get(0));
downloadedRecordsCounter++;
if (!record.isEmpty()) {
String compressRecord =
ArgumentApplicationParser.compressArgument(record);
String compressRecord = ArgumentApplicationParser.compressArgument(record);
final Text key = new Text(recordInfo.get(0));
final Text value = new Text(compressRecord);