Skip to content

Commit 8b39230

Browse files
committed
Fix "switch" fallthrough bug in JsonLdOptions
1 parent 494dd53 commit 8b39230

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/main/java/com/github/jsonldjava/core/JsonLdOptions.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,16 @@ public void setEmbed(String embed) throws JsonLdError {
101101
switch (embed) {
102102
case "@always":
103103
this.embed = Embed.ALWAYS;
104+
break;
104105
case "@never":
105106
this.embed = Embed.NEVER;
107+
break;
106108
case "@last":
107109
this.embed = Embed.LAST;
110+
break;
108111
case "@link":
109112
this.embed = Embed.LINK;
113+
break;
110114
default:
111115
throw new JsonLdError(JsonLdError.Error.INVALID_EMBED_VALUE);
112116
}

0 commit comments

Comments
 (0)