Skip to content

Commit

Permalink
removed the support for @nullable being treated as @optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Pesekjak committed Jun 4, 2024
1 parent 7481758 commit 47a5ceb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ public ConfigNode(A element, Function<ConfigNode<A>, SerializerContext> contextF
this.comments = getAnnotation(Comment.class).map(Comment::value).orElse(null);
this.inlineComment = getAnnotation(Comment.Inline.class).map(Comment.Inline::value).orElse(null);

boolean optional = getAnnotation(org.machinemc.cogwheel.annotations.Optional.class).isPresent();
optional |= getAnnotation(Nullable.class).isPresent();
this.optional = optional;
this.optional = getAnnotation(org.machinemc.cogwheel.annotations.Optional.class).isPresent();
this.hidden = getAnnotation(Hidden.class).isPresent();
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Group and version
group = org.machinemc.cogwheel
version = 1.1
version = 1.1.1

# Dependency versions
jetbrainsAnnotations = 24.1.0
Expand Down

0 comments on commit 47a5ceb

Please sign in to comment.