Bug 63203 - Unit Tests : Replace use of @Deprecated by @VisibleForTesting for methods/constructors/classes made public for Unit Testing only
Summary: Unit Tests : Replace use of @Deprecated by @VisibleForTesting for methods/con...
Status: NEW
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 5.1
Hardware: All All
: P2 enhancement (vote)
Target Milestone: JMETER_5.1.1
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-24 14:11 UTC by Philippe Mouawad
Modified: 2019-02-24 20:13 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Mouawad 2019-02-24 14:11:55 UTC
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
Comment 1 Philippe Mouawad 2019-02-24 14:18:42 UTC
Author: pmouawad
Date: Sun Feb 24 14:14:09 2019
New Revision: 1854261

URL: http://svn.apache.org/viewvc?rev=1854261&view=rev
Log:
Bug 63203 - Unit Tests : Replace use of @Deprecated by @VisibleForTesting for methods/constructors/classes made public for Unit Testing only
Bugzilla Id: 63203

Added:
    jmeter/trunk/src/jorphan/org/apache/jorphan/documentation/
    jmeter/trunk/src/jorphan/org/apache/jorphan/documentation/VisibleForTesting.java   (with props)
Modified:
    jmeter/trunk/xdocs/changes.xml
Comment 2 Philippe Mouawad 2019-02-24 20:13:36 UTC
Author: pmouawad
Date: Sun Feb 24 20:12:09 2019
New Revision: 1854280

URL: http://svn.apache.org/viewvc?rev=1854280&view=rev
Log:
Fix javadoc errors

Modified:
    jmeter/trunk/src/jorphan/org/apache/jorphan/documentation/VisibleForTesting.java