From 520722f4081d2f6db9e4fc00282f68db89eaaaa2 Mon Sep 17 00:00:00 2001 From: Juuz <6596629+Juuxel@users.noreply.github.com> Date: Sun, 10 Nov 2024 16:43:26 +0200 Subject: [PATCH] Fix inline return checkstyle --- .../fabric/api/datagen/v1/provider/FabricTagProvider.java | 4 ++-- .../java/net/fabricmc/fabric/api/tag/v1/TagAliasGroup.java | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fabric-data-generation-api-v1/src/main/java/net/fabricmc/fabric/api/datagen/v1/provider/FabricTagProvider.java b/fabric-data-generation-api-v1/src/main/java/net/fabricmc/fabric/api/datagen/v1/provider/FabricTagProvider.java index bf2b9bac76..ece56cb9d2 100644 --- a/fabric-data-generation-api-v1/src/main/java/net/fabricmc/fabric/api/datagen/v1/provider/FabricTagProvider.java +++ b/fabric-data-generation-api-v1/src/main/java/net/fabricmc/fabric/api/datagen/v1/provider/FabricTagProvider.java @@ -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 getAliasGroupBuilders() { return Collections.unmodifiableMap(aliasGroupBuilders); @@ -441,7 +441,7 @@ public final class AliasGroupBuilder { private final List> 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> getTags() { return Collections.unmodifiableList(tags); diff --git a/fabric-tag-api-v1/src/main/java/net/fabricmc/fabric/api/tag/v1/TagAliasGroup.java b/fabric-tag-api-v1/src/main/java/net/fabricmc/fabric/api/tag/v1/TagAliasGroup.java index 7c94f473ed..e4d15b1be6 100644 --- a/fabric-tag-api-v1/src/main/java/net/fabricmc/fabric/api/tag/v1/TagAliasGroup.java +++ b/fabric-tag-api-v1/src/main/java/net/fabricmc/fabric/api/tag/v1/TagAliasGroup.java @@ -59,10 +59,11 @@ */ public record TagAliasGroup(List> 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 the entry type + * @return the codec */ public static Codec> codec(RegistryKey> registryKey) { return TagKey.unprefixedCodec(registryKey) @@ -71,4 +72,4 @@ public static Codec> codec(RegistryKey