Closed GoogleCodeExporter closed 9 years ago
We don't consistently apply these annotations (it's really the original
author's discretion)...
Dimitri: are you interested in taking a look at this for RateLimiter? (and
Louis for MapMaker?)
Original comment by kak@google.com
on 2 Apr 2014 at 6:52
For context, my team wants to turn on static checking for @GuardedBy this
quarter. The reporter, Javier, works on the tool (the Checker Framework) that
we will be using for this. I believe he is starting development on the thread
safety checker and is testing against Guava.
It would be great if Guava could be a test project as the Checker Framework
team works on the thread safety checker.
Original comment by eaf...@google.com
on 2 Apr 2014 at 9:01
Ping. Any thoughts on this from the Guava team?
Original comment by eaf...@google.com
on 4 Jun 2014 at 10:27
Original comment by kak@google.com
on 5 Jun 2014 at 7:22
Recent restructurings to RateLimiter have made this trickier. The class is now
split across two files (including SmoothRateLimiter), and the mutex is now
lazily initialized (don't ask...) and accessed through a method. I would be a
big fan of adding the annotations and an even bigger fan of seeing them
enforced. I'd be happy to review a revised CL.
I believe that all the fields you've listed (and probably all the methods in
your CL, though I didn't look as closely), including stableIntervalMicros for
both reads *and* writes nowadays, deserve the @GuardedBy annotation.
Original comment by cpov...@google.com
on 5 Jun 2014 at 8:52
This issue has been migrated to GitHub.
It can be found at https://github.com/google/guava/issues/<id>
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:09
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:17
Original comment by cgdecker@google.com
on 3 Nov 2014 at 9:07
Original issue reported on code.google.com by
jtha...@cs.washington.edu
on 2 Apr 2014 at 6:49Attachments: