formatting modified after commit
This commit is contained in:
parent
7e1c987370
commit
b9d126dd1f
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue