Skip to content

Commit

Permalink
Fix inline return checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel committed Nov 10, 2024
1 parent 75d2b4b commit 520722f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ protected AliasGroupBuilder getOrCreateAliasGroupBuilder(String group) {
}

/**
* {@return a read-only map of alias group builders by the alias group ID}
* {@return a read-only map of alias group builders by the alias group ID}.
*/
public Map<Identifier, AliasGroupBuilder> getAliasGroupBuilders() {
return Collections.unmodifiableMap(aliasGroupBuilders);
Expand Down Expand Up @@ -441,7 +441,7 @@ public final class AliasGroupBuilder {
private final List<TagKey<T>> tags = new ArrayList<>();

/**
* {@return a read-only list of the tags in this alias group}
* {@return a read-only list of the tags in this alias group}.
*/
public List<TagKey<T>> getTags() {
return Collections.unmodifiableList(tags);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@
*/
public record TagAliasGroup<T>(List<TagKey<T>> tags) {
/**
* {@return the codec for tag alias groups in the specified registry}
* Creates a codec for tag alias groups in the specified registry.
*
* @param registryKey the key of the registry where the tags are from
* @param <T> the entry type
* @return the codec
*/
public static <T> Codec<TagAliasGroup<T>> codec(RegistryKey<? extends Registry<T>> registryKey) {
return TagKey.unprefixedCodec(registryKey)
Expand All @@ -71,4 +72,4 @@ public static <T> Codec<TagAliasGroup<T>> codec(RegistryKey<? extends Registry<T
.xmap(TagAliasGroup::new, TagAliasGroup::tags)
.codec();
}
}

0 comments on commit 520722f

Please sign in to comment.