Skip to content

Commit

Permalink
Mark java.time.InstantSource as thread safe.
Browse files Browse the repository at this point in the history
Context: http://yaqs/6914049073339170816

Tested:
    TAP for global presubmit queue
    []
PiperOrigin-RevId: 704861086
  • Loading branch information
chaoren authored and Error Prone Team committed Dec 12, 2024
1 parent ccf54bb commit 2972fb0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ private static ImmutableMap<String, AnnotationInfo> buildThreadSafeClasses(
new MapBuilder()
.addAll(mutability.getKnownImmutableClasses())
.addStrings(extraKnownThreadSafe)
.add(ClassLoader.class)
.add(Thread.class)
.add(java.lang.ClassLoader.class)
.add(java.lang.Thread.class)
.add(java.time.InstantSource.class)
.add(java.time.Clock.class)
.add(java.util.Random.class)
.add(java.util.concurrent.atomic.AtomicBoolean.class)
.add(java.util.concurrent.atomic.AtomicInteger.class)
Expand Down

0 comments on commit 2972fb0

Please sign in to comment.