slackhq/astra

Enable Error prone during compile

Closed this issue · 2 comments

http://errorprone.info/bugpattern/JavaDurationWithNanos

Duration duration = Duration.ofSeconds(2);
Duration foo = duration.withNanos(10);
mvn compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  15.703 s
[INFO] Finished at: 2022-02-10T10:43:10-07:00
[INFO] ------------------------------------------------------------------------

No warnings thrown during compilation either.

mansu commented

Removed Errorprone as part of this commit. Updated the issue to add it back.

Resolved by #383