Enable Error prone during compile
Closed this issue · 2 comments
bryanlb commented
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.
danhermann commented
Resolved by #383