Age | Commit message (Collapse) | Author |
|
This commit adds two annotations to replace the uses of Guava's
VisibleForTesting annotation in opencensus-api. Each annotation has a more
specific meaning than VisibleForTesting, to make the uses of the annotations
more informative.
DefaultVisibilityForTesting - This annotation replaces the main use of
@VisibleForTesting, indicating that an element was changed from private to
package-private for testing.
PublicForTesting - This annotation is temporary and should be removed as part
of issue #977.
|
|
|
|
This commit also adds missing Javadocs.
|
|
Class.forName can take a null ClassLoader, so the methods that instantiate the
stats, tags, and tracing components can also take null ClassLoaders.
|
|
|
|
Fixing these warnings will require significant refactoring.
|
|
This commit updates the Javadocs for Stats.setState and StatsComponent.setState
to avoid guaranteeing that the state won't change. It is consistent with Tags
and TagsComponent.
|
|
getState. (#792)
* Throw IllegalStateException if setState is called after getState
* Deprecate Stats.setState
* Remove a test that has potential race condition.
* Remove Deprecated from impl
|
|
|