added missing @NotNull to the returned List's type parameter and the parameter List's type parameter (is that proper English?)

This commit is contained in:
mfnalex 2023-08-29 00:57:42 +02:00
parent 152105017d
commit 32f3d14682
No known key found for this signature in database
GPG Key ID: 4A5852356225BAE1

View File

@ -136,8 +136,8 @@ public final class PlaceholderAPI {
* @return String containing all translated placeholders * @return String containing all translated placeholders
*/ */
@NotNull @NotNull
public static List<String> setBracketPlaceholders(final OfflinePlayer player, public static List<@NotNull String> setBracketPlaceholders(final OfflinePlayer player,
@NotNull final List<String> text) { @NotNull final List<@NotNull String> text) {
return text.stream().map(line -> setBracketPlaceholders(player, line)) return text.stream().map(line -> setBracketPlaceholders(player, line))
.collect(Collectors.toList()); .collect(Collectors.toList());
} }