Annotation Interface Warning
This designates the warning state for a specific item.
When the server settings dictate 'default' warnings, warnings are printed
if the value() is true.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThis represents the states that server verbose for warnings may be. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanThis indicate if the deprecation warnings should propagate to sub events or not.This can provide detailed information on why the event is deprecated.booleanThis sets if the deprecation warnings when registering events gets printed when the setting is in the default state.
-
Element Details
-
value
boolean valueThis sets if the deprecation warnings when registering events gets printed when the setting is in the default state.- Returns:
falsenormally, ortrueto encourage warning printout
- Default:
false
-
reason
String reasonThis can provide detailed information on why the event is deprecated.- Returns:
- the reason an event is deprecated
- Default:
""
-
propagate
boolean propagateThis indicate if the deprecation warnings should propagate to sub events or not. The default istrueonly to maintains compatibility but it's recommended to usefalsefor more explicit behavior.- Returns:
- whether to propagate the deprecation warnings
- Default:
true
-