Revision 37493
Added by Alessia Bardi about 9 years ago
ResumptionTokenImpl.java | ||
---|---|---|
77 | 77 |
// throw new OaiPublisherRuntimeException(e); |
78 | 78 |
// } |
79 | 79 |
// String[] info = StringUtils.split(decoded, "|"); |
80 |
String[] info = StringUtils.split(token, "|");
|
|
80 |
String[] info = token.split("\\|");
|
|
81 | 81 |
if (info.length < 6) throw new BadResumptionTokenException(token); |
82 | 82 |
this.nMaxElements = Integer.parseInt(info[0]); |
83 | 83 |
this.metadataPrefix = info[1]; |
Also available in: Unified diff
StringUtils.split does not add empty strings in the resulting array, but I do need them, hence I use the native String split function.