Revision 54094
Added by Alessia Bardi over 5 years ago
ApplyClaimRelsJobNode.java | ||
---|---|---|
78 | 78 |
protected String getValue(final String sourceId, final String semantics, final String targetId, final long timestamp) throws MSROException { |
79 | 79 |
log.debug(StringUtils.format("%s -- %s -- %s", sourceId, semantics, targetId)); |
80 | 80 |
String[] relInfo = semantics.split(SEPARATOR); |
81 |
if (relInfo.length < 3) {
|
|
81 |
if (relInfo.length != 3) {
|
|
82 | 82 |
throw new MSROException("Semantics " + semantics + " not supported: must be splittable in 3 by '_'"); |
83 | 83 |
} |
84 | 84 |
Qualifier.Builder semanticsBuilder = Qualifier.newBuilder().setClassid(relInfo[2]).setClassname(relInfo[2]); |
Also available in: Unified diff
Fails if relInfo.length != 3