
com.facebook.infer.annotation.SynchronizedCollection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infer-annotation Show documentation
Show all versions of infer-annotation Show documentation
Annotations for the Infer static analyzer
The newest version!
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.infer.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Tell the analysis that a collection is thread-safe when this information is not already reflected
* in the collection's type. For example: private {@literal @SynchronizedCollection} Map mMap =
* Collections.synchronizedMap(...);
*/
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.CLASS)
public @interface SynchronizedCollection {}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy