Skip to content

Commit 08ad779

Browse files
committed
Harmonize with specification
1 parent 1fc12b6 commit 08ad779

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/com/apicatalog/jsonld/context/TermDefinitionBuilder.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,9 @@ public void create(final String term) throws JsonLdError {
342342
// 13.7.
343343
activeContext.setTerm(term, definition);
344344
defined.put(term, Boolean.TRUE);
345-
return;
346-
}
347345

348-
// 14.
349-
if (idValue != null && (JsonUtils.isNotString(idValue) || !term.equals(((JsonString) idValue).getString()))) {
346+
// 14.
347+
} else if (idValue != null && (JsonUtils.isNotString(idValue) || !term.equals(((JsonString) idValue).getString()))) {
350348

351349
// 14.1.
352350
if (JsonUtils.isNotNull(idValue)) {

0 commit comments

Comments
 (0)