-
Notifications
You must be signed in to change notification settings - Fork 62
Description
Description
@Target
ElementType.TYPE_USE
may be added to @Language
annotation to allow its usage in applicablecontexts.
Example
Currently the following example won't compile although it is logical:
private final @NotNull Map<@NotNull NamespacedKey, @Language("json") @NotNull String> addedAdvancements;
Another positive side is that while currently IntelliJ warns on incorrect order in the following case:
public void addAdvancement(final @NotNull NamespacedKey key,
final @Language("json") @NotNull String advancementJson) { /* ... */ }
suggesting swapping of final
and @Language("json")
, this wouldn't be true if TYPE_USE
was present on the annotation.
jreznot, Fleshgrinder, Sparky983, U1F984, aSemy and 2 more
Metadata
Metadata
Assignees
Labels
No labels