ZoneIdOfZ
Use ZoneOffset.UTC instead of ZoneId.of("Z").

Severity
ERROR

The problem

Avoid the magic constant (ZoneId.of(ā€œZā€)) in favor of a more descriptive API: ZoneOffset.UTC

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("ZoneIdOfZ") to the enclosing element.