Project

General

Profile

« Previous | Next » 

Revision 54094

Fails if relInfo.length != 3

View differences:

modules/dnet-openaireplus-workflows/trunk/src/main/java/eu/dnetlib/msro/openaireplus/workflows/nodes/claims/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