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