Skip to main content Link Search Menu Expand Document (external link)

TimeZoneUsage

WARNING

FragileCode

View source code on GitHub

Summary

Derive the current time from an existing Clock Spring bean, and don’t rely on a Clock’s time zone

Suppression

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

Disable this pattern completely by adding -Xep:TimeZoneUsage:OFF as compiler argument. Learn more.


Copyright © 2017-2023 Picnic Technologies BV