Revision 45847
Added by Claudio Atzori over 7 years ago
AtomicActionDeserialiser.java | ||
---|---|---|
9 | 9 |
import eu.dnetlib.rmi.data.hadoop.actionmanager.actions.AbstractActionSerializer; |
10 | 10 |
import eu.dnetlib.rmi.data.hadoop.actionmanager.actions.AtomicAction; |
11 | 11 |
import org.apache.commons.codec.binary.Base64; |
12 |
import org.apache.commons.lang3.StringUtils; |
|
12 | 13 |
import org.apache.commons.logging.Log; |
13 | 14 |
import org.apache.commons.logging.LogFactory; |
14 | 15 |
|
... | ... | |
56 | 57 |
} |
57 | 58 |
|
58 | 59 |
private byte[] decodeTargetValue(final String s) { |
60 |
if (StringUtils.isBlank(s)) { |
|
61 |
return null; |
|
62 |
} |
|
59 | 63 |
try { |
60 | 64 |
final String json = new String(Base64.decodeBase64(s.getBytes())); |
61 | 65 |
|
Also available in: Unified diff
small refactor