apache / apache/jmeter

Unit Tests : Replace use of @Deprecated by @VisibleForTesting for methods/constructors/classes made public for Unit Testing only

Open
#5,021 2 comments 0 reactions 0 assignees View on GitHub
enhancement os: All P2
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

@pmouawad ([Bug 63203](https://bz.apache.org/bugzilla//show_bug.cgi?id=63203&redirect=false)):
To discourage use of Default Constructors added for JUnit, we use @Deprecated.

But this is not very nice for quality auditing tools nor very readable.

This enhancement will introduce replacement of this by a new annotation extracted from under ASL2 license:

https://github.com/aosp-mirror/platform_frameworks_base/blob/8b2c3a14603d163d7564e6f60286995079687690/core/java/com/android/internal/annotations/VisibleForTesting.java

OS: All

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.