forked from D-Net/dnet-hadoop
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);
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue