Annotations to igore cast issues

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-08-26 21:22:09 -03:00
parent 1721fd387e
commit 236f1597a2
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ public final class Accessor {
* @param cloudEvent
* @throws IllegalArgumentException When argument is not an instance of {@link CloudEventImpl}
*/
@SuppressWarnings({"unchecked", "rawtypes"})
public static <A extends Attributes, T> Collection<ExtensionFormat>
extensionsOf(CloudEvent<A, T> cloudEvent) {
Objects.requireNonNull(cloudEvent);