Revision 10218
Added by Jing Tao over 7 years ago
src/edu/ucsb/nceas/metacat/dataone/MNodeService.java | ||
---|---|---|
1312 | 1312 |
|
1313 | 1313 |
String localId; |
1314 | 1314 |
Identifier pid; |
1315 |
//synFailed.getPid was obsolseted since d1_common_java 2.4 |
|
1316 |
String pidStr = syncFailed.getIdentifier(); |
|
1317 |
if (pidStr == null || pidStr.trim().equals("")) { |
|
1318 |
pidStr = syncFailed.getPid(); |
|
1319 |
} |
|
1320 |
logMetacat.debug("MNodeService.synchronizationFailed - the failed identifier is "+pidStr); |
|
1321 |
if ( pidStr != null && !pidStr.trim().equals("") ) { |
|
1315 |
if ( syncFailed.getPid() != null ) { |
|
1322 | 1316 |
|
1323 | 1317 |
pid = new Identifier(); |
1324 | 1318 |
pid.setValue(syncFailed.getPid()); |
Also available in: Unified diff
Still use syncFailed.getPid to get identifier in the syncFailed method.