jetty.project/tests/test-sessions/test-jdbc-sessions/src/test
Simone Bordet 77ad0189ba
Fixes #8532 - Review System.nanoTime() usages. (#8535)
* Fixes #8532 - Review System.nanoTime() usages.

Introduced o.e.j.util.NanoTime class to deal with nanoTimes.

Now NanoTime.now() should be used instead of System.nanoTime(),
and various <unit>[elapsed|since|until]() methods to calculate nanoTimes.

Furthermore, comparing 2 nanoTimes should be done via isBefore(),
rather than using the < operator, which is wrong as specified in
the System.nanoTime() javadocs.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2022-09-06 09:30:02 +02:00
..
java/org/eclipse/jetty/server/session Fixes #8532 - Review System.nanoTime() usages. (#8535) 2022-09-06 09:30:02 +02:00
resources Merge remote-tracking branch 'origin/jetty-9.4.x' into jetty-10.0.x 2020-05-27 10:11:51 +02:00